Hello,
We are trying to use the following guide in order to implement multiple per directory php versions functional ( https://www.cloudlinux.com/blog/clne...p-selector.php ). As we can see it works perfectly when we edit /usr/local/apache/conf/includes/pre_main_global.conf using SSH console, but we have noticed an error when we use WHM. We use the following menu cPanel => Apahce Configuration => Inclde Editor -> "Pre Main Include" and "All Version", then we put the following block into editor:
and press "Update". The following error arrise:
> Clearing post_virtualhost_2.conf
>
> Clearing post_virtualhost_global.conf
>
> Clearing pre_main_2.conf
>
> Saving pre_main_global.conf
> Sorry, your changes have introduced a syntax error in pre_main_global.conf. Please correct the issue.
> Error:
> Configuration problem detected on line 2 of file /usr/local/apache/conf/includes/pre_main_global.conf.tmp: Invalid command suPHP_AddHandler, perhaps misspelled or defined by a module not included in the server configuration --- /usr/local/apache/conf/includes/pre_main_global.conf.tmp --- 1 2 ===> suPHP_AddHandler application/x-httpd-php52 <=== 3suPHP_AddHandler application/x-httpd-php53 4suPHP_AddHandler application/x-httpd-php54 5suPHP_AddHandler application/x-httpd-php55 6suPHP_AddHandler application/x-httpd-php56 7 --- /usr/local/apache/conf/includes/pre_main_global.conf.tmp ---
>
> Clearing pre_virtualhost_2.conf
>
> Clearing pre_virtualhost_global.conf
> Apache Version: 2.4.10
As it has been noticed before this functional works without any problem if we ipmplement this via remote console, but what WHM error can be related with?
Thanks in advance.
--
Regards,
Felix O.
We are trying to use the following guide in order to implement multiple per directory php versions functional ( https://www.cloudlinux.com/blog/clne...p-selector.php ). As we can see it works perfectly when we edit /usr/local/apache/conf/includes/pre_main_global.conf using SSH console, but we have noticed an error when we use WHM. We use the following menu cPanel => Apahce Configuration => Inclde Editor -> "Pre Main Include" and "All Version", then we put the following block into editor:
Code:
suPHP_AddHandler application/x-httpd-php52 suPHP_AddHandler application/x-httpd-php53 suPHP_AddHandler application/x-httpd-php54 suPHP_AddHandler application/x-httpd-php55 suPHP_AddHandler application/x-httpd-php56
> Clearing post_virtualhost_2.conf
>
> Clearing post_virtualhost_global.conf
>
> Clearing pre_main_2.conf
>
> Saving pre_main_global.conf
> Sorry, your changes have introduced a syntax error in pre_main_global.conf. Please correct the issue.
> Error:
> Configuration problem detected on line 2 of file /usr/local/apache/conf/includes/pre_main_global.conf.tmp: Invalid command suPHP_AddHandler, perhaps misspelled or defined by a module not included in the server configuration --- /usr/local/apache/conf/includes/pre_main_global.conf.tmp --- 1 2 ===> suPHP_AddHandler application/x-httpd-php52 <=== 3suPHP_AddHandler application/x-httpd-php53 4suPHP_AddHandler application/x-httpd-php54 5suPHP_AddHandler application/x-httpd-php55 6suPHP_AddHandler application/x-httpd-php56 7 --- /usr/local/apache/conf/includes/pre_main_global.conf.tmp ---
>
> Clearing pre_virtualhost_2.conf
>
> Clearing pre_virtualhost_global.conf
> Apache Version: 2.4.10
As it has been noticed before this functional works without any problem if we ipmplement this via remote console, but what WHM error can be related with?
Thanks in advance.
--
Regards,
Felix O.
Comment