Skip to navigation
How to install apache2 with mac port
14.01.15
php5 should be installed already Register PHP with Apache $ cd /opt/local/apache2/modules $ sudo /opt/local/apache2/bin/apxs -a -e -n "php5" mod_php56.so This should return the message: [activating module `php5' in /opt/local/apache2/conf/httpd.conf] Update Apache’s httpd.conf - /opt/local/apache2/conf/httpd.conf - file to enhance the "DirectoryIndex" directive to include additional "index" files. Search for: DirectoryIndex index.html and change it this way: DirectoryIndex index.php index.html Verify that at the end of the httpd.conf file the following lines exist so that Apache includes the mod_php "AddType" configurations # Include PHP configurations Include conf/extra/mod_php56.conf Verify that in the Dynamic Shared Object (DSO) Support section the following have been added. # Load the PHP module LoadModule php5_module modules/mod_php56.so
http://trac.macports.org/wiki/howto/MAMP
Reply
Anonymous
Information Epoch 1732556667
Build a prototype as soon as possible.
Home
Notebook
Contact us