Quantcast
Channel: WampServer - WampServer English
Viewing all articles
Browse latest Browse all 3177

PHP Not Loading on Local Virtual Hosts (no replies)

$
0
0
Hello Group,

Problem listed below in question #10.


1 - Windows version used:
Edition: Windows 10 Home
Version: 2004
OS Build: 19041.928

2 - Version WampServer: 3.1.9 - 64bit

3 - Apache Version: 2.4.39

4 - PHP Version: 7.2.18

5 - MySQL Version: 5.7.26 - Port defined for MySQL: 3306 - Default DBMS

5a - MariaDB version if applicable: 10.3.14 - Port defined for MariaDB: 3307

6 - What color is the WampServer icon: Green

7 - In the file c:\Windows\System32\drivers\etc\hosts, what are the active lines?:
No # at the beginning of each line, but there is one at the very top of the hosts file (line 1)

8 - Do you have access to localhost?: Yes

8a - If so, is there an error message at the bottom of the page?:
No error shown (but in the left click taskbar icon menu, there is an error saying that the "Default text editor does not exists". It's pointing to an old text editor path and I don't see how to change it in WAMP Server)

9 - Do you have access to phpMyAdmin?: Yes

10 - If you refer to an error message, please include the EXACT wording of the error in your post:
No direct error message, I have PHP include lines in my HTML code for local dev sites and the virtual hosts were loading fine. Today, I get a Opening popup error: "You have chosen to open: which is: application/x-httpd-php from: [dev.virtualdomainname.com&quot];. I get this same message when trying to open each of my virtual host sites locally.

I believe it has something to do with the HTACCESS file. This is what I have in the file in order to allow PHP to run in the HTML and be recognized. I have to change it when I publish the sites live as it's a different set of commands on the live side (GoDaddy hosting). Did anything change in the PHP or do I need to change/add anything else to the local HTACCESS file to allow the local sites to be opened?

I restarted all three services and still get the Opening popup window.

(NOTE: converting all the HTML to PHP is not a viable option in case this is one of the answers, but then again, PHP is the main issue here)

Local HTACCESS file:
AddType application/x-httpd-php .html
AddType application/x-httpd-php .htm

Live HTACCESS file:
Options +ExecCGI
AddHandler application/x-httpd-lsphp .html

11 - If you use an Antivirus and/or Firewall, please include the names of these: IObit Malware Fighter

12 - What is the full path to the installation of WampServer: C:\wamp64\

13 - If you have one or more Virtual Hosts defined, please show their definition(s):
dev.divinedesignks.com
dev.c2ministries.org
dev.forerunner-ministries.org
dev.ekklesiaglobalconference.org
dev.drdianna.com
dev.divinedesignkslanding.com
dev.drdiannacomingsoon.com

Viewing all articles
Browse latest Browse all 3177

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>