CB2: "x-httpd-php-source .phps" caused DA to think CLI was enabled

Version 1.43


New code was added to the apache to CB 2.0 to allow for phps files. This is done with the line: AddHandler application/x-httpd-php-source .phps in the httpd-php-handlers.conf file. DA previously was looking for the string: AddHandler application/x-httpd-php to determine if CLI was enabled. With the addition of the phps line, it caused DA to think CLI was enabled. Fix was to simply inclue a space at the end of the search string: "AddHandler application/x-httpd-php " --------------------------------------------------- Full error: Starting httpd: AH00526: Syntax error on line 99 of /usr/local/directadmin/data/users/admin/httpd.conf: Invalid command 'php_admin_flag', perhaps misspelled or defined by a module not included in the server configuration

Interested to try DirectAdmin? Get a 30-day Free Trial!