Changes between Version 64 and Version 65 of howto/MAMP


Ignore:
Timestamp:
Apr 22, 2013, 5:03:39 AM (11 years ago)
Author:
unknown_stranger2@…
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)

Legend:

Unmodified
Added
Removed
Modified
  • howto/MAMP

    v64 v65  
    312312}}}
    313313
     314As 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#
     320Include conf/extra/mod_php54.conf
     321}}}
     322
    314323You may also need to load the PHP module '''before''' including `mod_php.conf` as described above:
    315324
     
    318327LoadModule php5_module modules/libphp5.so
    319328}}}
     329
     330Or if you are using the php54 port
     331
     332{{{
     333# Load the PHP module
     334LoadModule php5_module modules/mod_php54.so
     335}}}
     336
     337Notice 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.
    320338
    321339Set up your PHP configuration files
     
    372390
    373391and 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
     393If 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
     399And then add before the end
     400
     401{{{
     402AddType application/x-httpd-php .php
     403AddType application/x-httpd-php-source .phps
     404}}}
     405
     406Then restart the server.
    374407
    375408As a last check, reboot and verify that everything has autostarted and is running (i.e., repeat the above tests).