EnderUNIX Team.


EnderUNIX tips

Mail to My Friend , Home Page

[ FreeBSD ]

"Installation and run Apache2 with mod_php4 on FreeBSD" - Ülkü SAYILAN - (2004-01-03 09:02:39)   [7170]

Installation and run Apache2 with mod_php4 on FreeBSD


1) Change directories to /usr/ports/www/mod_php4 .
2) Type this: make -DWITH_APACHE2 install .
3) After your mod_php4 is installed, it should have installed Apache2 also. Change directories to /usr/ports/lang/php4 and type: make install .
4) You'll need to comment some things in the httpd.conf file in order for it to run properly.
#LoadModule file_cache_module libexec/apache2/mod_file_cache.so
#LoadModule cache_module libexec/apache2/mod_cache.so
#LoadModule disk_cache_module libexec/apache2/mod_disk_cache.so
After you comment those lines, look at another section in the /usr/local/etc/apache2/httpd.conf file....
5) DirectoryIndex index.php in that line.
6) Ensure that these lines are also in your httpd.conf file:
LoadModule php4_module libexec/apache2/libphp4.so
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
Then save your file.
7) This step is important: cd to /usr/local/www/data and rename the index.html.var to something like index.html.var.back .
8) Then start the apache2 daemon by calling this command:
/usr/local/apache2/bin/apachectl start
That should be all for the initial setup to make it so your index.php file can load.


(from ugu.org)


Mail to My Friend , Home Page