Changes between Version 4 and Version 5 of howto/PHP


Ignore:
Timestamp:
Jan 4, 2015, 5:55:38 AM (10 years ago)
Author:
magill@…
Comment:

updating

Legend:

Unmodified
Added
Removed
Modified
  • howto/PHP

    v4 v5  
    4747
    4848= Trouble shoot =
    49 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 Apache httpd.conf file once again and search for the block
     49If by some reason the server still doesn't interpret PHP files (i.e. your web client tries to download them) it means the PHP configurations, as described at [[howto/MAMP#job1]], are not taking effect.
     50Typically,  the file ''"Include conf/extra/mod_php56.conf"'' is not being processed; the file is missing; or the contents incorrect. That file contains the two "AddType" lines below.
    5051
     52==  Verify your config file again! ==
     53Verify any changes you have made to the config file: /opt/local/apache2/conf/httpd.conf - The most common problem is that the files in the "extra" directory are not "readable"
     54All files in that directory should be "-rw-r--r--"
     55
     56{{{
     57$ /opt/local/apache2/bin/apachectl -t
     58}}}
     59This will return either "Syntax OK" or a specific line by line error listing.
     60 The typical error message:  ''"Could not open configuration file /opt/local/apache2/conf/extra/httpd-mod_php56.conf: Permission denied"''
     61After correcting any config errors and saving the updated config file, simply run:
     62{{{
     63$ sudo port unload apache2
     64}}}
     65
     66to stop apache (even though it is not running) and then start it using
     67
     68{{{
     69$ sudo port load apache2
     70}}}
     71
     72to start it again.
     73
     74If the above fails to cause php files to be interpreted, you can edit the Apache httpd.conf file itself again and search for the block:
    5175{{{
    5276<IfModule mime_module>
    5377}}}
    5478
    55 And then add before the end
     79And then add the following two lines before the end of that block.
    5680
    5781{{{