tristanP
By:
tristanP

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

June 29, 2015 14.8k views
Apache WordPress

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.

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
Have another answer? Share your knowledge.