Changes between Version 4 and Version 5 of howto/PHP
- Timestamp:
- Jan 4, 2015, 5:55:38 AM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
howto/PHP
v4 v5 47 47 48 48 = 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 49 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. 50 Typically, 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. 50 51 52 == Verify your config file again! == 53 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" 54 All files in that directory should be "-rw-r--r--" 55 56 {{{ 57 $ /opt/local/apache2/bin/apachectl -t 58 }}} 59 This 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"'' 61 After correcting any config errors and saving the updated config file, simply run: 62 {{{ 63 $ sudo port unload apache2 64 }}} 65 66 to stop apache (even though it is not running) and then start it using 67 68 {{{ 69 $ sudo port load apache2 70 }}} 71 72 to start it again. 73 74 If 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: 51 75 {{{ 52 76 <IfModule mime_module> 53 77 }}} 54 78 55 And then add before the end79 And then add the following two lines before the end of that block. 56 80 57 81 {{{