Changes between Version 71 and Version 72 of howto/MAMP
- Timestamp:
- Nov 10, 2014, 5:22:51 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
howto/MAMP
v71 v72 12 12 * Apache 2.2.* 13 13 * MySQL 5.1.* 14 * PHP 5. 3.*14 * PHP 5.4.* 15 15 16 16 == Installation == … … 286 286 287 287 {{{ 288 sudo port install php5 +apache2289 sudo port install php5-mysql290 }}}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 {{{294 288 sudo port install php54-apache2handler 295 289 sudo port install php54-mysql … … 297 291 298 292 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. 300 294 301 295 Register PHP with Apache 302 296 303 {{{304 cd /opt/local/apache2/modules305 sudo /opt/local/apache2/bin/apxs -a -e -n "php5" libphp5.so306 }}}307 308 As of the php54 port, the module has been renamed to mod_php54.so and so the command should be309 297 {{{ 310 298 cd /opt/local/apache2/modules … … 326 314 327 315 Also, 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 configurations332 #333 Include conf/extra/mod_php.conf334 }}}335 336 As of the php54 port, the configuration file has been renamed to mod_php54.conf and so the command should be337 316 338 317 {{{ … … 344 323 345 324 You may also need to load the PHP module '''before''' including `mod_php.conf` as described above: 346 347 {{{348 # Load the PHP module349 LoadModule php5_module modules/libphp5.so350 }}}351 352 Or if you are using the php54 port353 325 354 326 {{{