Changes between Version 93 and Version 94 of howto/MAMP
- Timestamp:
- Oct 21, 2017, 10:02:54 PM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
howto/MAMP
v93 v94 5 5 These installation instructions are written for the following versions: 6 6 7 * Apache 2. 2.* - See: [[howto/Apache2]] for instructions on installation of Apache27 * Apache 2.4.* - See: [[howto/Apache2]] for instructions on installation of Apache2 8 8 * MySQL 5.7.* - See: [[howto/MySQL]] for instructions on installation of MySQL 9 9 * PHP 5.6.* - See: [[howto/PHP]] for instructions on installation of PHP … … 26 26 27 27 {{{ 28 $ cd /opt/local/ apache2/modules29 $ sudo /opt/local/ apache2/bin/apxs -a -e -n php5 mod_php56.so28 $ cd /opt/local/lib/apache2/modules 29 $ sudo /opt/local/bin/apxs -a -e -n php5 mod_php56.so 30 30 $ # or, if you're using php7... 31 $ sudo /opt/local/ apache2/bin/apxs -a -e -n php7 mod_php71.so31 $ sudo /opt/local/bin/apxs -a -e -n php7 mod_php71.so 32 32 }}} 33 33 This should return the message: 34 ''[activating module `php5' in /opt/local/ apache2/conf/httpd.conf]''34 ''[activating module `php5' in /opt/local/etc/apache2/httpd.conf]'' 35 35 36 36 37 Update Apache’s `httpd.conf` - ''/opt/local/ apache2/conf/httpd.conf'' - file to enhance the "DirectoryIndex" directive to include additional "index" files. Search for:37 Update Apache’s `httpd.conf` - ''/opt/local/etc/apache2/httpd.conf'' - file to enhance the "DirectoryIndex" directive to include additional "index" files. Search for: 38 38 39 39 {{{ … … 51 51 {{{ 52 52 # Include PHP configurations 53 Include conf/extra/mod_php56.conf53 Include etc/apache2/extra/mod_php56.conf 54 54 # Or... 55 Include conf/extra/mod_php71.conf55 Include etc/apache2/extra/mod_php71.conf 56 56 }}} 57 57 … … 105 105 phpinfo(); 106 106 }}} 107 and place it in your Apache "`DocumentRoot`" directory (nominally: "`/opt/local/ apache2/htdocs`") or your own user "`Sites`" directory if you activated user directories as specified above.107 and place it in your Apache "`DocumentRoot`" directory (nominally: "`/opt/local/www/apache2/html`") or your own user "`Sites`" directory if you activated user directories as specified above. 108 108 Point your browser to `http://localhost/phpinfo.php` (or `http://localhost/~username/phpinfo.php` as applicable) and verify that the correct version of PHP is active (v5.6.4 as of this writing) and that MySQL support is active (you may want to search the page for "`mysql`"). \\ 109 109 Note that this file needs to be readable and executable.