Wordpress Index.php Download instead of execution when navigating to localhost
Posted by: carterstandish (---.hsd1.pa.comcast.net)
Date: November 21, 2023 05:14PM

When you ask a question, it is absolutely necessary to specify the following items:
- 1 - Windows version: 10, 64 bits
- 2 - Wampserver version (3.3.0) 64 bits
- 3 - Apache version (Specify version): 2.4.54.2
- 4 - PHP version (Specify version): 8.0.26
- 5 - MySQL version (Specify version): 8.0.31
- 6 - What color is the Wampserver icon: Green
- 7 - In the file c:\Windows\System32\drivers\etc\hosts, what are the active lines*?

127.0.0.1 localhost
::1 localhost

## Local - Start ##
::1 movementgyms.test #Local Site
127.0.0.1 movementgyms.test #Local Site
::1 www.movementgyms.test #Local Site
127.0.0.1 www.movementgyms.test #Local Site



- If green Wampserver icon and using the menu of this icon:
- 8 - Do you have access to localhost (wampserver homepage)? Yes
- 8a - If yes, is there an error message at the bottom of the page? No
- 8b - Which browser are you using? Chrome
- 9 - Do you have access to phpMyAdmin? Yes

- 11 - If you are using an Anti-virus and/or a Firewall, please give the names of the latter: Windows security
- 12 - What is the full path of the Wampserver installation: C:\wamp64

I have a wordpress site built with roots.io bedrock and sage theme. When I navigate to movementgyms.test, a copy of the index.php is downloaded rather than executed. How do I fix this?

Options: ReplyQuote
Re: Wordpress Index.php Download instead of execution when navigating to localhost
Posted by: Otomatic (Moderator)
Date: November 22, 2023 08:45AM

Hi,

This is a WordPress problem. See the .htaccess file.

WordPress puts information about the base url in the database, so after transferring the site locally, you have to modify this information so that it reflects the local location, in this case movementgyms.test.

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote


Sorry, only registered users may post in this forum.