Page 2 of 3
Re: Instalation problem with apache_1.3.41,php-5.2.5,mysql4.1.22
Posted: Thu Apr 10, 2008 4:09 pm
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"?
Re: Instalation problem with apache_1.3.41,php-5.2.5,mysql4.1.22
Posted: Thu Apr 10, 2008 4:24 pm
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
Re: Instalation problem with apache_1.3.41,php-5.2.5,mysql4.1.22
Posted: Thu Apr 10, 2008 4:53 pm
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.
Re: Instalation problem with apache_1.3.41,php-5.2.5,mysql4.1.22
Posted: Thu Apr 10, 2008 5:20 pm
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
Re: Instalation problem with apache_1.3.41,php-5.2.5,mysql4.1.22
Posted: Thu Apr 10, 2008 5:45 pm
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.
Re: Instalation problem with apache_1.3.41,php-5.2.5,mysql4.1.22
Posted: Thu Apr 10, 2008 5:54 pm
by kalyani
Attached is the php.ini file
Re: Instalation problem with apache_1.3.41,php-5.2.5,mysql4.1.22
Posted: Thu Apr 10, 2008 6:14 pm
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.
Re: Instalation problem with apache_1.3.41,php-5.2.5,mysql4.1.22
Posted: Thu Apr 10, 2008 6:37 pm
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,
Re: Instalation problem with apache_1.3.41,php-5.2.5,mysql4.1.22
Posted: Thu Apr 10, 2008 6:43 pm
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?
Re: Instalation problem with apache_1.3.41,php-5.2.5,mysql4.1.22
Posted: Thu Apr 10, 2008 6:52 pm
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
Re: Instalation problem with apache_1.3.41,php-5.2.5,mysql4.1.22
Posted: Thu Apr 10, 2008 6:55 pm
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
Re: Instalation problem with apache_1.3.41,php-5.2.5,mysql4.1.22
Posted: Thu Apr 10, 2008 7:02 pm
by kalyani
Finally i am so happy for the day. Do you wanna tell me your name or no?
Re: Instalation problem with apache_1.3.41,php-5.2.5,mysql4.1.22
Posted: Thu Apr 10, 2008 7:07 pm
by EverLearning
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.
Re: Instalation problem with apache_1.3.41,php-5.2.5,mysql4.1.22
Posted: Thu Apr 10, 2008 7:12 pm
by kalyani
Sure i will follow the full tags. Thanks again Željko. Have a nice evening. Hope to meet you soon with another question
Cheers,
Kalyani
Re: Instalation problem with apache_1.3.41,php-5.2.5,mysql4.1.22
Posted: Fri Apr 11, 2008 3:07 am
by EverLearning
By the way, did we solve Fatal error: Call to undefined function mysql_connect() ?