The correct AddType for php is application/x-httpd-php
AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps
Also make sure your php module is loaded
LoadModule php5_module modules/mod_php55.so
When you’re configuring apache then try to view the page from another browser – I’ve had days when chrome stubbornly caches the result and it keeps downloading the source code while in another browser it’s just fine.
Related Posts:
- How to run php files on my computer
- Whats the point of running Laravel with the command ‘php artisan serve’?
- PHP $_SERVER[‘HTTP_HOST’] vs. $_SERVER[‘SERVER_NAME’], am I understanding the man pages correctly?
- Enable PHP Apache2
- PHP code is not being executed, but the code shows in the browser source code
- How to configure self hosted wordpress so that everything can be upgraded/installed from dashboard
- WordPress multisite causing Error 101 (net::ERR_CONNECTION_RESET): Unknown error [duplicate]
- http://localhost:80 is not working on running Apache server through UniServer ZeroXIII
- How can I use an .htaccess file in Nginx?
- How do I resolve a HTTP 414 “Request URI too long” error?
- What is the difference between Local Server and a Web Server?
- Localhost is not working
- Redirect vs RedirectMatch
- What is the difference between the ‘www’ folder and ‘htdocs’ folder?
- What is Options +FollowSymLinks?
- SVN Error E175002 while checking out code from repository
- XAMPP, Apache – Error: Apache shutdown unexpectedly
- htaccess – Redirect to subfolder without changing browser URL
- Request exceeded the limit of 10 internal redirects due to probable configuration error
- MAMP “Apache couldn’t be started because port is in use.” AND “Can’t connect to local MySQL server through /tmp/mysql.sock
- PHP and mod_fcgid: ap_pass_brigade failed in handle_request_ipc function
- How do you redirect HTTPS to HTTP?
- Adding a user on .htpasswd
- Only variable references should be returned by reference – Codeigniter
- a2enmod command not found in apache server using cpanel in linux vps
- phpinfo() is not working on my CentOS server
- file_get_contents( ) not working
- Apache and Node.js on the Same Server
- “End of script output before headers” error in Apache
- “End of script output before headers” in Apache + PHP
- XAMPP installation on Win 8.1 with UAC Warning
- httpd: Could not reliably determine the server’s fully qualified domain name, using 127.0.0.1 for ServerName
- Https to http redirect using htaccess
- Using PHP 7 with WAMP
- WAMP won’t turn green. And the VCRUNTIME140.dll error
- Redirect old php link to wordpress link in .htaccess
- Cant login to wp-admin (redirecting to homepage), But CAN login to wp-login.php
- Cant login to wp-admin (redirecting to homepage), But CAN login to wp-login.php
- How do I get the right permissions for WordPress running Apache on Debian
- How can I improve site/page performance of WordPress websites?
- How to run multiple Async HTTP requests in WordPress?
- WP CLI info showing correct PHP binary but wrong version of PHP
- Does the debug.log do log rotation?
- WordPress V2 REST-API: Endpoints 404?
- What are some good Apache settings to use with wordpress?
- apache cpu over 70% on localhost
- Memory errors with media upload, WordPress can’t use more than 96M (while there’s 512 available!)
- Is XAMPP faster than running LAMP in WSL on Windows 10? [closed]
- Apache /Ubuntu server not running WordPress installation, outputting PHP code like HTML
- Point root folder to blog.domain.com and subdirectory to domain.com possible?
- WordPress admin dashboard missing icons
- WordPress returning 404 for multisite pages
- Server configuration for WordPress – Do I need install PHP-SSH extensions for WordPress on Fedora28?
- how to combine wordpress htaccess on my root domain + php on subfolder
- How to disable server signature on wordpress? [closed]
- Posting and image insertion problems after EasyApache4 and PHP 7 upgrade
- Detect CURLOPT_SSL_VERIFYPEER programatically?
- Internal Server Error apache
- How does WP work in conjunction with a web server?
- What to do when WordPress posts on a new server return an error 404
- Accidentally messed up URLs
- WordPress docker with empty responses to HTTP requests
- White Screen of Death for unknown reason but fixes after rebooting the server
- Forbidden You don’t have permission to access this resource. Apache/2.4.41 (Ubuntu) Server [closed]
- WordPress page not accessible through WAN [closed]
- Virtual HostX and MAMP not working with WordPress
- If I use Apache & ngnix together will I have fewer problems?
- Plugin error after installation
- how to config the home page locally
- How to point domain to wordpress page
- CURL error with REST API
- WordPress in AWS Lightsail – restrict public IP
- How to make wordpress page site.com/content as location for main site.com that is worked on nuxt.js+node?
- the content of the uploads folder gets deleted periodically, how to figure out what causes it?
- Removed index.php now all pages with Internal Server Error
- Windows Setup: Error establishing a database connection
- WordPress V2 REST-API: Endpoints 404?
- WAMP SERVER Command Prompt SET PATH=%PATH%
- Wp-admin uses different php.ini than the theme files
- How to change wordpress port number to 8000?
- 403 Forbidden Localhost Wamp Apache Php
- Strange special character/Latin characters
- Error 500 ONLY in dashboard main page. How to fix it?
- Localhost WordPress Uploading of Images Issue
- Not logged in when using http
- W3 Total Cache Can’t Really Detect Things
- Apache and Networks
- All scripts and style links return 404 on a local virtualhost
- Blog only showing code
- Configure VirtualHost for a perfect WordPress Environment
- Issues when moving from server to MAMP
- WordPress Memory limit not increasing
- CHMOD 0777, but WordPress still not able to write files/folders [closed]
- oEmbed work on localhost but not on distant server
- how to put shortcode to the top of the page – theme 2014
- How to avoid timeout waiting for output from CGI script?
- How can I prevent wordpress from sending emails
- WordPress – Unable to Create New Account – Windows/Apache/MySQL
- Serve static files via a subdomain on a wordpress
- Restricting access to a file for everyone except logged in users