Skamasle / sk-php-selector

PHP selector for centos 7
81 stars 70 forks source link

module php5_module is already loaded, skipping... #6

Open jruizcantero opened 6 years ago

jruizcantero commented 6 years ago

After use sk-php-selector2.sh (v beta 0.3) on Centos 6 and Vesta CP v0.9.8 (x86_64) with php v5.4 by default, you can select "sk-phpX" templates but sites continue runing with php v.5.4...

If you run "service httpd restart" shows a warn "_module php5module is already loaded, skipping..."

In /etc/httpd/conf/httpd.conf include this line "Include conf.d/*.conf", so it trys include all files /etc/httpd/conf.d/*.conf

In this dir exists php.conf and the new file php56-php.conf (and others phpXX-php.conf) including this line "_LoadModule php5module ...", so I solved the problem for example with this: mv /etc/httpd/conf.d/php.conf /etc/httpd/conf.d/php.conf-backup

Now, you I can run "service httpd restart" ok and the sites run php version selected in template "sk-phpX"

Skamasle commented 6 years ago

Hi, as I understand you solve this ?

I comment something like this in forum, there are multuple php5_module, this normally not fail, but if you upgrade dfault php version all get broken and you need move out default php5_module, this happen also when you upgrade to php 7 and for some reazon php5_module is give in place

jruizcantero commented 6 years ago

Yes, I solved it. If you want, the script can try service httpd restart and if print "_module php5module is already loaded, skipping..." inform to run mv /etc/httpd/conf.d/php.conf /etc/httpd/conf.d/php.conf-backup

Skamasle commented 6 years ago

I need make some changes more there, I not touch script a lot of time, need add some fixes more :)

Por su nombre me da que habla español ? :D

jruizcantero commented 6 years ago

Genial @Skamasle, no sabía que hablabas español ;) Gran iniciativa con sk-php-selector y seguro que puliendo algunos detalles como este resulta de gran ayuda para muchos usuarios. Enhorabuena por el trabajo y estaremos atentos a nuevas versiones.