Hey guys

I’m running ubuntu 10.4 with Apache2, MySQL and vsftp. I’m running into permission problems.

I am creating a user home directory, with a sub directory of www so:

/home/dazreit/www

I am unable to upload a file unless I chmod the www directory to 777, after that I can then upload a basic joomla install and when trying to install modules but it is complaining about permissions. I am guessing I need to give Apache file/directory permissions of the user directory?

I have searched but have a hit a brick wall - Anyone out there who can point me in the right direction?

I will be planning to run a few websites from my box

Thankyou!

Daz

4 Spice ups

You probably need to make sure the www-data user and group has write permissions to the folder. I’d make sure Joomla doesn’t have its own user created as well, but it’s probably just www-data. Also make sure you remove the 777 permissions :wink:

Thanks for that very quick reply Bryan!

What command will it be? I’m a newbie, well, hopefully past real newbie after two weeks of screaming at the command prompt :slight_smile:

sudo chown www-data:www-data /home/dazreit/www

Basically, that means change ownership to the www-data user (the name before the colon) and the www-data group (which is the name after the colon). The last part is the folder you want to change ownership on; in your case, the www folder in your home directory.

By the way, you may want to go over this section from the Ubuntu Community Documentation: Joomla - Community Help Wiki It assumes the default location, but it should work if you just change the path to the one you’re using.

Ah ok, when I do that it takes away my own ownership of the directory/files so I can’t delete or rename in ftp?

Look into ACL - it should be installed. You could add an ACL to allow your user write permissions. You may also not need to give the www group rights, just the user.

Thanks Bryan

Just trying to get my head around it, feel the onslaught of a headache coming on :slight_smile:

ACL isn’t too bad - the command "getfacl /home/dazreit/www should show the current permissions on the folder. setfacl -m u:dazreit:rwx /home/dazreit/www should give you full read/write/execute permissions.