Page 1 of 1
not able to run simple php program
Posted: Wed Mar 11, 2009 10:17 pm
by ramakrishnamurthyr
hi all
pls help me
i have installed wampserver...then i have create simple program and saved as "test.php" in www folder...
then just typed
http://localhost/test.php in address bar but it shows error ....
pls help me
regards
ram
Re: not able to run simple php program
Posted: Wed Mar 11, 2009 10:54 pm
by jhack
what's the error? if it is 404, make sure you have started all the services
Re: not able to run simple php program
Posted: Wed Mar 11, 2009 11:39 pm
by ramakrishnamurthyr
the error is "page cannot be found"
Re: not able to run simple php program
Posted: Wed Mar 11, 2009 11:41 pm
by susrisha
your server is not yet started
Re: not able to run simple php program
Posted: Thu Mar 12, 2009 5:23 am
by ramakrishnamurthyr
then how to check that server s running........
Re: not able to run simple php program
Posted: Thu Mar 12, 2009 5:29 am
by The_Anomaly
susrisha wrote:your server is not yet started
This is very likely. I don't know about WAMP, but does it operate on a port other than 80? At least when I used to use Coldfusion on windows, I had to use port 8500, so the address would be
http://localhost:8500/index.php
Make sure your server is on, go through your configs and make sure that www is your webroot, etc.
And get linux 
Re: not able to run simple php program
Posted: Thu Mar 12, 2009 5:42 am
by ramakrishnamurthyr
hi all,
who r al knows about wampserver pls solve my prob....the error is "page cannot be found"...how to check that server s running.........
Re: not able to run simple php program
Posted: Thu Mar 12, 2009 6:17 am
by susrisha
since its a wamp server, the wamp controller will be able to tell you. or else task manager.. httpd.exe is the process name for apache.
Re: not able to run simple php program
Posted: Thu Mar 12, 2009 6:59 am
by JeffG
Start task manager and click on Services button at the bottom (on Vista - you don't say what OS you are running: if XP may be different). In the Services window, do you see "Apache2.2" (or whatever version you are running) at or near the top of the list? In the Status column, does it say "Started"? If so your server is running.
If the server is running, did you copy test.php to C:\Apache\htdocs (if you installed Apache in C:\Apache)?
If you did that, did you edit httpd.conf correctly?
Re: not able to run simple php program
Posted: Thu Mar 12, 2009 7:22 am
by ramakrishnamurthyr
actually am new for php i never worked before i don no both apache n wampserver are same....i ll tel you in detail....am using win xp...then i installed wampserver2.0 ....after installin wamp i created one simple php n try to execute it but it shows page cannot be displayed.....
then no process s runnin in the name as httpd.conf in the task manager....the only one which s runnin related to wamp, it seems that too wampmanager.exe...... pls tel me now wat to do
Re: not able to run simple php program
Posted: Thu Mar 12, 2009 7:37 am
by php_east
dump the wamp and go for this
http://www.easyphp.org/
Re: not able to run simple php program
Posted: Thu Mar 12, 2009 8:37 am
by ramakrishnamurthyr
hey i reinstalled wampserver and trying to clear registry but it shows admin disabled registry but i logged in admin only...am using win xp