sk-php-selector icon indicating copy to clipboard operation
sk-php-selector copied to clipboard

module php5_module is already loaded, skipping...

Open jruizcantero opened this issue 6 years ago • 4 comments

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 php5_module 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 php5_module ...", 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"

jruizcantero avatar Sep 26 '18 11:09 jruizcantero

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

Skamasle avatar Sep 30 '18 12:09 Skamasle

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

jruizcantero avatar Oct 01 '18 12:10 jruizcantero

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

Skamasle avatar Oct 01 '18 16:10 Skamasle

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.

jruizcantero avatar Oct 01 '18 17:10 jruizcantero