Question

Forbidden! You don't have permission to access /wp-admin/install.php on this server.

Posted June 29, 2015 29.6k views
ApacheWordPress

I have installed WordPress on Ubuntu 14.04 running apache, I have two subdomains running and were installed by somebody else.

I followed the tutorials to create a new subdomain on the same droplet as the others , but I cannot setup WordPress. I keep getting 403 error

You don’t have permission to access /wp-admin/install.php on this server.

I have set the permission for the new WordPress directory to 755 but still not able to access it.

please help me solve this

2 comments
  • you might also need to:

    chown -R www-data:www-data /var/www
    
  • As @sierracircle said, you’ll need to ensure the permissions are properly set. Also, make sure the files have the right permissions (not ownership):

    sudo -i
    cd /var/www
    chown -R www-data:www-data .
    find . -type f -print0|xargs -0 chmod 644
    find . -type d -print0|xargs -0 chmod 755
    

    EDIT: added the “sudo -i” line, so you can run the fix.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
3 answers

The url to your site is crucial in order to help!

Hi! Are there any errors in Apache’s error log? Run the following command to print the last 30 lines of the log file:

sudo tail -30 /var/log/apache2/error.log
Submit an Answer