[MacPorts] howto/MAMP modified

MacPorts noreply at macports.org
Sun Apr 21 22:03:40 PDT 2013


Page "howto/MAMP" was changed by unknown_stranger2 at freemail.ms
Diff URL: <https://trac.macports.org/wiki/howto/MAMP?action=diff&version=65>
Revision 65
Comment: AddType needs to be manually added for PHP5.4, also some information missed the conf file name for PHP54 (was only using the name for php5 port)
Changes:
-------8<------8<------8<------8<------8<------8<------8<------8<--------
Index: howto/MAMP
=========================================================================
--- howto/MAMP (version: 64)
+++ howto/MAMP (version: 65)
@@ -311,12 +311,30 @@
 Include conf/extra/mod_php.conf
 }}}
 
+As of the php54 port, the configuration file has been renamed to mod_php54.conf and so the command should be
+
+{{{
+# 
+# Include PHP configurations
+#
+Include conf/extra/mod_php54.conf
+}}}
+
 You may also need to load the PHP module '''before''' including `mod_php.conf` as described above:
 
 {{{
 # Load the PHP module
 LoadModule php5_module modules/libphp5.so
 }}}
+
+Or if you are using the php54 port
+
+{{{
+# Load the PHP module
+LoadModule php5_module modules/mod_php54.so
+}}}
+
+Notice either of the above commands are only required if not present in the httpd.conf file, as the apxs command (executed above) will write those for you.
 
 Set up your PHP configuration files
 
@@ -371,6 +389,21 @@
 }}}
 
 and place it in your Apache "`DocumentRoot`" directory (should be "`/opt/local/apache2/htdocs`") 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 if applicable) and verify that the correct version of PHP is active (v5.3.0 as of this writing) and that MySQL support is active (you may want to search the page for "`mysql`").
+
+If by some reason the server still doesn't interpret PHP files (your web client tries to download them) it means the PHP configurations, as described above, are not taking effect and in that case you should open the https.conf file once again and search for the block
+
+{{{
+<IfModule mime_module>
+}}}
+
+And then add before the end
+
+{{{
+AddType application/x-httpd-php .php
+AddType application/x-httpd-php-source .phps
+}}}
+
+Then restart the server.
 
 As a last check, reboot and verify that everything has autostarted and is running (i.e., repeat the above tests).
 
-------8<------8<------8<------8<------8<------8<------8<------8<--------

--
Page URL: <https://trac.macports.org/wiki/howto/MAMP>
MacPorts <http://www.macports.org/>
Ports system for OS X

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 .


More information about the macports-changes mailing list