[MacPorts] howto/MAMP modified
MacPorts
noreply at macports.org
Sat Oct 21 22:02:54 UTC 2017
Page "howto/MAMP" was changed by Schamschula
Diff URL: <https://trac.macports.org/wiki/howto/MAMP?action=diff&version=94>
Revision 94
Comment: Updated for apache2 2.4.x
Changes:
-------8<------8<------8<------8<------8<------8<------8<------8<--------
Index: howto/MAMP
=========================================================================
--- howto/MAMP (version: 93)
+++ howto/MAMP (version: 94)
@@ -4,7 +4,7 @@
These installation instructions are written for the following versions:
- * Apache 2.2.* - See: [[howto/Apache2]] for instructions on installation of Apache2
+ * Apache 2.4.* - See: [[howto/Apache2]] for instructions on installation of Apache2
* MySQL 5.7.* - See: [[howto/MySQL]] for instructions on installation of MySQL
* PHP 5.6.* - See: [[howto/PHP]] for instructions on installation of PHP
@@ -25,16 +25,16 @@
Register PHP with Apache
{{{
-$ cd /opt/local/apache2/modules
-$ sudo /opt/local/apache2/bin/apxs -a -e -n php5 mod_php56.so
+$ cd /opt/local/lib/apache2/modules
+$ sudo /opt/local/bin/apxs -a -e -n php5 mod_php56.so
$ # or, if you're using php7...
-$ sudo /opt/local/apache2/bin/apxs -a -e -n php7 mod_php71.so
+$ sudo /opt/local/bin/apxs -a -e -n php7 mod_php71.so
}}}
This should return the message:
- ''[activating module `php5' in /opt/local/apache2/conf/httpd.conf]''
+ ''[activating module `php5' in /opt/local/etc/apache2/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:
+Update Apache’s `httpd.conf` - ''/opt/local/etc/apache2/httpd.conf'' - file to enhance the "DirectoryIndex" directive to include additional "index" files. Search for:
{{{
DirectoryIndex index.html
@@ -50,9 +50,9 @@
{{{
# Include PHP configurations
-Include conf/extra/mod_php56.conf
+Include etc/apache2/extra/mod_php56.conf
# Or...
-Include conf/extra/mod_php71.conf
+Include etc/apache2/extra/mod_php71.conf
}}}
Verify that in the Dynamic Shared Object (DSO) Support section the following have been added.
@@ -104,7 +104,7 @@
<?php
phpinfo();
}}}
-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.
+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.
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`"). \\
Note that this file needs to be readable and executable.
-------8<------8<------8<------8<------8<------8<------8<------8<--------
--
Page URL: <https://trac.macports.org/wiki/howto/MAMP>
MacPorts <https://www.macports.org/>
Ports system for macOS
This is an automated message. Someone added your email address to be
notified of changes on 'howto/MAMP' page.
If it was not you, please report to admin at macports.org.
More information about the macports-changes
mailing list