Changes between Version 71 and Version 72 of howto/MAMP


Ignore:
Timestamp:
Nov 10, 2014, 5:22:51 PM (9 years ago)
Author:
nerdling (Jeremy Lavergne)
Comment:

replace php5 (obsolete) with php54

Legend:

Unmodified
Added
Removed
Modified
  • howto/MAMP

    v71 v72  
    1212 * Apache 2.2.*
    1313 * MySQL 5.1.*
    14  * PHP 5.3.*
     14 * PHP 5.4.*
    1515
    1616== Installation ==
     
    286286
    287287{{{
    288 sudo port install php5 +apache2
    289 sudo port install php5-mysql
    290 }}}
    291 
    292 As 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:
    293 {{{
    294288sudo port install php54-apache2handler
    295289sudo port install php54-mysql
     
    297291
    298292
    299   '''''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.
     293  '''''Note:''''' the php54 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 php54-mysql port). Use `port search php54` to see all the ports that are available.
    300294
    301295Register PHP with Apache
    302296
    303 {{{
    304 cd /opt/local/apache2/modules
    305 sudo /opt/local/apache2/bin/apxs -a -e -n "php5" libphp5.so
    306 }}}
    307 
    308 As of the php54 port, the module has been renamed to mod_php54.so and so the command should be
    309297{{{
    310298cd /opt/local/apache2/modules
     
    326314
    327315Also, at the end of the `httpd.conf` file, add the following lines so that Apache includes the mod_php "AddType" configurations
    328 
    329 {{{
    330 #
    331 # Include PHP configurations
    332 #
    333 Include conf/extra/mod_php.conf
    334 }}}
    335 
    336 As of the php54 port, the configuration file has been renamed to mod_php54.conf and so the command should be
    337316
    338317{{{
     
    344323
    345324You may also need to load the PHP module '''before''' including `mod_php.conf` as described above:
    346 
    347 {{{
    348 # Load the PHP module
    349 LoadModule php5_module modules/libphp5.so
    350 }}}
    351 
    352 Or if you are using the php54 port
    353325
    354326{{{