Page 3 of 4

Posted: Mon Nov 20, 2006 5:30 pm
by ivj
Oh lol I see, so parse_ini_file has no problems parsing that file, however php itself isn't parsing it... Then what the hell is it parsing? There are no logs in the apache error log.... wtf?

Posted: Mon Nov 20, 2006 5:31 pm
by volka
The question still remains: Did you restart the apache service?
If php is installed as apache module changes on php.ini have no effect until httpd is re-started.

Posted: Mon Nov 20, 2006 5:33 pm
by ivj
Yes I did. /etc/init.d/httpd restart.

Posted: Mon Nov 20, 2006 5:37 pm
by volka
please stop the http daemon, check that there's no httpd running (http://thailandhaven.com/test.php should be unavailable then) and then start the httpd again.

Posted: Mon Nov 20, 2006 5:40 pm
by ivj
Checked. Stopped it, page was unavailable, restarted it. Damn apache restarts fast compared to Tomcat and Resin. Still same old crap.

Posted: Mon Nov 20, 2006 5:42 pm
by volka
Then I'm clueless. Sorry.

Posted: Mon Nov 20, 2006 5:48 pm
by ivj
Come on man you're an extreme guru, you gotta think of something. I consider myself an extreme guru in tomcat, and there's no way in hell that thing will be running without me specifying a conf file.

Posted: Mon Nov 20, 2006 5:48 pm
by RobertGonzalez
ivj wrote:[Date]
date.timezone = "America/Vancouver"


However, when I check the timezone, I get America_NewYork: http://thailandhaven.com/test.php

The code is:

Code: Select all

echo "<br>Timezone (set as "America/Vancouver" in php.ini: <b>".date("e")."</b><br>";
Any idea?
Have you tried date_defaul_timezone_set()?

Posted: Mon Nov 20, 2006 5:50 pm
by volka
ivj wrote:Come on man you're an extreme guru, you gotta think of something. I consider myself an extreme guru in tomcat, and there's no way in hell that thing will be running without me specifying a conf file.
I'd trash the installation and start from scratch before wasting too much time with searching a spook. But most people don't like that, so I didn't suggest it ;)

Posted: Mon Nov 20, 2006 5:52 pm
by ivj
What do you mean by trashing the installation? What I have here is a bran new installation. What do you suggest I do?

"Have you tried date_defaul_timezone_set()?"

No but thanks for the tip. PHPMailer is not my priority right now. Right now I'm trying to figure out why the hell my php.ini isn't being read.

Posted: Mon Nov 20, 2006 5:57 pm
by feyd
What lines did you add or change in the httpd.conf file?

Posted: Mon Nov 20, 2006 6:01 pm
by ivj
All I added was LoadModule php5_module modules/libphp5.so

Posted: Mon Nov 20, 2006 6:03 pm
by volka
ivj wrote:What do you mean by trashing the installation? What I have here is a bran new installation. What do you suggest I do?
A brand new system... i.e. nothing of notable value installed/configured? I would format the partitions, get me a current version of fedora core (FC6) and setup the server anew. But that's just me ;)

Posted: Mon Nov 20, 2006 6:04 pm
by ivj
Um yeah that's not gonna happen on a production mail server :)

Posted: Mon Nov 20, 2006 6:06 pm
by RobertGonzalez
There is some interesting information in the manual for get_cfg_var().