Hello any1 Strange, i have a apache web 2.0.63 and php5 on a 6.4-STABLE, but every time i reboot the server, the php pages does not work at all, especially some self tools made with sh scripts and sudo (tail cat and some php buttons), refresh of the page does not solve the matter.. For fix it, i need to make a simple apachectl stop and start, then the php pages start to works... the logs did tell anything... any ideas? appreciate your help TIA
> Strange, i have a apache web 2.0.63 and php5 on a 6.4-STABLE, but every time > i reboot the server, the php pages does not work at all, especially some > self tools made with sh scripts and sudo (tail cat and some php buttons), > refresh of the page does not solve the matter.. > > For fix it, i need to make a simple apachectl stop and start, then the php > pages start to works... > > the logs did tell anything... > > any ideas?Could be an apache module which is not started if the hostname is required but not yet known, since ethernet is not up and the server can't perform a dns-query. You can try to add the hostname to /etc/hosts. -- regards Claus When lenity and cruelty play for a kingdom, the gentler gamester is the soonest winner. Shakespeare
On Sat, Apr 11, 2009 at 06:37:48PM +0200, xer wrote:> For fix it, i need to make a simple apachectl stop and start, then the php > pages start to works... > > any ideas?When you use apachectl start apache inherits the environment of the user from apachectl, especially PATH. PATH is different for /root and boot. Create a simple php with "<?php phpinfo(); ?>" in it and compare the Values for PATH a) after boot b) after restart by apachectl HTH Raphael -- Raphael Becker <rabe@uugrn.org> http://rabe.uugrn.org/ GnuPG: E7B2 1D66 3AF2 EDC7 9828 6D7A 9CDA 3E7B 10CA 9F2D .........|.........|.........|.........|.........|.........|.........|.. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 187 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20090412/6db1faf8/attachment.pgp
xer wrote:> Hello any1 > Strange, i have a apache web 2.0.63 and php5 on a 6.4-STABLE, but every > time i reboot the server, the php pages does not work at all, especially > some self tools made with sh scripts and sudo (tail cat and some php > buttons), refresh of the page does not solve the matter.. > > For fix it, i need to make a simple apachectl stop and start, then the > php pages start to works... > > the logs did tell anything... > > any ideas? > > appreciate your help > TIAI'd guess something like /usr/local/(s)bin not being in the process path when the machine boots, but when you restart it by hand it picks up the path you have in your shell. I've been burned by this a fair number of times, wish there was some good way of having things starting from /usr/local/etc/rc.d to have /usr/local/bin and sbin in the path on a consistent basis. Barry
Thank you a lot Raphael, you were right! The PATH enviroment are (poor) after a reboot and fixed after apachectl stop and start. How you suggest me to fix it? There is a better way before i will do something wrong? Thanx in advance -------------------------------------------------- From: "Raphael Becker" <rabe@uugrn.org> Sent: Sunday, April 12, 2009 6:09 PM Subject: Re: apache 2.0.63 and php5 When you use apachectl start apache inherits the environment of the user from apachectl, especially PATH. PATH is different for /root and boot. Create a simple php with "<?php phpinfo(); ?>" in it and compare the Values for PATH a) after boot b) after restart by apachectl