localhost OK, php not working

Problems with the Windows version of XAMPP, questions, comments, and anything related.

localhost OK, php not working

Postby stef25 » 13. January 2006 11:27

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?
stef25
 
Posts: 11
Joined: 13. January 2006 11:00

Postby Wiedmann » 13. January 2006 11:42

when I open index.php in htdocs

How did you open this file?
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby stef25 » 13. January 2006 11:49

double click
stef25
 
Posts: 11
Joined: 13. January 2006 11:00

Postby Wiedmann » 13. January 2006 11:54

You know the readme with the installation guide (specially step 3)?
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby stef25 » 13. January 2006 22:58

i appreciate your help

which guide are you referring to and whats in step 3?
stef25
 
Posts: 11
Joined: 13. January 2006 11:00

Postby Wiedmann » 30. January 2006 12:35

which guide are you referring to

\xampp\readme_en.txt

or http://www.apachefriends.org/en/xampp-windows.html#1168
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby stef25 » 01. February 2006 14:06

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).
stef25
 
Posts: 11
Joined: 13. January 2006 11:00

Postby Wiedmann » 01. February 2006 14:11

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.
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby stef25 » 01. February 2006 14:31

localhost works fine

im now at my xampp machine now. i assume one of the test screens to check if php is working?
stef25
 
Posts: 11
Joined: 13. January 2006 11:00

Postby CPcoder » 23. February 2006 00:04

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.
WinXP Home SP2
XAMPP 1.5.1 in top-level directory
Unzipped directly from .zip file
no other severs running
CPcoder
 
Posts: 30
Joined: 16. February 2006 08:44

Postby CPcoder » 23. February 2006 00:06

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.
WinXP Home SP2
XAMPP 1.5.1 in top-level directory
Unzipped directly from .zip file
no other severs running
CPcoder
 
Posts: 30
Joined: 16. February 2006 08:44

Postby Wiedmann » 23. February 2006 00:38

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).
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby CPcoder » 23. February 2006 01:21

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?
WinXP Home SP2
XAMPP 1.5.1 in top-level directory
Unzipped directly from .zip file
no other severs running
CPcoder
 
Posts: 30
Joined: 16. February 2006 08:44

Postby Wiedmann » 23. February 2006 01:52

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.
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby stef25 » 08. March 2006 00:06

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
stef25
 
Posts: 11
Joined: 13. January 2006 11:00


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 132 guests