[SOLVED] PHP Selector installs Apache from Yum

Started by LifeSteala, November 15, 2016, 12:18:01 AM

Previous topic - Next topic

LifeSteala

Hey,
I need some help with Apache and PHP Selector. When I install dependencies it seems to install Apache 2.2.15 from Yum. This effects installed domains with Let's Encrypt SSL certificates. These domains don't load.

I remove Apache using yum remove and restart the server which makes all domains work again.

The problem, I cannot use the .htaccess commands to set a folder to use another PHP version.

What do I do?

LifeSteala

I managed to fix this. I read the php-selector-build.log and it says you have to add paths to PHP include_path variable.

I added this to CWP php.ini file:

include_path = "/opt/alt/php56:/opt/alt/php7/usr/lib/php"

I can now choose which PHP version I want using .htaccess files.

This should be added to the wiki.