Changes between Version 20 and Version 21 of howto/PHP
- Timestamp:
- Oct 21, 2017, 10:07:14 PM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
howto/PHP
v20 v21 80 80 = Trouble shoot = 81 81 If 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.82 Typically, 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. 83 83 84 84 == 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"85 Verify 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" 86 86 All files in that directory should be "-rw-r--r--" 87 87 88 88 {{{ 89 $ /opt/local/ apache2/bin/apachectl -t89 $ /opt/local/sbin/apachectl -t 90 90 }}} 91 91 This 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"'' 93 93 After correcting any config errors and saving the updated config file, simply run: 94 94 {{{