Page 1 of 1

php does not start up

PostPosted: 15. July 2008 16:38
by zteffe
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:

PostPosted: 15. July 2008 16:43
by Wiedmann
However, I get the message that something is wrong with the xampp installation.

When you get this message?
(What are you doing exactly?)

PostPosted: 15. July 2008 17:25
by zteffe
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.

PostPosted: 15. July 2008 17:35
by Wiedmann
is to load index.php into the browser.

How are you doing this?

PostPosted: 15. July 2008 17:41
by zteffe
Thank you for replying so quickly.

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

PostPosted: 15. July 2008 17:53
by Wiedmann
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)

PostPosted: 15. July 2008 18:04
by zteffe
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:

PostPosted: 15. July 2008 18:12
by zteffe
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.

PostPosted: 15. July 2008 18:21
by Wiedmann
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"

PostPosted: 15. July 2008 22:18
by zteffe
Wiedman,

Thank you very much for your help. It's now up and running!