Line 1: |
Line 1: |
| + | PHP Modifications |
| + | |
| ===Display Error Messages=== | | ===Display Error Messages=== |
| | | |
Line 12: |
Line 14: |
| | | |
| mkdir -p /etc/e-smith/templates-custom/etc/php.ini | | mkdir -p /etc/e-smith/templates-custom/etc/php.ini |
− | cp /etc/e-smith/templates/etc/php.ini/30ErrorHandling /etc/e-smith/templates-custom/etc/php.ini/ | + | cp /etc/e-smith/templates/etc/php.ini/30ErrorHandling /etc/e-smith/templates-custom/etc/php.ini |
| | | |
| After that: | | After that: |
Line 26: |
Line 28: |
| | | |
| expand-template /etc/php.ini | | expand-template /etc/php.ini |
− | sv t /service/httpd-e-smith | + | /etc/rc7.d/S86httpd-e-smith restart |
| | | |
| Now access your page again and see what the error is. | | Now access your page again and see what the error is. |
Line 34: |
Line 36: |
| | | |
| expand-template /etc/php.ini | | expand-template /etc/php.ini |
− | sv t /service/httpd-e-smith | + | /etc/rc7.d/S86httpd-e-smith restart |
| | | |
| ===Open basedir restriction=== | | ===Open basedir restriction=== |
Line 45: |
Line 47: |
| Aug 12 17:27:42 homer httpd: PHP Warning: main(): open_basedir restriction in effect. File(/tmp/test.php) is not within the allowed path(s): (/home/e-smith/files/ibays/Primary/html/) in /home/e-smith/files/ibays/Primary/html/test.php on line 2 | | Aug 12 17:27:42 homer httpd: PHP Warning: main(): open_basedir restriction in effect. File(/tmp/test.php) is not within the allowed path(s): (/home/e-smith/files/ibays/Primary/html/) in /home/e-smith/files/ibays/Primary/html/test.php on line 2 |
| | | |
− | In general you will find this message in the log files only as by default PHP is configured to prevent the display of error messages to the end users. This can be changed as per this HowTo. | + | In general you will find this message in the log files only as by default PHP is configured to prevent the display of error messages to the end users. This can be changed as per [[PHP_Display_Error_Messages|this HowTo]]. |
| | | |
| ====Modifying the PHPBaseDir setting for an ibay==== | | ====Modifying the PHPBaseDir setting for an ibay==== |