Date: Wed, 03 Oct 2001 15:52:30 +930 (CST) From: James Mclean <james@adam.com.au> To: Jarrod Sayers <Jarrod.Sayers@unisa.edu.au> Cc: buga@lemis.com, freebsd-questions@freebsd.org Subject: RE: Apache 1.3 and mod_php4 Message-ID: <1002090150.3bbaaea633f3f@thunder.adam.com.au> In-Reply-To: <E1962E8F1DF0D411878300A0C9ACB0F9022AB8C3@exstaff4.magill.unisa.edu.au> References: <E1962E8F1DF0D411878300A0C9ACB0F9022AB8C3@exstaff4.magill.unisa.edu.au>
next in thread | previous in thread | raw e-mail | index | archive | help
Jarrod, > If mod_php4 has been installed from the ports tree then it should be in > the > correct place, aswell as apache13. If its working it should do the > following: > > When you can access the machine, make sure these 4 lines are present and > not > commented out. > LoadModule php4_module libexec/apache/libphp4.so > AddModule mod_php4.c libphp4.so does not appear in the libexec/apache/ directory, and the above are not present or commented out. I did witness when it was installing, that it did mod the file httpd.conf, could it have been replaced with the originals or moved? A simple grep will tell... > AddType application/x-httpd-php .php > AddType application/x-httpd-php-source .phps > > A quick test on a basic install would be to make a file called test.php > and > inside it have one line: > <? phpinfo(); ?> yer done it, just throws back the text - obviously not parsing it into php.. > > If it generates a huge file with colours and numbers, then its worked, > if not, > it could be that PHP is not turned on. In your php.ini file, check to > make > sure that 'engine = On', and that in your httpd.conf file, you don't > have a > 'php_flag engine off' where you shouldn't. OK - will check these out. > > Failing all that, I can only suggest a checking of the ErrorLog to see > if there > are any problems in that. > > Ahh, one last idea that happened to me, the modules are relative to the > ServerRoot so if thats been changed then the paths to the modules need > to be > aswell, default is /usr/local > > Hope it helps! Thanks mate. James Mclean To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1002090150.3bbaaea633f3f>