Just like Tom has said, this is most probably “server” issue, not a WordPress one.
You should check your error_log file to see if it gives you any insights. It should be in the same folder/directory in which the WordPress installation is.
If you don’t see anything there, you may try to force the WordPress installation to show you the errors in the browser. You can do so from the wp-config.php, configuring the boolean WP_DEBUG to true.
But if you are seeing the content of the index.php file as you are telling us, the most probable cause is that PHP isn’t working as it should, since it isn’t interpreting .php files but showing it’s contents instead.
Related Posts:
- WordPress on a local machine redirecting to online url
- Failed to connect to FTP Server 127.0.0.1/:21
- WordPress on Mac does not load admin page
- Using the Parcel build tool with WordPress
- Staging sites era: does it still makes sense to develop locally?
- Windows 7 download WordPress and load into LAMP stack and configure
- the display of word press theme in preview mode
- Where is the database setup form for WP install in MAMP?
- synchronize localy hosted wordpress with online one
- Working on live sites locally
- Moving a local installation to the server – settings not working on server?
- Yes you CAN redirect urls to local folders in Windows 10
- Unable to access WordPress server locally running using vagrant
- Installing WP on localhost
- How to make a copy of a local wordpress build in MAMP?
- set up development environment windows
- Can’t bring up front or back end of site but all files still exist. What might be happening?
- Why is WordPress redirecting from http to https on a local environment?
- How to remove “Connection Information” requirement on localhost install of WP on MACOSX
- Is it feasible to build and update a WordPress website offline?
- Mail isn’t sent after local site registration
- Have multiple local wordpress installs share a wp-content folder and database
- local wordpress blog issues
- Why I have this error when I try to install this old blog on my local webserver?
- 404 error on all pages but homepage
- Moving WordPress from live to local server
- wp-admin is redirecting to back to home page (localhost)
- subdomain mulitsite on localhost in a subfolder
- Switching from editing on directly on remote server to PHPstorm local development?
- How to deactivate/remove https on localhost project from online
- Installation Issue WordPress locally – The file ‘wp-config.php’ already exists
- Moved wordpress from localhost to live and wp-admin shows white screen
- Custom Permalinks don’t work on local LAMP installation
- Stats for a wp powered intranet
- Alias to theme folder for local development
- WordPress Local Install Theme Folder Permission To Edit
- WordPress on localhost working, when sharing IP to connect receive err_connection_refused on .js and .css files
- How to copy WordPress live website to Bitnami stack localhost?
- No styling on fresh wordpress installation
- WordPress Multi-Site on Ubuntu 18.04 LAMP Keeps Re-Directing
- WordPress loading very slow on MAMP Pro [closed]
- Trying to install wordpress locally with mamp, but have unsupported php version
- Images not displayed when moving site to local
- Moving a remote WordPress multisite installation to local
- Trouble running local WordPress in Google App Engine
- Set up Network Locally on a Flash Drive
- How to set up WordPress in the intranet?
- Trouble Installing WordPress Get PHP Not Running Answer
- check if a file in a plugin folder exists from a locale installation
- Can I host WP-admin locally for a remote blog?
- wordpress local host web login not working after port configuration
- Making WordPress Local Again?
- Locally restoring a ManageWP full site backup
- Outgoing new connection to linked Websites – why?
- How best to keep my localhost on Http while my Remote production is on Https
- Accessing private posts through REST API, same code that works in remote doesn’t in local
- Can local WordPress installs share /wp-content/ folder and database?
- How do I access a remote database with a local MAMP development install?
- Design problems when exporting remote database for local development
- Image link issues after importing a database backup to my local web server
- $post->id vs $post->ID problem after using WordPress config bootstrap
- WordPress Skeleton installation
- Why would this code work locally but break online?
- Why is WordPress’ installer “phoning home” during the install script?
- Can I run multiple blogs from my local machine
- WAMP WordPress installation cannot get past step 1, loads indefinitely
- New installation fatal error in 5.9.3 at edit or create entry
- Is a local multisite installation equivalent to multiple VirtualHosts?
- Migrating WordPress + WooCommerce from server to Local
- Error regarding invalid file permissions for upgrading WordPress version
- WordPress fails to install with “Can’t Select Database” Error (WAMPServer)
- wp-cli core install –skip-email and –skip-config flags not working on MAMP unknown parameter
- wp-cli core install unknown: fatal: file /etc/postfix/main.cf: parameter mail_owner: user postfix has same user ID as _postfix
- Error establishing a database connection with XAMPP
- Swap themes locally
- WordPress theme works on linux servers but white screen after move to Xampp
- How to properly setup MAMP and XIP
- How do I quickly move between 2 local installations and keep them in sync?
- Local installation is broken
- Cloned site not connecting to database – MAMP
- Installation problem with wordpress xampp
- Installing Theme from uploaded file. Not uploaded theme?
- Cant view wordpress after install
- Customized wordpress theme locally put on someones WordPress account
- Activating theme in local MAMP installation results in HTTP ERROR 500
- Upload a website on WAMP and modify it
- Local copy of site returns 404 for all content outside of core .php templates
- Changing themes on locally hosted webpages
- WordPress Installation
- WordPress MAMP Installation Issue
- Why I have this error when I try to install this old blog on my local webserver?
- “Template is missing” install error on non-child theme
- Installing WordPress into a user directory without any admin privileges
- How to install wpengine hosted multisite locally
- Doubts about how to migrate WordPress from local to online server using Search and Replace Tool script
- Trying to edit a WP site locally using MAMP
- Plug-in (Slickr Flickr) works on local machine, but not server
- Saving Permalinks Results in 403 MAMP (Windows)
- How to Move a production WordPress site to local environment [closed]
- How to enqueue Bootstrap 4.6 js & css from local files