I have a windows 7 system.
On this system i am running a VM Virtual box LAMP Server
with Ubuntu 12.04,apache2, mysql and phpmyadmin... which is accessable via the internet.
I installed Wordpress CMS and it is working ok. I am able to add new posts, pages, and change themes.
When i attempt to upload media i get the following error
file391.jpg has failed to upload due to an error
Unable to create directory wp-content/uploads/2013/11. Is its parent directory writable by the server?*
When i go to the parent directory and look at the permissions i notice that the ownership of the folder is root
.
Do i change owner? Should i create a new user or user group called worpress and give it ownership???
Not sure how best to do this on a Web server.
Apache2 is using the group www-data. You may want to add your current user into the www-data group by executing :
sudo useradd -g www-data username
.Alternatively, you can do a recursive chown to the web root folder. To do this, issue the following command :
sudo chown -R www-data:www-data /var/www