Changes between Version 93 and Version 94 of howto/MAMP


Ignore:
Timestamp:
Oct 21, 2017, 10:02:54 PM (6 years ago)
Author:
Schamschula (Marius Schamschula)
Comment:

Updated for apache2 2.4.x

Legend:

Unmodified
Added
Removed
Modified
  • howto/MAMP

    v93 v94  
    55These installation instructions are written for the following versions:
    66
    7  * Apache 2.2.* - See: [[howto/Apache2]] for instructions on installation of Apache2
     7 * Apache 2.4.* - See: [[howto/Apache2]] for instructions on installation of Apache2
    88 * MySQL 5.7.* - See: [[howto/MySQL]] for instructions on installation of MySQL
    99 * PHP 5.6.* - See: [[howto/PHP]] for instructions on installation of PHP
     
    2626
    2727{{{
    28 $ cd /opt/local/apache2/modules
    29 $ sudo /opt/local/apache2/bin/apxs -a -e -n php5 mod_php56.so
     28$ cd /opt/local/lib/apache2/modules
     29$ sudo /opt/local/bin/apxs -a -e -n php5 mod_php56.so
    3030$ # or, if you're using php7...
    31 $ sudo /opt/local/apache2/bin/apxs -a -e -n php7 mod_php71.so
     31$ sudo /opt/local/bin/apxs -a -e -n php7 mod_php71.so
    3232}}}
    3333This 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]''
    3535
    3636
    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:
     37Update Apache’s `httpd.conf` - ''/opt/local/etc/apache2/httpd.conf'' - file to enhance the "DirectoryIndex" directive to include additional "index" files. Search for:
    3838
    3939{{{
     
    5151{{{
    5252# Include PHP configurations
    53 Include conf/extra/mod_php56.conf
     53Include etc/apache2/extra/mod_php56.conf
    5454# Or...
    55 Include conf/extra/mod_php71.conf
     55Include etc/apache2/extra/mod_php71.conf
    5656}}}
    5757
     
    105105phpinfo();
    106106}}}
    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.
     107and 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.
    108108Point 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`"). \\
    109109Note that this file needs to be readable and executable.