not able to run simple php program
Moderator: General Moderators
-
ramakrishnamurthyr
- Forum Newbie
- Posts: 6
- Joined: Wed Mar 11, 2009 10:06 pm
not able to run simple php program
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
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
what's the error? if it is 404, make sure you have started all the services
-
ramakrishnamurthyr
- Forum Newbie
- Posts: 6
- Joined: Wed Mar 11, 2009 10:06 pm
Re: not able to run simple php program
the error is "page cannot be found"
Re: not able to run simple php program
your server is not yet started
-
ramakrishnamurthyr
- Forum Newbie
- Posts: 6
- Joined: Wed Mar 11, 2009 10:06 pm
Re: not able to run simple php program
then how to check that server s running........
- The_Anomaly
- Forum Contributor
- Posts: 196
- Joined: Fri Aug 08, 2008 4:56 pm
- Location: Tirana, Albania
Re: not able to run simple php program
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.phpsusrisha wrote:your server is not yet started
Make sure your server is on, go through your configs and make sure that www is your webroot, etc.
And get linux
-
ramakrishnamurthyr
- Forum Newbie
- Posts: 6
- Joined: Wed Mar 11, 2009 10:06 pm
Re: not able to run simple php program
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.........
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
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
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?
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?
-
ramakrishnamurthyr
- Forum Newbie
- Posts: 6
- Joined: Wed Mar 11, 2009 10:06 pm
Re: not able to run simple php program
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
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
dump the wamp and go for this http://www.easyphp.org/
-
ramakrishnamurthyr
- Forum Newbie
- Posts: 6
- Joined: Wed Mar 11, 2009 10:06 pm
Re: not able to run simple php program
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