Hi guys, I need some help installing php as cgi in apache. I have no idea what to put in httpd.conf, I threw in a
AddType application/x-httpd-php .php
[And that's it :-\ ]
I'm running apache 1.3.37 and php 4.4.4 here's my builds:
./configure \
--prefix=/www \
--enable-module=so \
--enable-module=rewrite \
--enable-shared=rewrite \
--enable-module=setenvif \
--enable-shared=setenvif \
--enable-module=mime \
--enable-shared=mime \
--enable-module=mime_magic \
--enable-shared=mime_magic \
--enable-module=speling \
--enable-shared=speling \
--enable-module=dir \
--enable-shared=dir \
--enable-module=auth \
--enable-shared=auth \
--enable-module=access \
--enable-shared=access \
--enable-module=alias \
--enable-shared=alias \
--enable-module=status \
--enable-shared=status \
--enable-module=userdir \
--enable-shared=userdir \
--enable-module=vhost_alias \
--enable-shared=vhost_alias \
--enable-module=env \
--enable-shared=env \
--enable-module=log_referer \
--enable-shared=log_referer \
--enable-module=log_config \
--enable-shared=log_config \
--enable-module=log_agent \
--enable-shared=log_agent \
--enable-module=headers \
--enable-shared=headers
and I'm just doing a simple build for php:
compile
make
make install
When run a php script thru localhost/index.php it opens up the script as a download....any ideas, guys? Thanks!