Updating and Theme Installation issues on localhost (4 posts)

  1. cold.nut
    Posted 5 years ago #

    installing wordpress to the root directory of my website. /var/www on Ubuntu 10.10. however, whenever i choose to update or install a theme it asks for my ftp info. i blocked all ports but port 22 (SSH) and port 80 (http). so i can't auto-update or install any themes, it won't even let me install them manually

    looked everywhere for help! i came up with user permission issues. if the user that apache runs on isn't the same as the user that runs wordpress then you will experience issues. however, i don't understand this because the install of wordpress is right on the root directory - not in a sub directory (ie /var/www/wordpress).

    stumped suckers!

  2. cold.nut
    Posted 5 years ago #

    bump for assistance

  3. janeklb
    Posted 5 years ago #

    Hey cold.nut. I was running into the same issue but found this simple solution. It's not ideal but it works!

    whenever wordpress asks for updates run a chown on your wordpress directory to assign it to your apache user, then run the updates, then chown it back to your own account

    In my case:

    sudo chown -R www-data:www-data /var/www/wordpress
    then run updates from within wp-admin
    sudo chown -R myuser:myuser /var/www/wordpress

  4. janeklb
    Posted 5 years ago #

    Of course, replace "myuser" with your ubuntu user account

Topic Closed

This topic has been closed to new replies.

About this Topic