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)
- Using wpdb to connect to a separate database
- 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
- Fastest way (least amount of steps) to locally import a remote database using WP-CLI
- Solution for database version control and deployment?
- Detecting errors generated by $wpdb->get_results()
- wpdb update add current timestamp not working
- wpdb->insert multiple record at once
- How to migrate a HTTPS WordPress installation to localhost?
- WP-CLI methods for get_current_blog_id, get_blog_details or $wpdb->prefix
- Migrating data between local and development server
- Organizing WP Pages based on old website database
- How might I retrieve a featured post image from an external WP site and display it as a link back?
- 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
- Migrating non-WordPress CMS to WordPress, lots of data to move — possible solutions?
- Connect to live db whilst working locally
- Safe way to find last inserted id in a table?
- Database slowdown after update to 3.4.1
- No wp-config.php file on local install of wordpress – site still displays
- Error connecting to DB in /wp-includes/wp-db.php on line 1538 [closed]
- 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]
- 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?
- 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
- Can I have multiple database users within WordPress?
- Cannot update custom database table row
- Export all content from wordpress
- Import live site to local setup without access to live site
- WordPress database error – Error in SQL syntax – I can’t identify any error?
- Migrating WordPress from DreamHost to Azure WordPress Resource via UpdraftPlus “wp_options table does not exist…” error
- Modify Database in Multi-Site wp_usermeta table
- $wpdb doesn’t like to store arrays
- Select two sums with single get_var statement
- Difficulty importing my live site to local
- Merging two databases without borking it
- Why does importing copies of the database dump and the document root make WordPress data inconsistent?
- Trouble Migrating all data blog from WordPress.com to WordPress.org
- How Can I Put Meta_Compare in the Database-Query?
- WordPress running SQL query to update database from form
- Migration: Copying database content to a different server
- WPDB SQL query with prepare() returning variable, not db value
- $wpdb error (Call to a member function insert() on a non-object)
- Is it important to have integers inserted using %d rather than %s?
- Custom WordPress Table wpdb
- Best practice to limit results in get_row()?
- CreateOrUpdate in WordPress
- Trouble running $wpdb->query() with last_insert_id
- How to get a list of WordPress default database tables?
- Using $wpdb | checking entered email against existing emails in db
- how to encyrpt DB_PASSWORD in wp-config
- Optimizing function that automatically creates internal links based on post title string
- Design problems when exporting remote database for local development
- Get results from wordpress data custom table
- Outputting query results
- Image link issues after importing a database backup to my local web server
- Creating and Using Tables in the WordPress Database
- echo site_url() returns a different value than what is in the database siteurl field
- Can two domains use the same database?
- How to escape percentage sign(%) in sql query with $wpdb->prepare?
- SELECT rows between two datetimes when the range is dynamic [closed]
- How to insert a value to decimal type field using wpdb->prepare?
- Recovery – Restore Database after moving folder location locally
- Migrate Users From laravel to wordpress
- /wp-admin not accessible after migrating to local host (no plugin issue)
- How to fix Uploaded to this post option to see group of images uploaded to a post?
- Malware in old website – how to migrate?
- How to have differents sites share the same tables of DB?
- Where is the HTML-handler part in the wpdb class?
- How to edit posts/pages without making the change live?
- Migrate not successful, DB is broken. How to fix, or at least output static HTML without plugins?
- How can I get $wpdb to show MySQL warnings?
- Correct and secure way to access a custom SQL database in a custom PHP template file
- About wp database hooks (error establishing connection)
- Should I Use only wpdb Class to Write Custom Queries?
- Does WordPress Support Using Named Pipes on the Windows Operating System?
- Local Content different from Remote Content
- How can I retrieve data from alternate database using wpdb class?
- DB access blocked when initializing WP externally
- ERROR: “Table Prefix” must not be empty
- How to delete field using WPDB?
- Theme Options – localhost to new url
- Getting an error when trying to migrate to DV server from Grid with Media Temple [closed]