I'm migrating to a new server. It is the same setup as my last one: Ubuntu 11.4 with LAMP and ispconfig3.
Im using the php framework Elgg. All photos are stored in a data located at /var/www/clients/client0/web1/data
All permissions on the directories are set to 777.
May I ask a question about file permission.
I set up Ubuntu server where Apache got running.
I have two files, one php file and one log file.
I get this error when I try creating a directory:
[rex <03:57 PM> /var/tmp/pb82]$ mkdir foo
mkdir: cannot create directory `foo': Permission denied
But doesn't the following output indicate that I should be able to create directories there since I am a member of the www-data group to which that directory belongs?
[rex <03:57 PM> /var/tmp/pb82]$ ls -l ..
total 8
drwxrwxr-x 5 root
I'm trying to get Wordpress to run on my local Ubuntu 12.10 installation.
When I try to install themes/plugins, it asks me for FTP credentials.
I've been trying to get this to work for 2 days now. Everywhere on the web it says you should change the owner:group of your Wordpress directory to whatever owner:group runs your apache server - in my case www-data:www-data.
Nginx is not able to write to log file even if its user has write group access.
Here are some details:
www-data user is in ubuntu group:
$ id www-data
uid=33(www-data) gid=33(www-data) groups=33(www-data),1000(ubuntu)
/opt/logs/ is group writable:
$ ls -ld /opt/logs/
drwxrwxr-x 2 ubuntu ubuntu 4096 2012-07-27 02:47 /opt/logs/
www-data user can create /opt/logs/1 as expected:
$ su www-data
Problems accessing my laptop as localhost using ftp... filezilla...
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?
So, I have a box with a "deploy" user. This deploy user owns a code repository and wordpress is running on this box...
When wordpress attempts to do something like upload a plugin, it is using the user "www-data" to write to "wp-content/plugins"..