Support » Fixing WordPress » Updating and Theme Installation issues on localhost

  • 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!

Viewing 3 replies - 1 through 3 (of 3 total)
  • bump for assistance

    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

    Of course, replace “myuser” with your ubuntu user account

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Updating and Theme Installation issues on localhost’ is closed to new replies.