How do i fix Wp-Admin/Install.Php is Forbidden error?

Hi,
I installed wordpress manually on ubuntu and when i try to open mydomain.com/wp-admin/install.php it is saying "you dont have permission to access this source." I tried to fix it but i couldnt. Can you tell me what did i do wrong?

Thank you.

6 Replies

It's been a long time since I used WP but, as I recall, install.php and the entire installation directory should be removed.

Your web site is configured to disallow access to any installation stuff (for security reasons).

-- sw

do you mean only wordpress directory?

As I recall, there’s an installer directory under the WP directory…there's some security check-up page that comes with a standard WP installation that recommends you remove the install directory & install.php.

As I said, I haven't used WP for a long time so my memory is fuzzy about this…

See: https://wpsmackdown.com/delete-unnecessary-wordpress-files/

-- sw

Change the group permissions to ALL your WP files your-user-name:www-data:

chown -R your-user-name:www-data directory with WordPress

i.e. chown -r me:www-data wp1

{editoria}

I always always build out a WordPress site in either a sub-directory or a sub-domain. I name mine "wp1" for first site. If later on I want to radically change it I'll usually build a new one in a "wp2" sub-directory. The key is to use a 301 redirect in your .htaccess file in the root directory like this:

Redirect 301 /index.php https://www.xxx.com/wp1/

{/editoria}

thank you @acanton77 and @stevewi. i removed existing wordpress directory completely and decided to set up wordpress according to this guide https://www.linode.com/docs/guides/install-wordpress-ubuntu-18-04/ but in 'configure wordpress' part it gave the same error 'Forbidden
You don't have permission to access this resource.

Apache/2.4.29 (Ubuntu) Server at www.homelistt.com Port 443'

Acanton77 can you tell which command should i write? because the commands in the guide didnt work.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct