[ale] quickstart php4?

Jonathan Glass jonathan.glass at ibb.gatech.edu
Fri Oct 25 11:39:22 EDT 2002


You need to edit your web server config (assuming redhat & apache, then
/etc/httpd/conf/httpd.conf) and check for these settings. Probably the last one
is commented out.  remove the comments, run  apachectl configtest, and reload
your httpd processes.

HTH
Jonathan


<IfDefine HAVE_PHP>
LoadModule php_module         modules/mod_php.so
</IfDefine>
<IfDefine HAVE_PHP3>
LoadModule php3_module        modules/libphp3.so
</IfDefine>
<IfDefine HAVE_PHP4>
LoadModule php4_module        modules/libphp4.so
</IfDefine>
<IfDefine HAVE_PHP>
AddModule mod_php.c
</IfDefine>
<IfDefine HAVE_PHP3>
AddModule mod_php3.c
</IfDefine>
<IfDefine HAVE_PHP4>
AddModule mod_php4.c
</IfDefine>
 # And for PHP 4.x, use:
    #
    <IfModule mod_php4.c>
        AddType application/x-httpd-php .php .php4 .php3 .phtml
        AddType application/x-httpd-php-source .phps
    </IfModule>



Quoting "Robert L. Harris" <Robert.L.Harris at rdlg.net>:

> 
> 
> A friend sent me a php script I want to check out.  I installed php4,
> php4-cgi and put the script in /var/www/test.
> 
> I know the guy isn't sending me a reason to kill him and it's
> something
> that may become permanent but right now is just interesting.
> 
> When I go to site.com:/var/www/test/script.php it offers to download
> the
> script.  I've put that path in a few places and nothing has changed.
> Even restarted apache.  
> 
> I'm going out of town in 2 hrs so don't have time to dedicate right
> now.
> Any quick thoughts off the top of your heads to get this working real
> quick?  I'll be looking at the documentation more next week when I get
> back.
> 
> 
> :wq!
> ---------------------------------------------------------------------------
> Robert L. Harris                
>                                
> DISCLAIMER:
>       These are MY OPINIONS ALONE.  I speak for no-one else.
> FYI:
>  perl -e 'print
> $i=pack(c5,(41*2),sqrt(7056),(unpack(c,H)-2),oct(115),10);'
> 
> 
> ---
> This message has been sent through the ALE general discussion list.
> See http://www.ale.org/mailing-lists.shtml for more info. Problems
> should be 
> sent to listmaster at ale dot org.
> 



Jonathan Glass
Systems Support Specialist II
IBB/BME
V: 404-385-0127
F: 404-892-2291

---
This message has been sent through the ALE general discussion list.
See http://www.ale.org/mailing-lists.shtml for more info. Problems should be 
sent to listmaster at ale dot org.






More information about the Ale mailing list