WAMPServer 2.0 on Vista does not run PHP

Reply

Join Date: Apr 2009
Posts: 24
Reputation: kssi89 is an unknown quantity at this point 
Solved Threads: 0
kssi89 kssi89 is offline Offline
Newbie Poster

WAMPServer 2.0 on Vista does not run PHP

 
0
  #1
Jul 2nd, 2009
Hello everyone,

I'm trying to test PHP of WAMP on a vista machine but every time I attempt to launch a page in IE, the browser asks if I want to download the PHP page. Here is the code I've used:

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <title>Test</title>
  6. </head>
  7.  
  8. <body>
  9. <? php
  10. phpinfo();
  11. ?>
  12. </body>
  13. </html>

I've also attempted a simple echo of get world and see the same behavior. I feel like there is something very simple I have forgotten. Windows firewall is off.
Reply With Quote Quick reply to this message  
Join Date: Jul 2009
Posts: 4
Reputation: kamran_FrizCon is an unknown quantity at this point 
Solved Threads: 1
kamran_FrizCon's Avatar
kamran_FrizCon kamran_FrizCon is offline Offline
Newbie Poster

Re: WAMPServer 2.0 on Vista does not run PHP

 
0
  #2
Jul 2nd, 2009
This is because of your apache web server is not configured properly.

You should look at the httpd.conf file for apache and change its default port to 8080 if IIS is running on your machine. As IIS runs on 80 port that could stop apache to occupy its port.





Originally Posted by kssi89 View Post
Hello everyone,

I'm trying to test PHP of WAMP on a vista machine but every time I attempt to launch a page in IE, the browser asks if I want to download the PHP page. Here is the code I've used:

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <title>Test</title>
  6. </head>
  7.  
  8. <body>
  9. <? php
  10. phpinfo();
  11. ?>
  12. </body>
  13. </html>

I've also attempted a simple echo of get world and see the same behavior. I feel like there is something very simple I have forgotten. Windows firewall is off.
Reply With Quote Quick reply to this message  
Join Date: Apr 2009
Posts: 24
Reputation: kssi89 is an unknown quantity at this point 
Solved Threads: 0
kssi89 kssi89 is offline Offline
Newbie Poster

Re: WAMPServer 2.0 on Vista does not run PHP

 
0
  #3
Jul 2nd, 2009
Originally Posted by kamran_FrizCon View Post
This is because of your apache web server is not configured properly.

You should look at the httpd.conf file for apache and change its default port to 8080 if IIS is running on your machine. As IIS runs on 80 port that could stop apache to occupy its port.
Hey Kamran! I appreciate your suggestion, this has not changed my situation. I attempted to clear temporary files and cache and try to re run the page. I change the getinfo() to an echo with Hello World as my output: <?php echo("Hello World"); ?> .

The only notable difference at this point is that I need to include a port number in the browser when navigating to WAMPServer home.

Do you have any additional suggestions?
Reply With Quote Quick reply to this message  
Join Date: Jun 2008
Posts: 50
Reputation: alimoe is an unknown quantity at this point 
Solved Threads: 2
alimoe's Avatar
alimoe alimoe is offline Offline
Junior Poster in Training

Re: WAMPServer 2.0 on Vista does not run PHP

 
0
  #4
Jul 2nd, 2009
do you have skype running?
I am a Novice..............
Reply With Quote Quick reply to this message  
Join Date: Apr 2009
Posts: 24
Reputation: kssi89 is an unknown quantity at this point 
Solved Threads: 0
kssi89 kssi89 is offline Offline
Newbie Poster

Re: WAMPServer 2.0 on Vista does not run PHP

 
0
  #5
Jul 3rd, 2009
Originally Posted by alimoe View Post
do you have skype running?
No, I do have skype and when it runs, I am not able to access the localhost/WAMP server page; however, this was aproblem before that I alleviated by just not running skype.
Reply With Quote Quick reply to this message  
Join Date: Jun 2008
Posts: 50
Reputation: alimoe is an unknown quantity at this point 
Solved Threads: 2
alimoe's Avatar
alimoe alimoe is offline Offline
Junior Poster in Training

Re: WAMPServer 2.0 on Vista does not run PHP

 
0
  #6
Jul 3rd, 2009
make sure skype is off before you run wamp!
I am a Novice..............
Reply With Quote Quick reply to this message  
Join Date: Apr 2009
Posts: 24
Reputation: kssi89 is an unknown quantity at this point 
Solved Threads: 0
kssi89 kssi89 is offline Offline
Newbie Poster

Re: WAMPServer 2.0 on Vista does not run PHP

 
0
  #7
Jul 3rd, 2009
Originally Posted by alimoe View Post
make sure skype is off before you run wamp!
Thank you,

It is off.
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 57
Reputation: emarshah is an unknown quantity at this point 
Solved Threads: 5
emarshah emarshah is offline Offline
Junior Poster in Training

Re: WAMPServer 2.0 on Vista does not run PHP

 
0
  #8
Jul 3rd, 2009
Hello,

Try to test wamp on different port to find out if port is being used by different application or blocked by your isp.

Open file httpd.conf and find this line

listen 80
Change to
listen 81

Save file and restart wamp to take effect. Remember to enable port 81 in all firewalls and routers as well ;-)
If my post help you, do add it to my reputation.
Last edited by emarshah; Jul 3rd, 2009 at 2:56 am.
Syed Ammar Hassan
" A man is known by his level of Determinism "
--------------------------------------------------------
"Some cause happiness where ever they go, others whenever They go"
--------------------------XIII---------------------------
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC