New Install - PHP Not Running

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

New Install - PHP Not Running

Postby kamland » 13. January 2009 03:46

Just installed XAMPP. All .html files display properly in browser. When I try to execute the index.php file that came with the install I get the following message in the browser
"Something is wrong with the XAMPP installation :-( ". Any suggestions?

Thanks
kamland
 
Posts: 3
Joined: 13. January 2009 03:35

Re: New Install - PHP Not Running

Postby Izzy » 13. January 2009 03:49

Try reading the xampp\apache\logs\error.log file and see if there are any clues.
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Re: New Install - PHP Not Running

Postby glitzi85 » 13. January 2009 03:55

Do you just get this message, no strange Code around?

Try to open this links:
http://localhost/xampp/
http://localhost/phpmyadmin
http://localhost/xampp/phpinfo.php

What do you see?

glitzi
User avatar
glitzi85
 
Posts: 1920
Joined: 05. March 2004 23:26
Location: Dahoim

Re: New Install - PHP Not Running

Postby Izzy » 13. January 2009 04:04

Did you run the xampp_setup.bat file after installing XAMPP or did you encounter problems running it as you are using the Vista OS perhaps?

What OS are you using?

What version of XAMPP did you install?

This is where the error message originates from the htdocs\index.php file (http://localhost or http://localhost/index.php) and would seem it can't find the htdocs\xampp folder ('.$uri.'/xampp/') and so can't redirect to htdocs\xampp\index.php, so the only option left to the server is to continue parsing the file and send the text line back to the browser - suspect possible path issue created by not running the bat file after installation.

.\xampp\htdocs\index.php code:
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 :-(
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Re: New Install - PHP Not Running

Postby kamland » 14. January 2009 03:43

I followed install documentation and did run the xampp_setup_bat after unzipping (1.7)to c:\xampp, I did not get an error message. I am running XP, not Vista.

I was able to successfully open and view the following links:

Try to open this links:
http://localhost/xampp/ (Congratulations:
You have successfully installed XAMPP on this system!)
http://localhost/phpmyadmin (saw log in screen)
http://localhost/xampp/phpinfo.php (php data)

One error on error log file: [Mon Jan 12 21:02:21 2009] [error] [client 127.0.0.1] user root not found: /xampp/biorhythm.php, referer: http://127.0.0.1/xampp/navi.php
datablock position = 2048
[Mon Jan 12 21:11:49 2009] [notice] Parent: Received shutdown signal -- Shutting down the server.
kamland
 
Posts: 3
Joined: 13. January 2009 03:35

Re: New Install - PHP Not Running

Postby Izzy » 14. January 2009 03:58

kamland wrote:http://localhost/xampp/ (Congratulations:
You have successfully installed XAMPP on this system!)

[Mon Jan 12 21:11:49 2009] [notice] Parent: Received shutdown signal -- Shutting down the server.
Have you deleted any files or run a disk cleanup after installing XAMPP?...
...because this is not what should be seen - you should see the XAMPP Welcome screen from http://localhost/xampp and from just http://localhost

This text ($TEXT['start-subhead']) :
(Congratulations:
You have successfully installed XAMPP on this system!)

is presented when there is some issue that is preventing the proper XAMPP Welcome Page from being displayed and is a follow on from your original error message
Something is wrong with the XAMPP installation

The other URLs you visited look normal.

The [notice] is normal when you stop Apache.

Check in the htdocs\xampp folder if you have a lang.tmp file.

Drag xampp\apache\conf\httpd.conf file into your text editor and find this line (line 42 by default) and paste back here what yours looks like:
ServerRoot "C:/xampp/apache"
(I'll show you mine if you show me yours :D)

It is possible you have a corrupted install or a corrupted download file.

Try and uninstall XAMPP by stopping all XAMPP components including the XAMPP Control Panel and any running as a service then delete the whole xampp folder - don't try and reinstall over the current xampp folder..

Try a different install method by downloading the 7zip self extracting file and extract the contents to C:\ so you get C:\xampp after extracting not to "after unzipping (1.7)to c:\xampp".

Now run setup_xampp.bat and you should be set to go.

http://localhost should take you to the XAMPP Welcome page where you select your language and proceed to the demo pages to test your installation of XAMPP.

Please post back if this helps with the problem.
Thanks.
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Re: New Install - PHP Not Running

Postby kamland » 14. January 2009 05:20

Have not deleted files and have not run a cleanup.

here is line 42: ServerRoot "C:/xampp/apache" and here is the rest of what I get from localhost/xampp:

Welcome to XAMPP for Windows Version 1.7.0 !
Congratulations:
You have successfully installed XAMPP on this system!

Now you can start using Apache and Co. You should first try »Status« on the left navigation to make sure everything works fine.

For OpenSSL support please use the test certificate with https://127.0.0.1 or https://localhost

For this release a special thanks to Uwe Steinmann for his excellent development and compilation of all current "Special" modules!

Good luck, Kay Vogelgesang + Kai 'Oswald' Seidler


Additional errors on log:

Tue Jan 13 22:43:57 2009] [error] [client 127.0.0.1] File does not exist: C:/xampp/htdocs/htdocs
[Tue Jan 13 22:44:33 2009] [error] [client 127.0.0.1] File does not exist: C:/xampp/htdocs/htdocs
[Tue Jan 13 22:50:54 2009] [error] [client 127.0.0.1] File does not exist: C:/xampp/htdocs/htdocs

I really appreciate your help. Thank you very much.
kamland
 
Posts: 3
Joined: 13. January 2009 03:35

Re: New Install - PHP Not Running

Postby Izzy » 14. January 2009 05:49

kamland wrote:Welcome to XAMPP for Windows Version 1.7.0 !
Congratulations:
You have successfully installed XAMPP on this system!

Now you can start using Apache and Co. You should first try »Status« on the left navigation to make sure everything works fine.

For OpenSSL support please use the test certificate with https://127.0.0.1 or https://localhost

For this release a special thanks to Uwe Steinmann for his excellent development and compilation of all current "Special" modules!

Good luck, Kay Vogelgesang + Kai 'Oswald' Seidler

I really appreciate your help. Thank you very much.

You will also get the above XAMPP Welcome Page by going to http://localhost is that correct?

But and here has been your issue perhaps all along, if you try and open the index.php file, other than through a web server using a url like http://localhost/index.php so the server can parse the code, then you will get the error message you got in your first post.

file:///C:/xampp/htdocs/index.php in your browser's address bar will give you this message:
Something is wrong with the XAMPP installation.

I should have spotted it in the first place and saved some time. ;)



Additional errors on log:

Tue Jan 13 22:43:57 2009] [error] [client 127.0.0.1] File does not exist: C:/xampp/htdocs/htdocs
[Tue Jan 13 22:44:33 2009] [error] [client 127.0.0.1] File does not exist: C:/xampp/htdocs/htdocs
[Tue Jan 13 22:50:54 2009] [error] [client 127.0.0.1] File does not exist: C:/xampp/htdocs/htdocs


Relay back exactly what you are doing when you get this error message.

Try running apache_start.bat file for a more detailed error message perhaps.
Izzy
 
Posts: 3344
Joined: 25. April 2006 17:06

Re: New Install - PHP Not Running

Postby glitzi85 » 15. January 2009 16:43

@kamland: You didn't fully answer my post. What EXACTLY!!! error message did you get?

If you open the php files by double clicking them in the explorer, then you will NOT get the message you posted in your first post! Then there MUST be displayed some code around this message! If you open the file via http://localhost/index.php then you should either get only this error message, what means that something is wrong or you get forwarded to http://localhost/xampp

Just for your Information: http://localhost refers to the folder C:\xampp\htdocs. So if you call http://localhost/xampp this will be delivered from C:\xampp\htdocs\xampp.

glitzi
User avatar
glitzi85
 
Posts: 1920
Joined: 05. March 2004 23:26
Location: Dahoim


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 55 guests