As in this question and answer, and because of your huge .htaccess file it’s like you have a .htaccess directive that’s causing your apache to not process that file or understand its type.
As mentioned by @Rup, using the default WordPress .htaccess, and checking other directories for rogue .htaccess files will likely resolve this issue.
If it doesn’t, you need to check how apache and this particular vhost are configured as it’s likely you’ve got a rogue .htaccess file or directive causing apache to not be able to process PHP
Related Posts:
- Moving minor updates between local and live sites – just database?
- Connect to a remote database for wordpress in my own hosting server
- How to transfer from localHost to live but use the already existing database on the server?
- Database migration issues – Error #1046 No database selected
- How to re-connect WP files in lampp/htdocs to new SQL database to recover site under development
- Cloned site not connecting to database – MAMP
- I have include wp-config, should I add global $wpdb also?
- Can’t Install WordPress (local) Failed to open file wp-includes/wp-db.php
- Restoring .sql backup results in “Error establishing a database connection”
- How to use remote db tables in current config? [duplicate]
- Can I connect WordPress website with an external database?
- Can’t connect to MySQL server on ‘127.0.0.1’ (10061) (2003)
- Can’t connect to MySQL server on ‘127.0.0.1’ (10061) (2003)
- Can’t connect to MySQL server on ‘127.0.0.1’ (10061) (2003)
- Using wpdb to connect to a separate database
- WPDB Insert or if exists Update
- Multiple developers / editors working on a site in progress
- How can I make updates to a site, on a development copy, but then move updates back without overriding live site’s evolving database?
- get_results using wpdb
- $wpdb won’t insert NULL into table column
- Fastest way (least amount of steps) to locally import a remote database using WP-CLI
- Please explain how WordPress works with MySQL character set and collation at a low level
- Solution for database version control and deployment?
- Get error messages when $wpdb->insert() returns false?
- Detecting errors generated by $wpdb->get_results()
- Does dbDelta delete columns as well?
- wpdb update add current timestamp not working
- How to fetch Data in WordPress using MySQLi or $wpdb
- Connect to database using wordpress wp-config file
- wpdb->insert multiple record at once
- How to migrate a HTTPS WordPress installation to localhost?
- WordPress Unit Testing – Cannot Create Tables
- How to define composite keys with dbDelta()
- Does wpdb add considerable overhead on queries with large result sets?
- Why does $wpdb return strings for mysql integer values?
- How can I migrate from another platform to WordPress (using the same domain) and launch when ready?
- $wpdb->prepare() warning in WordPress 3.5
- WP-CLI methods for get_current_blog_id, get_blog_details or $wpdb->prefix
- Inserting data into custom tables
- Hook into $wpdb
- Display data from a non wordpress database on a page template
- How does $wpdb handle COUNT(*)
- Migrating data between local and development server
- Best way to import users, post and categories from an external database
- Syncing local content with development / staging sites
- Organizing WP Pages based on old website database
- Presentation vs Content in WP DB-Tables
- How might I retrieve a featured post image from an external WP site and display it as a link back?
- WordPress database error: [Query was empty] [closed]
- Export wordpress table to excel
- Connect to remote database using Localhost install
- How to close wpdb connection? [duplicate]
- Best way to move live site local
- Inserting Post Meta From SQL
- Migrating non-WordPress CMS to WordPress, lots of data to move — possible solutions?
- Why does dbDelta() not catch MysqlErrors?
- Accessing two databases
- Connecting to external oracle database
- Migrate a Non WordPress database to wordpress [closed]
- Can’t save ajax value to database
- Custom DB_COLLATE (collation) value not working on fresh install?
- What causes the “max_user_connections” warning on WordPress frontend?
- Connect to live db whilst working locally
- $wpdb variable throw this error Call to a member function get_results() on a non-object in
- Updating all rows of table with $wpdb
- Safe way to find last inserted id in a table?
- How to execute mulitple statement SQL queries using $wpdb->query?
- Is $wpdb->prepare escaping to much? How to use it properly?
- Database slowdown after update to 3.4.1
- When and why should I use $wpdb different return types?
- No wp-config.php file on local install of wordpress – site still displays
- How wordpress accesses its own database
- Remove database entries where post_date > expiration date
- Error connecting to DB in /wp-includes/wp-db.php on line 1538 [closed]
- Weird issue with database migration and SSL links
- How to fix unchanged URLs in Database after running serialized search and replace script?
- Why can’t I swap a DB in a WP install? [closed]
- Migrating database / content of non-CMS site to WordPress
- How do I reset a self-hosted WordPress URL?
- How to query the WordPress database to get posts of a certain custom post type, taxonomy and field?
- Get data from database using $WPDB
- How to use a different database to list and manage comments in the backend
- Getting all the users who have author privilege
- I don’t see site_url and home_url fields in wp_options table (phpMyAdmin)?
- Multiple postmeta with same name for one post in wp_postmeta table
- WP Database Table to CSV file
- Can I have multiple database users within WordPress?
- Cannot update custom database table row
- wpdb_prepare with multiple or condition
- Export all content from wordpress
- Show last modified date of database
- $wpdb->insert is not working
- Error establishing a database connection on Installation
- Import live site to local setup without access to live site
- Extracting the post_id via the wp_insert_post action (external db query)
- WordPress database error – Error in SQL syntax – I can’t identify any error?
- Moving WP from local server to live, error establishing a db connection
- Moving online website to MAMP or dumb idea?
- In what part of the WordPress core does the users table and usermeta table get joined?
- Migrating WordPress from DreamHost to Azure WordPress Resource via UpdraftPlus “wp_options table does not exist…” error