php does not start up

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

php does not start up

Postby zteffe » 15. July 2008 16:38

Apologies for writing in English. My German is too ropey.

I have installed xampp v 1.6.7 on my pc running windows xp sp2. I installed the packages in c:\xampp.

I don't get any error messages during the installation. The apache, mysql and filezilla are started up as services. Apache and mtsql appear to be running fine. I had to allow them to have full access as my virus software scuppered running it with limited access (outbound-only access)

I try the welcome to xampp page which works fine. I check the status of apache and mysql and both are running fine, which is confirmed by
Congratulations:
You have successfully installed XAMPP on this system!

However, I get the message that something is wrong with the xampp installation. I have seen it suggested that one can manually go in and edit the path to php (in a .conf file). However, there were not enough instructions for me to follow what one had to do.

The FAQ for the xampp windows installation suggests that one could possibly edit the php.ini file. However, one needs to know what one is doing. I don't.

I have uninstalled and reinstalled the xampp package few times. It hasn't made any difference.

I would be grateful for any suggestions of what to try next. :cry:
zteffe
 
Posts: 7
Joined: 15. July 2008 16:18
Location: Buxton, United Kingdom

Postby Wiedmann » 15. July 2008 16:43

However, I get the message that something is wrong with the xampp installation.

When you get this message?
(What are you doing exactly?)
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby zteffe » 15. July 2008 17:25

One of the suggestions for testing the installation is to load index.php into the browser. The file resides in c:\ xampp\htdocs

I enclose the file below:

Code: Select all
<?php
   if (!empty($_SERVER['HTTPS']) && ('on' == $_SERVER['HTTPS'])) {
      $uri = 'https://';
   } else {
      $uri = 'http://';
   }
   $uri .= $_SERVER['HTTP_HOST'];
   header('Location: '.$uri.'/xampp/');
   exit;
?>
Something is wrong with the XAMPP installation :-(


I have also tried with other simple php-files (with say an echo date('arg')) without success.
Last edited by zteffe on 15. July 2008 17:40, edited 1 time in total.
zteffe
 
Posts: 7
Joined: 15. July 2008 16:18
Location: Buxton, United Kingdom

Postby Wiedmann » 15. July 2008 17:35

is to load index.php into the browser.

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

Postby zteffe » 15. July 2008 17:41

Thank you for replying so quickly.

I use Open file (in File drop-down menu) of Firefox to access the file.
zteffe
 
Posts: 7
Joined: 15. July 2008 16:18
Location: Buxton, United Kingdom

Postby Wiedmann » 15. July 2008 17:53

I use Open file (in File drop-down menu) of Firefox to access the file.

You can't use "open file" with PHP files.
--> PHP is executed on a server, and thus you must open such files with "http://servername/path/filename.php" ("open location" or address bar)
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby zteffe » 15. July 2008 18:04

Schoolboy mistake!

I have just tried http://localhost/xampp/htdocs/index.php and
http://127.0.0.1/xampp/htdocs/index.php. The error message reads

Code: Select all
Object not found!

The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again.

If you think this is a server error, please contact the webmaster.
Error 404
127.0.0.1
07/15/08 18:03:12
Apache/2.2.9 (Win32) DAV/2 mod_ssl/2.2.9 OpenSSL/0.9.8h mod_autoindex_color PHP/5.2.6


The file does exist in the directory I specify. :oops: :oops: :oops:
zteffe
 
Posts: 7
Joined: 15. July 2008 16:18
Location: Buxton, United Kingdom

Postby zteffe » 15. July 2008 18:12

The xampp demos work (reached from http://localhost/xampp), such as CD collection or instant art, which suggests that php is working at some level or other.
zteffe
 
Posts: 7
Joined: 15. July 2008 16:18
Location: Buxton, United Kingdom

Postby Wiedmann » 15. July 2008 18:21

I have just tried http://localhost/xampp/htdocs/index.php ... The error message reads:
Object not found!

Well, the directory for this URI: "http://localhost/"
is "/xampp/htdocs/".

Thus, for this URI: "http://localhost/xampp/htdocs/index.php"
you must have a file: "/xampp/htdocs/xampp/htdocs/index.php"
(I don't think you have such a file/directory)

I guess you have the file: "/xampp/htdocs/index.php"
and the URI for this file is: "http://localhost/index.php"
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby zteffe » 15. July 2008 22:18

Wiedman,

Thank you very much for your help. It's now up and running!
zteffe
 
Posts: 7
Joined: 15. July 2008 16:18
Location: Buxton, United Kingdom


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 137 guests