Skamasle / sk-php-selector

PHP selector for centos 7
80 stars 70 forks source link

it show error after I upgrade my apache to 2.4.80 #5

Open garyau opened 6 years ago

garyau commented 6 years ago

I have change repo to CentOS standard base repo , with following command:

yum downgrade httpd-2.4.6-80.el7.centos.x86_64 httpd-tools-2.4.6-80.el7.centos.x86_64 mod_ssl-2.4.6-80.el7.centos.x86_64

then I run "bash sk-php-selecto2.sh all" to install new template

Then when I choose sk custom template (PHP54,70,71,72) , the web site show error:

Forbidden You don't have permission to access /index.php on this server. Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.

in log file : [fcgid:warn] (104)Connection reset by peer: mod_fcgid: error reading data from FastCGI server [core:error] End of script output before headers: index.php

However , The "default" template does not have problem....

(updated) after reboot the server , all sk template is disappear at VestaCP

Seem same as this problem: https://forum.vestacp.com/viewtopic.php?f=19&t=10854&start=200#p71056

Skamasle commented 6 years ago

As i understand you this all working fine and then stop working when you upgrade apache ?

Maybe you upgrade something more ? default php version ?

In any case you may can solve this, selecting any orther httpd template and then rebuild web user vhosts

v-rebuild-web-domains

But I thing main default php version was upgraded

SK templates may can disappear if vesta was upgraded, if vesta delete data folder and remplace it with new one templates go out

IN any way you can uninstall all php versions and fix it, not is hard buy you need know what you do

https://forum.vestacp.com/viewtopic.php?f=19&t=10854&p=67369#p67455

garyau commented 6 years ago

I have remove all php5 php7 configuration file at "/etc/httpd/conf.d"

error on web

error

template

template

It seem all Fast CGI web template is fail. only "default" is work.

garyau commented 6 years ago

Furthermore , I use default CentOS 7 HTTPD 2.4.80 module. with "httpd -V" , is show following information. Will it help you to find out what happen ?

[Tue Jun 19 02:59:41.138269 2018] [so:warn] [pid 8262] AH01574: module php5_module is already loaded, skipping [Tue Jun 19 02:59:41.138502 2018] [so:warn] [pid 8262] AH01574: module php5_module is already loaded, skipping [Tue Jun 19 02:59:41.150992 2018] [so:warn] [pid 8262] AH01574: module ruid2_module is already loaded, skipping Server version: Apache/2.4.6 (CentOS) Server built: Apr 20 2018 18:10:38 Server's Module Magic Number: 20120211:24 Server loaded: APR 1.4.8, APR-UTIL 1.5.2 Compiled using: APR 1.4.8, APR-UTIL 1.5.2 Architecture: 64-bit Server MPM: prefork threaded: no forked: yes (variable process count) Server compiled with.... -D APR_HAS_SENDFILE -D APR_HAS_MMAP -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled) -D APR_USE_SYSVSEM_SERIALIZE -D APR_USE_PTHREAD_SERIALIZE -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT -D APR_HAS_OTHER_CHILD -D AP_HAVE_RELIABLE_PIPED_LOGS -D DYNAMIC_MODULE_LIMIT=256 -D HTTPD_ROOT="/etc/httpd" -D SUEXEC_BIN="/usr/sbin/suexec" -D DEFAULT_PIDLOG="/run/httpd/httpd.pid" -D DEFAULT_SCOREBOARD="logs/apache_runtime_status" -D DEFAULT_ERRORLOG="logs/error_log" -D AP_TYPES_CONFIG_FILE="conf/mime.types" -D SERVER_CONFIG_FILE="conf/httpd.conf"

garyau commented 6 years ago

Also provide my httpd -V info

rpm httpd -V S.5....T. c /etc/httpd/conf.modules.d/00-dav.conf S.5....T. c /etc/httpd/conf.modules.d/00-lua.conf S.5....T. c /etc/httpd/conf.modules.d/00-proxy.conf S.5....T. c /etc/httpd/conf/httpd.conf S.5....T. c /etc/logrotate.d/httpd