I do not know if this is the correct place to post this, and I have tried to trawl through relevant articles to fix the issue, but I am stumped.
I have a server, log as root.
var/www is root:root
var/www/website-one is root:root
var/www/website-one/neosmart-stream is root:root
This error pops up
It is not possible to create new directories via PHP mkdir(). /var/www/website-one/neosmart-stream/ (CHMOD 0775) is not writeable.
Try to set your webserver as owner of /var/www/website-one/neosmart-stream/
Has this web server been setup incorrectly ?
On another web server not managed by me the permissions/group are right and everything works fine ?
Location: Asia Pacific, Cyberspace, in the Dark Dystopia
Posts: 19,118
Thanks Given: 2,351
Thanked 3,359 Times in 1,878 Posts
The issues is, more than likely, is that your web server (after it starts up) does not run as the root user. That is why you are having a permission problem (more-than-likely).
Try to set your webserver as owner of /var/www/website-one/neosmart-stream/
As Neo has already post, your web server (process) does not have the required access rights to the files in question. This is typically fixed by changing the owner of the whole tree to the webserver user (eg, on Solaris x86 this is "webservd"). Or your web server may be running under userid "apache" for example.
To help you more we need to know the environment (O/S, webserver, etc) but you'll be pleased to know that your issue is not unusual at all when installing a web server. It happens all the time upon initial install.
It's extremely unlikely that the user "root" is running the webserver.
Login to the system as root and look at all the running processes:
Look for a process that looks like the web server process (eg. apache or similar known web server).
If you can find the process then the user running it (see column 1) is the user that doesn't have access to the files in the www default directory tree.
If you can't find the web server process, post the whole output of:
so that we can have a go.
---------- Post updated at 08:52 PM ---------- Previous update was at 08:51 PM ----------
And also, if you're logged in as "root" (ie, god) you shouldn't have any trouble running 'chown -R'
Greetings!
I have a Solaris workstation that I use for web hosting. It runs SAMP and everything was working good for me until I got a need to add a couple of co-workers to help me with development. I'm trying to find some guidance for how to set up filesystem permissions so everybody would be... (3 Replies)
this could be a dumb question. i am still becoming used to usr / group permissions.
permissions to place a file into XAMPP/htdocs.
the problem is
that when i go to place a TextMate file into XAMPP/htdocs
a window comes up and states:
Type your password to allow TextMate to make changes.
... (2 Replies)
Heya,
So I recently upgraded my MacBook to a solid state drive, during the re-install of Snow Leopard I chose to abandon MAMP and use the built in Apache & PHP and in doing so moved my ~/Sites to /Library/WebServer/Documents from a Time Machine backup. During this transition the permissions... (0 Replies)
Hi all,
Quick question, im going to find this a bit hard to explain but ill give it a go.
Basically i have an admin account on an FTP server that i want to be able to control ALL files without having to use sudo (as i need to run cron scripts to move files that are owned by a number of... (2 Replies)
I'm hoping this is a pretty simple question. I have a problem were memebers of a group can't delete or overwrite a file. The box is setup several users all part of the same group. Now default umask is 002. The problem I run into is there are processes that add to, del, and over write files. ... (3 Replies)