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

One virtual host working fine the other downloads a file when I open a php file in browse (no replies)

$
0
0
1 - Windows 7 Home Premium 64bit
2 - WampServer Version 3.0.4 32bit
3 - Apache Version 2.4.18
4 - PHP Version 5.6.19
5 - MySQL Version 5.7.11
6 - WampServer icon is Green
7 - 127.0.0.1 localhost
::1 localhost

8 - Do you have access to localhost (Homepage WampServer)? Yes
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
11 - If you use an Antivirus and / or Firewall, please include the names of these
Avast Free AntiVirus Version 11.1.2253
12 - What is the full path to the installation of WampServer (eg D:\wamp\)
c:\wamp
13 - If you have one or more Virtual Hosts defined, please show their definition(s)

host
127.0.0.1 eparchdemo.dev
::1 eparchdemo.dev


127.0.0.1 edemops.dev
::1 edemops.dev


httpd-vhosts.conf
<VirtualHost *:80>
	ServerName eparchdemo.dev
    ServerAlias www.eparchdemo.dev
	DocumentRoot c:/wamp/www/eparchdemo_org
	<Directory  "c:/wamp/www/eparchdemo_org/">
		Options +Indexes +FollowSymLinks +MultiViews
		AllowOverride All
		Require local
	</Directory>
</VirtualHost>
<VirtualHost *:80>
	ServerName edemops.dev
    ServerAlias www.edemops.dev
	DocumentRoot c:/users/patrick/eclipsews/edemops_dev
	<Directory  "c:/users/patrick/eclipsews/edemops_dev/">
		Options Indexes FollowSymLinks MultiViews
		AllowOverride All
		Require local
	</Directory>
</VirtualHost>


Hello,
I installed WampServer 3.0.4 and one virtual host (edemops.dev) works like a charm. Unfortunately the other(eparchdemo.dev) simply outputs a file that is downloaded to my pc. If I open a file explicitly( e.g. testindex.php) then the downloaded file is named testindex. In the browser if I type the server name(eparchdemo.dev, www.eparchdemo.dev or [eparchdemo.dev]) the file is named download. Can you please help

Viewing all articles
Browse latest Browse all 3177

Trending Articles



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