Changes between Version 62 and Version 63 of howto/MAMP


Ignore:
Timestamp:
Nov 26, 2012, 7:35:25 AM (11 years ago)
Author:
Danack@…
Comment:

Updated with working PHP install for php54

Legend:

Unmodified
Added
Removed
Modified
  • howto/MAMP

    v62 v63  
    256256}}}
    257257
     258As of the php54 port, installing PHP to work in Apache is a separate port rather than a variant of the php5 port and so should be installed with:
     259{{{
     260sudo port install php54 php54-apache2handler
     261sudo port install php5-mysql
     262}}}
     263
     264
    258265  '''''Note:''''' the php5 port contains the core PHP features, but there are many optional features available in separate ports, some of which you may want to install as well (such as MySQL support via the php5-mysql port). Use `port search php5` to see all the ports that are available.
    259266
     
    264271sudo /opt/local/apache2/bin/apxs -a -e -n "php5" libphp5.so
    265272}}}
     273
     274As of the php54 port, the module has been renamed to mod_php54.so and so the command should be
     275{{{
     276cd /opt/local/apache2/modules
     277sudo /opt/local/apache2/bin/apxs -a -e -n "php5" mod_php54.so
     278}}}
     279
    266280
    267281Update Apache’s `httpd.conf` file to enhance the "DirectoryIndex" directive to include additional "index" files. Search for: