May I ask a question about file permission.
I set up Ubuntu server where Apache got running.
I think I have screwed up my permissions in Ubuntu.
I am using my server to run PHP. I recently ran across a problem where PHP could not create directories in the var/www-directory, so I searched around on the internet.
So, I've been trying to setup Wordpress for a while now (so much for their 5min install claim) and have just gotten stuck.
I'm on debian and I have my website in the directory /srv/www/mysite.com/public_html
I set chown for www-data:www-data on /srv/www.
I have root disabled and created a sudo user which is id 1000:1000. I would also like to use this user to upload to /srv/www so I added my sudo user to the www-data group.
Gday everyone! Im new here... but used ubuntu for nearly ayear now!
I've been uploading files to a folder using an FTP user within my web directory : httpdocs/files...
But when my php script goes to move these files to a new directory it fails, the files are uploaded with permissions 'rwx rw- rw- '...
I have a very interesting situation. I have a Debian Lenny server running Apache/2.2.9 and PHP 5.2.6-1+lenny10.
Fresh LAMP server setup with Ubuntu 12.04 and VSFTPD.
I'm trying to access the /var/www folder (web root) with FTP user.
I created a new user ftpuser and added it to the www-data user group created automatically by Apache.
Home directory of that user is set to /var/www.
I also changed the ownership of the /var/www to www-data group and changed permissions to 02775.
However, I'm still not able t
A folder under the directory /var/www/xml keeps changing permission from www-data to root meaning that no php file is able to write into the folder.
I think this happens when I restart the server.
drwxr-xr-x 6 root www-data 4096 Sep 10 13:40 xml
drwxr-xr-x 6 www-data www-data 4096 Sep 10 13:40 xml
How do I make sure this does not happen?
I edited the MongoDB config file to store it's data in /home/user/data/mongod.
But data is still written to the old directory, supposedly because the permissions to the new folder are not granted - how can I give MongoDB the necessary permissions for that directory?