Problem with php in xampp v 1.6.7! Need Help!!!!!

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

Problem with php in xampp v 1.6.7! Need Help!!!!!

Postby mashfiq363 » 21. August 2008 16:30

Hi there! I'm a newbie to php and also to xampp. I've installed xampp v 1.6.7 just a while back. As far as xampp installation is concern it was successful and I got the msg after the installation was over! My o/s is Windows XP, service pack 2. I installed xampp in N:\Program Files\xampp;(N is the o/s installation drive)
I installed both Apache and MySql as services. I checked my Apache installation by typing http://localhost on the browser's address field and I've been directed to the xampp index page(it was successful).

Then I wrote a simple HTML file and named it hello.html and placed it to the N:\Program Files\xampp\htdocs\hello.html 8)

Then I opened the browser and and typed http://localhost/hello.html on the address field and directed to the desired page though it was also a success. : :lol: :lol: :lol: :lol: :lol: :lol:

But, now here comes the sorry tale.. :cry: :cry: :cry: :cry: :cry:
Then I wrote the simplest code in php as :

<?php
phpinfo();
?>

and saved it as info.php at N:\Program Files\xampp\htdocs\info.php

Then again I opened the browser and typed on the address field http://localhost/info.php

and got the following Error:

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
localhost
08/21/08 20:26:12
Apache/2.2.9 (Win32) DAV/2 mod_ssl/2.2.9 OpenSSL/0.9.8h mod_autoindex_color PHP/5.2.6


:cry: :cry: :cry: :cry: :cry: :cry: :cry: :cry: :cry: :cry: :cry: :cry: :cry: :cry:
:roll: :roll: :roll: :roll: :roll: :roll: :roll: :roll: :roll: :roll: :roll: :roll: :roll: :roll:

I've already searched the forum but failed to get any solutions regarding this!!!!!!!!

I'm really hopeless at this moment and have left with no other choice than posting this message to the forum!!!!! :roll: :roll: :roll: :roll: :roll: :roll: :roll: :roll: :roll: :roll: :roll:

Is there anyone who can HELP me out?????!!!!!?????

Please help me! I'll be grateful to you!!!!

I'll be waiting for your reply!!!!!

:( :( :( :( :( :( :( :( :( :( :(
mashfiq363
 
Posts: 3
Joined: 21. August 2008 15:49
Location: INDIA

Postby glitzi85 » 21. August 2008 18:00

Hello,

please do not use hundreds of smileys in your post, it is neither useful nor makes it the post better readable.

Post the content from the two files access.log and error.log. You will find them in N:\Program Files\xampp\apache\logs

There you will find the reason why the page was not found.

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

Postby mashfiq363 » 21. August 2008 21:54

glitzi85 wrote:Hello,

please do not use hundreds of smileys in your post, it is neither useful nor makes it the post better readable.

Post the content from the two files access.log and error.log. You will find them in N:\Program Files\xampp\apache\logs

There you will find the reason why the page was not found.

glitzi


Hi there!
It's really nice to receive a very quick reply from you. Thanks for that! And I'm really so sorry for those STUPID SMILEYS!

I checked both the "access.log" and "error.log" placed in N:\Program Files\xampp\apache\logs . What I found there is:

"access.log" showed:

127.0.0.1 - - [22/Aug/2008:00:33:15 +0530] "GET /info.php HTTP/1.1" 404 1118
127.0.0.1 - - [22/Aug/2008:00:33:15 +0530] "GET /favicon.ico HTTP/1.1" 200 30894

Whereas "error.log" showed:

PHP Warning: PHP Startup: Unable to load dynamic library 'N:\\Program Files\\xampp\\php\\ext\\php_pgsql.dll' - This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem.\r\n in Unknown on line 0
[Fri Aug 22 00:30:55 2008] [notice] Apache/2.2.9 (Win32) DAV/2 mod_ssl/2.2.9 OpenSSL/0.9.8h mod_autoindex_color PHP/5.2.6 configured -- resuming normal operations
[Fri Aug 22 00:30:55 2008] [notice] Server built: Jun 14 2008 19:02:12
[Fri Aug 22 00:30:56 2008] [notice] Parent: Created child process 1708
PHP Warning: PHP Startup: Unable to load dynamic library 'N:\\Program Files\\xampp\\php\\ext\\php_pgsql.dll' - This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem.\r\n in Unknown on line 0
[Fri Aug 22 00:30:58 2008] [notice] Child 1708: Child process is running
[Fri Aug 22 00:30:58 2008] [notice] Child 1708: Acquired the start mutex.
[Fri Aug 22 00:30:58 2008] [notice] Child 1708: Starting 250 worker threads.
[Fri Aug 22 00:30:58 2008] [notice] Child 1708: Starting thread to listen on port 443.
[Fri Aug 22 00:30:58 2008] [notice] Child 1708: Starting thread to listen on port 80.
[Fri Aug 22 00:33:15 2008] [error] [client 127.0.0.1] script 'N:\Program Files\xampp\htdocs\info.php' not found or unable to stat

So, I went onto uninstall the xampp and reinstalled it in the following location:
N:\xampp

Then again I started the Apache server and typed on the address field of my browser :
http://localhost

It was successful and in return got the xampp index page.

Then I wrote a simple html code and saved it as "hi.html" in location:
N:\xampp\htdocs\hi.html

I also got the "hi.html" page successfully once I typed the following on the address field of my browser:

http://localhost/hi.html

Then again the same old thing happened when I wrote the simple php code as:
<?php
phpinfo();
?>

And saved it as "info.php" in the location:

N:\xampp\htdocs\info.php

Once I typed this on the address field of the browser:

http://localhost/info.php

Here I got the same old error message again which says:

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
localhost
08/22/08 01:00:54
Apache/2.2.9 (Win32) DAV/2 mod_ssl/2.2.9 OpenSSL/0.9.8h mod_autoindex_color PHP/5.2.6

Then I checked the "access.log" and "error.log" again, where

"access.log" says:

127.0.0.1 - - [22/Aug/2008:00:59:39 +0530] "GET / HTTP/1.1" 302 -
127.0.0.1 - - [22/Aug/2008:00:59:39 +0530] "GET /xampp/ HTTP/1.1" 302 -
127.0.0.1 - - [22/Aug/2008:00:59:39 +0530] "GET /xampp/splash.php HTTP/1.1" 200 1325
127.0.0.1 - - [22/Aug/2008:00:59:39 +0530] "GET /xampp/xampp.css HTTP/1.1" 200 4178
127.0.0.1 - - [22/Aug/2008:00:59:39 +0530] "GET /xampp/img/blank.gif HTTP/1.1" 200 43
127.0.0.1 - - [22/Aug/2008:00:59:39 +0530] "GET /xampp/img/xampp-logo.jpg HTTP/1.1" 200 19738
127.0.0.1 - - [22/Aug/2008:00:59:39 +0530] "GET /favicon.ico HTTP/1.1" 200 30894
127.0.0.1 - - [22/Aug/2008:01:00:54 +0530] "GET /info.php HTTP/1.1" 404 1118


And the "error.log" says:

PHP Warning: PHP Startup: Unable to load dynamic library 'N:\\xampp\\php\\ext\\php_pgsql.dll' - This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem.\r\n in Unknown on line 0
[Fri Aug 22 00:57:44 2008] [notice] Apache/2.2.9 (Win32) DAV/2 mod_ssl/2.2.9 OpenSSL/0.9.8h mod_autoindex_color PHP/5.2.6 configured -- resuming normal operations
[Fri Aug 22 00:57:44 2008] [notice] Server built: Jun 14 2008 19:02:12
[Fri Aug 22 00:57:44 2008] [notice] Parent: Created child process 2424
PHP Warning: PHP Startup: Unable to load dynamic library 'N:\\xampp\\php\\ext\\php_pgsql.dll' - This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem.\r\n in Unknown on line 0
[Fri Aug 22 00:57:45 2008] [notice] Child 2424: Child process is running
[Fri Aug 22 00:57:45 2008] [notice] Child 2424: Acquired the start mutex.
[Fri Aug 22 00:57:45 2008] [notice] Child 2424: Starting 250 worker threads.
[Fri Aug 22 00:57:45 2008] [notice] Child 2424: Starting thread to listen on port 443.
[Fri Aug 22 00:57:45 2008] [notice] Child 2424: Starting thread to listen on port 80.
[Fri Aug 22 01:00:54 2008] [error] [client 127.0.0.1] script 'N:/xampp/htdocs/info.php' not found or unable to stat


The same old story!!!!!

I'm really confused now and don't know how to fix this problem!

I've no clue what to do now! Please help..
mashfiq363
 
Posts: 3
Joined: 21. August 2008 15:49
Location: INDIA

Postby glitzi85 » 21. August 2008 22:18

In fact that is very strange. How do you create those two files? Do you use different software to do that?

Then it could be that the file extensions do not match. Open an Explorer Window, in the Menu bar open Tools -> Folder settings, go to tab View and uncheck the Point "Hide extensions for known file types" if it is checked. Then change into your htdocs folder and have a look onto the file names.

Otherwise i have no clue what could be wrong.

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

Postby mashfiq363 » 21. August 2008 23:29

glitzi85 wrote:In fact that is very strange. How do you create those two files? Do you use different software to do that?

Then it could be that the file extensions do not match. Open an Explorer Window, in the Menu bar open Tools -> Folder settings, go to tab View and uncheck the Point "Hide extensions for known file types" if it is checked. Then change into your htdocs folder and have a look onto the file names.

Otherwise i have no clue what could be wrong.

glitzi



Yahoooooo!!!!!! It's working now! You were absolutely right. It was the "Hide extensions for known file types" which was checked before. So, I've just unchecked that and it works now. You're really a genius!!! Thanks for all your suggestions and for quick replies. It's almost 4 in the morning over here. Now I can get some sound sleep as the problem has been solved at last. Thanks again for your cooperation. Goodbye!
mashfiq363
 
Posts: 3
Joined: 21. August 2008 15:49
Location: INDIA


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 62 guests