php.ini does not get reloaded when i restart apache. WHY???

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

ivj
Forum Commoner
Posts: 31
Joined: Sat Mar 05, 2005 3:07 am

Post 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?
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post 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.
ivj
Forum Commoner
Posts: 31
Joined: Sat Mar 05, 2005 3:07 am

Post by ivj »

Yes I did. /etc/init.d/httpd restart.
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post 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.
ivj
Forum Commoner
Posts: 31
Joined: Sat Mar 05, 2005 3:07 am

Post by ivj »

Checked. Stopped it, page was unavailable, restarted it. Damn apache restarts fast compared to Tomcat and Resin. Still same old crap.
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

Then I'm clueless. Sorry.
ivj
Forum Commoner
Posts: 31
Joined: Sat Mar 05, 2005 3:07 am

Post 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.
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post 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()?
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post 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 ;)
ivj
Forum Commoner
Posts: 31
Joined: Sat Mar 05, 2005 3:07 am

Post 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.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

What lines did you add or change in the httpd.conf file?
ivj
Forum Commoner
Posts: 31
Joined: Sat Mar 05, 2005 3:07 am

Post by ivj »

All I added was LoadModule php5_module modules/libphp5.so
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post 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 ;)
ivj
Forum Commoner
Posts: 31
Joined: Sat Mar 05, 2005 3:07 am

Post by ivj »

Um yeah that's not gonna happen on a production mail server :)
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

There is some interesting information in the manual for get_cfg_var().
Post Reply