Changes between Version 64 and Version 65 of howto/MAMP
- Timestamp:
- Apr 22, 2013, 5:03:39 AM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
howto/MAMP
v64 v65 312 312 }}} 313 313 314 As of the php54 port, the configuration file has been renamed to mod_php54.conf and so the command should be 315 316 {{{ 317 # 318 # Include PHP configurations 319 # 320 Include conf/extra/mod_php54.conf 321 }}} 322 314 323 You may also need to load the PHP module '''before''' including `mod_php.conf` as described above: 315 324 … … 318 327 LoadModule php5_module modules/libphp5.so 319 328 }}} 329 330 Or if you are using the php54 port 331 332 {{{ 333 # Load the PHP module 334 LoadModule php5_module modules/mod_php54.so 335 }}} 336 337 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. 320 338 321 339 Set up your PHP configuration files … … 372 390 373 391 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`"). 392 393 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 394 395 {{{ 396 <IfModule mime_module> 397 }}} 398 399 And then add before the end 400 401 {{{ 402 AddType application/x-httpd-php .php 403 AddType application/x-httpd-php-source .phps 404 }}} 405 406 Then restart the server. 374 407 375 408 As a last check, reboot and verify that everything has autostarted and is running (i.e., repeat the above tests).