[PLUG] http & php -- AAARRGGHH!

Bruce Kingsland brucek at kingkon.com
Sun Mar 24 10:17:05 UTC 2002


Howdy,

According to the installed docs for apache, there is a way to turn on
PHP, PYTHON, PERL, etc. But I can't seem to get it to work.

Inside the /etc/httpd/conf/httpd.conf file, there are a number of
"IfDefine HAVE_PHP" type directives, and there are instructions on how
to invoke them using "httpd -D HAVE_PHP", but whenever I attempt that,
I get a usage list like "{start|stop|restart|...} that doesn't include
the -D usage. However, if you run "httpd --help" you _do_ get a usage
instruction that includes the -D option.

Then, some unexpected flash of brilliance reminded me that the file
should not be called 'index.html'; it should be called 'index.php4'.
Making this change caused the php code I placed on that page to start
working.

One would think *that* bit of info would be mentioned in the "how to
test your installation" document that I was reading when I got into
this very long configuration debugging session to begin with!

-bk
-- 
Bruce Kingsland
Kingsland Konsulting
brucek at kingkon.com
503-936-1655
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
D/2B8DA3D7 g/2884A18E  49C3 BBDE 6BC5 3F39 0C03  3BE4 FBC5 2C8D 2B8D A3D7
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
URL: <http://lists.pdxlinux.org/pipermail/plug/attachments/20020324/81edec30/attachment.asc>


More information about the PLUG mailing list