After searching through this forum I have found this thread.
I have first tried to follow TypecastFilms instruction which is as below:
In simpler terms:
Create a phpinfo page, if you don't already have one.
Scroll down to "apache2handler" and look for "User/Group."
Remember the name listed for the user. My entry was apache(#)/#, the name was "apache."
Log into a terminal as the root user. Google this step if you need help here.
Navigate to the folder just above where your WP is installed. Mine is installed to the root directory (httpdocs), so it was at
Type chown -R (your the username from earlier) (your wp directory)/ - for me, chown -R apache httpdocs/. This changes the
ownership of the directory to apache.
Navigate to your wp-content folder: httpdocs/wp-content/
Type chmod -R 766 uploads/. This changes permissions so that apache can read, write, and execute there.
In my case, WordPress is installed in my own Ubuntu Laptop and I am trying to install a new theme through WordPress (I do
not have an external host as yet and I am not trying to ftp to an external host).
I have tried to modify this instruction as applied to through teminal and still no success.
Please see below the dump from phpinfo page:
Apache Version Apache/2.2.14 (Ubuntu)
Apache API Version 20051115
Server Administrator webmaster@localhost
Max Requests Per Child: 0 - Keep Alive: on - Max Per Connection: 100
Timeouts Connection: 300 - Keep-Alive: 15
Virtual Server Yes
Server Root /etc/apache2
I also have tired this mechanism as mentiones below and still no joy. May be there is something I am missing re: granting permission.
I think you are all missing the point here. Remember that on a unix / linux server you have to set permissions AND ownership. You can set permissions on a folder but if you are not the owner than you can't copy files in there.
When you upload files with the media form in WordPress, files are being stored in a temporay location. When the upload is succesfull WordPress tries to move them to your upload folder. Normally that is wp-content/uploads. It will only succeed if your write permissions are ok (and no, 777 is not needed, just make sure that you have write permissions. 666 should be enough.
When the write permissions are correctly set you should make sure that you own the uploads folder. Your FTP client should show who owns the folder. This should be the loginname that you use to connect to the ftp server.
I noticed when I had the problem that the owner of the uploads folder was not correct. So I used the quick and dirty solution:
1. rename your uploads folder to uploadsold
2. make a new uploads folder and set the permissions to 666
3. drag the contents of the uploadsold folder to the uploads folder
4. remove the now empty uploadsold folder (check first)
Apologies for this long post but I wanted to let you guys know that I am trying to resolve this.