refactored configuration for php_sapi const to be set correctly