Instalation problem with apache_1.3.41,php-5.2.5,mysql4.1.22

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

User avatar
EverLearning
Forum Contributor
Posts: 282
Joined: Sat Feb 23, 2008 3:49 am
Location: Niš, Serbia

Re: Instalation problem with apache_1.3.41,php-5.2.5,mysql4.1.22

Post by EverLearning »

Move it to "C:\Windows\" not "c:\windows\system32\";

Also in phpinfo() output, what is the value of "Loaded Configuration File"? (Its in the top of the page.)

EDIT | And the value of "Configuration File (php.ini) Path"?
kalyani
Forum Newbie
Posts: 18
Joined: Wed Apr 09, 2008 6:57 pm

Re: Instalation problem with apache_1.3.41,php-5.2.5,mysql4.1.22

Post by kalyani »

When i moved to "C:\Windows\", it is showing blank page (that's why i moved to c:\windows\system32\"). Ofcourse either way is not working.

The Loaded Configuration File says "none".
If my understanding is not wrong, you are asking for path to php.ini. This is where the php.ini file is "C:\ApacheServer\PHP\"

Let me know if you are aksing for some thing else.

Thanks,
Kalyani
User avatar
EverLearning
Forum Contributor
Posts: 282
Joined: Sat Feb 23, 2008 3:49 am
Location: Niš, Serbia

Re: Instalation problem with apache_1.3.41,php-5.2.5,mysql4.1.22

Post by EverLearning »

I was asking what apache saw as the php.ini filepath, and "none" means it didn't find php.ini. If you get blank page when you put the file in windows folder it means that apache found it, but there were some errors. Maybe your php.ini file is malformed or something. Put it back into windows folder and try looking into apache error.log to see if there is any clue as to whats happening, also set "display_errors = on" in php.ini, and set "error_reporting = E_ALL" in php.ini.
kalyani
Forum Newbie
Posts: 18
Joined: Wed Apr 09, 2008 6:57 pm

Re: Instalation problem with apache_1.3.41,php-5.2.5,mysql4.1.22

Post by kalyani »

Finally i found it. The value of "Configuration File (php.ini) Path" is C:\Windows
I enabled "display_errors = on" and set "error_reporting = E_ALL" in the php.ini file.
I went to error.log file but i don't see any errors in that. then i went to access.log file and the message is:
127.0.0.1 - - [10/Apr/2008:15:16:19 -0700] "GET /test.php HTTP/1.1" 200 30

There is some other error (but was generated yesterday) in the error.log file
[Wed Apr 09 02:29:36 2008] [error] Cannot remove module mod_php5.c: not found in module list
User avatar
EverLearning
Forum Contributor
Posts: 282
Joined: Sat Feb 23, 2008 3:49 am
Location: Niš, Serbia

Re: Instalation problem with apache_1.3.41,php-5.2.5,mysql4.1.22

Post by EverLearning »

"Configuration File (php.ini) Path" C:\WINDOWS
is where apache is looking for php.ini.
"Loaded Configuration File" C:\webdev\php5\php.ini
is filepath to php.ini apache is using(in you case its none, so its PHP settings are set to default values).

So if you're still getting blank page when you copy php.ini to c:\windows, it means that there is something wrong with your php.ini itself, or with some settings in php.ini.

Attach you php.ini file. Maybe we'll see whats wrong.
kalyani
Forum Newbie
Posts: 18
Joined: Wed Apr 09, 2008 6:57 pm

Re: Instalation problem with apache_1.3.41,php-5.2.5,mysql4.1.22

Post by kalyani »

Attached is the php.ini file
Attachments
php.zip
Forum is not allowing me to attach .ini file. so just zipped the file.
(16.36 KiB) Downloaded 97 times
User avatar
EverLearning
Forum Contributor
Posts: 282
Joined: Sat Feb 23, 2008 3:49 am
Location: Niš, Serbia

Re: Instalation problem with apache_1.3.41,php-5.2.5,mysql4.1.22

Post by EverLearning »

Its not php.ini. I just tried it, and it worked on my machine.

How does your test file look like?

Set php.ini error_log setting to some file, so if php is starting up but there is some fatal error that kills it before it writes anything to browser, it should be written there.
kalyani
Forum Newbie
Posts: 18
Joined: Wed Apr 09, 2008 6:57 pm

Re: Instalation problem with apache_1.3.41,php-5.2.5,mysql4.1.22

Post by kalyani »

How does your test file look like?
I am not sure about the test file that you are talking about.

So i need to set the error_log to some file name in the php.ini file.

Before change
; Log errors to specified file.
;error_log = filename

After change
; Log errors to specified file.
error_log = chkforerrors

Is this what you are looking for? Let me know if i am wrong. BTW do we need to give the path anywhere for this filename(chkforerrors).

Thanks,
User avatar
EverLearning
Forum Contributor
Posts: 282
Joined: Sat Feb 23, 2008 3:49 am
Location: Niš, Serbia

Re: Instalation problem with apache_1.3.41,php-5.2.5,mysql4.1.22

Post by EverLearning »

Code: Select all

error_log = C:\ApacheServer\PHP\error.log
And as for the test file, what is the contents of the php file you use to verify that apache is parsing and interpreting php files?
Does it just have phpinfo() inside or is there something else?

Code: Select all

<?php
phpinfo();
?>
kalyani
Forum Newbie
Posts: 18
Joined: Wed Apr 09, 2008 6:57 pm

Re: Instalation problem with apache_1.3.41,php-5.2.5,mysql4.1.22

Post by kalyani »

This is what i have in my test.php file

<?
phpinfo();
?>

After creating the errror.log file, i restarted the apache server and when i run the test.php file it is not writing anything to the error.log file under C:\ApacheServer\PHP

Thanks
kalyani
Forum Newbie
Posts: 18
Joined: Wed Apr 09, 2008 6:57 pm

Re: Instalation problem with apache_1.3.41,php-5.2.5,mysql4.1.22

Post by kalyani »

Heyyyyy, i got it

this is just because i did not write php in the test.php file. See how stupid i am :(
<?
phpinfo();
?>


Thank you so much for your patience. I appreciate your help and time.
YOU MAKE MY DAY :)

Thanks again,
Kalyani
kalyani
Forum Newbie
Posts: 18
Joined: Wed Apr 09, 2008 6:57 pm

Re: Instalation problem with apache_1.3.41,php-5.2.5,mysql4.1.22

Post by kalyani »

Finally i am so happy for the day. Do you wanna tell me your name or no?
User avatar
EverLearning
Forum Contributor
Posts: 282
Joined: Sat Feb 23, 2008 3:49 am
Location: Niš, Serbia

Re: Instalation problem with apache_1.3.41,php-5.2.5,mysql4.1.22

Post by EverLearning »

Code: Select all

short_open_tag = off
is default setting in php5. It means that <? short tags wont be recognized as php tags, and the code wont be parsed. Always use <?php full tags.

Glad I could help :)

P.S. Name is Željko.
kalyani
Forum Newbie
Posts: 18
Joined: Wed Apr 09, 2008 6:57 pm

Re: Instalation problem with apache_1.3.41,php-5.2.5,mysql4.1.22

Post by kalyani »

Sure i will follow the full tags. Thanks again Željko. Have a nice evening. Hope to meet you soon with another question :wink:

Cheers,
Kalyani
User avatar
EverLearning
Forum Contributor
Posts: 282
Joined: Sat Feb 23, 2008 3:49 am
Location: Niš, Serbia

Re: Instalation problem with apache_1.3.41,php-5.2.5,mysql4.1.22

Post by EverLearning »

By the way, did we solve Fatal error: Call to undefined function mysql_connect() ?
Post Reply