| | |
WAMPServer 2.0 on Vista does not run PHP
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Apr 2009
Posts: 24
Reputation:
Solved Threads: 0
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:
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.
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:
PHP Syntax (Toggle Plain Text)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Test</title> </head> <body> <? php phpinfo(); ?> </body> </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.
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.
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.
•
•
•
•
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:
PHP Syntax (Toggle Plain Text)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Test</title> </head> <body> <? php phpinfo(); ?> </body> </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.
•
•
Join Date: Apr 2009
Posts: 24
Reputation:
Solved Threads: 0
•
•
•
•
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.
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?
•
•
Join Date: Jan 2008
Posts: 57
Reputation:
Solved Threads: 5
Hello,
Try to test wamp on different port to find out if port is being used by different application or blocked by your isp.
If my post help you, do add it to my reputation.
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 ;-)
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---------------------------
" A man is known by his level of Determinism "
--------------------------------------------------------
"Some cause happiness where ever they go, others whenever They go"
--------------------------XIII---------------------------
![]() |
Similar Threads
- Run PHP program (PHP)
- Will This Computer Run Windows Vista? (Windows Vista and Windows 7)
- How to run the PHP (PHP)
- run php file as services in linux (PHP)
- Run PHP script every 10 seconds (PHP)
- How to compaire Stored Dates with System Date (PHP-MYSQL) (PHP)
- cannot run php on apache (Linux Servers and Apache)
- How can I run PHP Nuke? (PHP)
Other Threads in the PHP Forum
- Previous Thread: Oganizing a Report for Excel
- Next Thread: Generate a value depending on algorith
| Thread Tools | Search this Thread |
apache api array basic beginner broken cache cakephp class cms code computing confirm countingeverycharactersfromastring cron curl customizableitems database date delete dynamic echo email error fcc file filter folder form forms forum freelancing function functions gc_maxlifetime google header headmethod howtowriteathesis href htaccess html iframe image include incode ip javascript joomla limit link login malfunction match memmory memory menu method mod_rewrite multiple mysql navigation neutrality oop pagerank parsing paypal pdf php phpmysql query question random recursiveloop root script search select server sessions sms snippet soap source space sql support! system table template thesishelp trouble tutorial upload url variable video web window.onbeforeunload=closeme; youtube





