Wednesday, April 26, 2006

Installing PHP5 with Apache2

If, like me, you installed php5 from apt and couldn't get it to work with apache, here's what you might be missing..

1. Enable the PHP5 module from YaST's HTTP Server component.
2. Restart Apache:
# /etc/init.d/apache2 stop
# /etc/init.d/apache2 start


Test it by copying the following script to "/srv/www/htdocs/"
<?php
phpinfo();
?>

Name it "info.php" and run it from your browser..

JpGraph - Installing PHP5 on SuSE 9.2

No comments: