[olug] mod_php? how to debug?
neal rauhauser
neal at lists.rauhauser.net
Mon Sep 1 16:29:38 UTC 2003
This is the tail of /var/log/httpd-errors
[Sun Aug 31 12:37:02 2003] [notice] caught SIGTERM, shutting down
[Sun Aug 31 12:37:05 2003] [notice] Apache/2.0.47 (Unix) PHP/4.3.3RC4
configured -- resuming normal operations
[Sun Aug 31 14:26:39 2003] [notice] caught SIGTERM, shutting down
[Mon Sep 01 10:41:22 2003] [notice] Apache/2.0.47 (Unix) PHP/4.3.3RC4
configured -- resuming normal operations
[Mon Sep 01 10:42:34 2003] [notice] caught SIGTERM, shutting down
[Mon Sep 01 10:43:18 2003] [notice] Apache/2.0.47 (Unix) PHP/4.3.3RC4
configured -- resuming normal operations
grep -i "php" httpd.conf
httpd.conf:LoadModule php4_module libexec/apache2/libphp4.so
httpd.conf:AddType application/x-httpd-php .php
httpd.conf:AddType application/x-httpd-php-source .php
It looks like it ought to do something, but I just discovered the
prohibitions in Apache 2.0.47 errata regarding using PHP.
I want SSL anyway, so may delve into apache-ssl instead of apache2.x
Daniel Pfile wrote:
>
> > I've added mod_php via the usual make; make install on FreeBSD 4.8.
> > The installation automagically added lines to httpd.conf for this
> > module, I had to manually add some application-type entries but they
> > were documented in make install's output, then I restarted apache
> > 2.0.47.
>
> Are you sure it added the lines?
>
> > I created a simple php script named index.php in the web server's
> > root. When I try to load http://127.0.0.1/index.php I get the text of
> > the script, instead of the expected output. Anyone have any suggestions
> > on how to fix this?
> >
> > Here is the script
> >
> > cat index.php
> > <?php echo "Whacked my index.html files!\n" ; ?>
>
> The script makes no difference, if you're getting just text, no amount of
> phpinfo() is going to help you. The problem is in apache's configuration to
> use the module. Could you paste in the lines from your error_log when apache
> starts up? Also, the mime types for php, and any lines in httpd.conf that
> are needed to make php work. Php and apache2 are a bit weird. I still run
> 1.3 in production everywhere, but I do have some pretty tricky setups. (Php
> accelerator, chrooting suexec, and all kinds of other madness not even
> related to php). So maybe I can help, I do need some more info though.
>
> -- Daniel
>
> _______________________________________________
> OLUG mailing list
> OLUG at olug.org
> http://lists.olug.org/mailman/listinfo/olug
--
mailto:neal at lists.rauhauser.net
phone:402-301-9555
"After all that I've been through, you're the only one who matters,
you never left me in the dark here on my own" - Widespread Panic
More information about the OLUG
mailing list