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?
- I’m a new user can’t reach my installation screen after uploading my worldpress file can anyone help also i will like to get a tutorial on how to play
- WAMP vs XAMPP pros/cons – for running a local testing server [closed]
- FTP credentials on localhost [duplicate]
- Prevent Version URL Parameter (?ver=X.X.X) on Enqueued Styles & Scripts
- Why is WordPress redirecting from http to https on a local environment?
- WP Multisite development with Mamp Pro and wildcard subdomains, not really working for me
- 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
- WordPress keeps asking for connection information in localhost
- 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)
- WordPress Multisite with VVV
- subdomain mulitsite on localhost in a subfolder
- Valid Connection Information is Getting Denied
- Switching from editing on directly on remote server to PHPstorm local development?
- WordPress Admin Interface not styled properly
- 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
- Import live site to local setup without access to live site
- “The package could not be installed” when updating plugins, themes, and core files on WampServer
- Stats for a wp powered intranet
- I have a desktop and a laptop: What’s the best way to move between local installations?
- 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?
- Can you create a local wordpress network / multisite install on a mac with subdomains?
- No styling on fresh wordpress installation
- WordPress Multi-Site on Ubuntu 18.04 LAMP Keeps Re-Directing
- How to first edit in local WordPress editor on page and the add code?
- How do i define the location of a git push to WP Engine
- WordPress loading very slow on MAMP Pro [closed]
- Trying to install wordpress locally with mamp, but have unsupported php version
- Allowing WordPress from non-public address/domain
- Images not displayed when moving site to local
- Moving a remote WordPress multisite installation to local
- Why I have this error when I try to install this old blog on my local webserver?
- Trouble running local WordPress in Google App Engine
- Set up Network Locally on a Flash Drive
- Can’t Install Standard Plugins on a Local MAMP installation
- How to set up WordPress in the intranet?
- Redirect loop error on wordpress landing page on localhost
- Trouble Installing WordPress Get PHP Not Running Answer
- check if a file in a plugin folder exists from a locale installation
- Using page-id-{ID} from body_class() in local dev, versus live staging
- Can I host WP-admin locally for a remote blog?
- How can I deploy my InstantWP site to a live website?
- 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?
- Installing a theme on localhost, Ubuntu 16.04
- Image Sizes/Thumbnails not generating on local install Ampps
- Design problems when exporting remote database for local development
- Forbidden localhost error and error establishing database
- Image link issues after importing a database backup to my local web server
- How to setup a wordpress backup in localhost?
- $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
- FTP Connection Information after Installation in Cygwin
- 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