Page 1 of 1

localhost OK, php not working

PostPosted: 13. January 2006 11:27
by stef25
I successfully installed xampp on my xp pc, confirmed by visiting localhost

However, when I open index.php in htdocs which came with the installation, firefox opens and says that there is something wrong with the xampp installation. I have not touched any settings at all.

What could cause this?

PostPosted: 13. January 2006 11:42
by Wiedmann
when I open index.php in htdocs

How did you open this file?

PostPosted: 13. January 2006 11:49
by stef25
double click

PostPosted: 13. January 2006 11:54
by Wiedmann
You know the readme with the installation guide (specially step 3)?

PostPosted: 13. January 2006 22:58
by stef25
i appreciate your help

which guide are you referring to and whats in step 3?

PostPosted: 30. January 2006 12:35
by Wiedmann
which guide are you referring to

\xampp\readme_en.txt

or http://www.apachefriends.org/en/xampp-windows.html#1168

PostPosted: 01. February 2006 14:06
by stef25
step 3 is below. you mean that my problem could be due to apache not started? but then localhost would not be working, right?

i dont see how this relates to index.php giving an error?

Step 3: If installation ends successfully, start the Apache 2 with
"apache_start".bat", MySQL with "mysql_start".bat". Stop the MySQL
Server with "mysql_stop.bat". For shutdown the Apache HTTPD, only
close the Apache Command (CMD).

PostPosted: 01. February 2006 14:11
by Wiedmann
Hmm, you have an old XAMPP? On my XAMPP "Step 3" is:
readme_en.txt wrote:Step 3: Start your browser and type http://127.0.0.1 or
http://localhost in the location bar. You should see our pre-made
start page with certain examples and test screens.

PostPosted: 01. February 2006 14:31
by stef25
localhost works fine

im now at my xampp machine now. i assume one of the test screens to check if php is working?

PostPosted: 23. February 2006 00:04
by CPcoder
stef25 wrote:step 3 is below. you mean that my problem could be due to apache not started? but then localhost would not be working, right?

i dont see how this relates to index.php giving an error?

Step 3: If installation ends successfully, start the Apache 2 with
"apache_start".bat", MySQL with "mysql_start".bat". Stop the MySQL
Server with "mysql_stop.bat". For shutdown the Apache HTTPD, only
close the Apache Command (CMD).


I should point out that those instructions are if running Apache as a service, not as a module. If running as a module, you start and stop using XAMPP Control's "Start" and "Stop" buttons.

PostPosted: 23. February 2006 00:06
by CPcoder
stef25 wrote:localhost works fine

im now at my xampp machine now. i assume one of the test screens to check if php is working?


Click on some of the links at left, especially the interactive stuff, like phpinfo() and Biorhythms.

Do you still have a problem when viewing your own php pages? I am having problems and I wonder if yours was solved.

PostPosted: 23. February 2006 00:38
by Wiedmann
I should point out that those instructions are if running Apache as a service, not as a module. If running as a module, you start and stop using XAMPP Control's "Start" and "Stop" buttons.

No. "apache_start.bat" is for starting Apache as normal application (modul). (and apache_stop.bat for stopping)

If you have installed Apache as service you can start it with (in cmd):
net start apache

and stop it with:
net stop apache

You can also control the Apache service with the Windows service manager (as every other installed service).

With the XAMPP control panel you can start/stop Apache as service or as application (modul).

PostPosted: 23. February 2006 01:21
by CPcoder
Wiedmann wrote:No. "apache_start.bat" is for starting Apache as normal application (modul). (and apache_stop.bat for stopping)

If you have installed Apache as service you can start it with (in cmd):
net start apache

and stop it with:
net stop apache

You can also control the Apache service with the Windows service manager (as every other installed service).

With the XAMPP control panel you can start/stop Apache as service or as application (modul).


My bad...I could swear I read that, and now I went looking for the doc or readme or FAQ where I found it (I bookmarked all I read), so I could give a link to the mis-information. But I don't find any such statement. I guess maybe I have done too much reading! :oops: So sorry.

But I am correct in thinking I don't need to use apache_start.bat, right?

PostPosted: 23. February 2006 01:52
by Wiedmann
But I am correct in thinking I don't need to use apache_start.bat, right?

Right. It's only one more way of starting Apache / MySQL.

PostPosted: 08. March 2006 00:06
by stef25
ill check this out and post the results, not at that machine right now.

eager to get it to work but dissapointed im getting stuck so early on in the game ...

S