Changes between Version 20 and Version 21 of howto/PHP


Ignore:
Timestamp:
Oct 21, 2017, 10:07:14 PM (7 years ago)
Author:
Schamschula (Marius Schamschula)
Comment:

Updated for apache2 2.4.x

Legend:

Unmodified
Added
Removed
Modified
  • howto/PHP

    v20 v21  
    8080= Trouble shoot =
    8181If 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.
    82 Typically,  the file ''"Include conf/extra/mod_php70.conf"'' - is not being processed; the file is missing; or the contents incorrect. That file contains the two "AddType" lines below.
     82Typically,  the file ''"Include etc/apache2/extra/mod_php70.conf"'' - is not being processed; the file is missing; or the contents incorrect. That file contains the two "AddType" lines below.
    8383
    8484==  Verify your config file again! ==
    85 Verify 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"
     85Verify any changes you have made to the config file: /opt/local/etc/apache2/httpd.conf - The most common problem is that the files in the "extra" directory are not "readable"
    8686All files in that directory should be "-rw-r--r--"
    8787
    8888{{{
    89 $ /opt/local/apache2/bin/apachectl -t
     89$ /opt/local/sbin/apachectl -t
    9090}}}
    9191This will return either "Syntax OK" or a specific line by line error listing.
    92  The typical error message:  ''"Could not open configuration file /opt/local/apache2/conf/extra/httpd-mod_php70.conf: Permission denied"''
     92 The typical error message:  ''"Could not open configuration file /opt/local/etc/apache2/extra/httpd-mod_php70.conf: Permission denied"''
    9393After correcting any config errors and saving the updated config file, simply run:
    9494{{{