John Davidson

php - Openserver download page, but it must load it

0 comments
Message:


I have installed OpenServer program to modify old company WordPress site locally.
So old WP page was on 5.6 PHP version, and put the same in OpenServer settings.


But program doesn't load page, but always try to download some "download" file. If try to open that file in notepad, it looks like usual index.php (what load WP).


So i played with .htaccess, server see it, but cant load php by some reason.


Same way i created clean WP doimain folder, what works. And just if i change php and apache version it didnt see MySQL DB.


What it may be ? If you need some screens, i can make them.



My Answer:
It sounds like there may be an issue with the PHP configuration in OpenServer. Here are a few things you can try to troubleshoot the issue:

1. Check the PHP configuration in OpenServer: Make sure that the PHP version you have selected in OpenServer matches the PHP version required by your WordPress site. You can check the PHP version by going to the OpenServer settings and looking for the PHP version option.

2. Check the Apache configuration: Make sure that the Apache server in OpenServer is configured to properly handle PHP files. You can check the Apache configuration file (httpd.conf) to ensure that PHP is enabled and configured correctly.

3. Check the .htaccess file: Make sure that the .htaccess file in your WordPress site's directory is not causing any issues. You can try temporarily renaming or removing the .htaccess file to see if that resolves the issue.

4. Check the MySQL connection: If your WordPress site is not able to connect to the MySQL database, make sure that the database credentials in the wp-config.php file are correct. You can also try creating a new MySQL database and updating the wp-config.php file with the new database credentials.

If you have tried these troubleshooting steps and are still experiencing issues, please provide more information or screenshots so that we can better assist you.

Rate this post

4 of 5 based on 1530 votes

Comments




© 2024 Hayatsk.info - Personal Blogs Platform. All Rights Reserved.
Create blog  |  Privacy Policy  |  Terms & Conditions  |  Contact Us