new server on ubutu 18.04.4 followed guide for said OS. migrated old server(Hostgator) to my own again(ISPCONFIG). when i transfered site over, fast cgi doesnt seem to work,(site errors) but when i use php fpm all seems well but what is the difference, how to fix fast cgi
who knows... depends on what is wrong without any error from your logs or some more indications nobody can help you.
[Sun Apr 26 18:02:14.559350 2020] [fcgid:warn] [pid 5984] (104)Connection reset by peer: [client 66.249.73.106:37661] mod_fcgid: error reading data from FastCGI server [Sun Apr 26 18:02:14.559414 2020] [core:error] [pid 5984] [client 66.249.73.106:37661] End of script output before headers: index.php [Sun Apr 26 18:02:17.245910 2020] [fcgid:warn] [pid 5994] (104)Connection reset by peer: [client 157.55.39.173:5150] mod_fcgid: error reading data from FastCGI server [Sun Apr 26 18:02:17.245985 2020] [core:error] [pid 5994] [client 157.55.39.173:5150] End of script output before headers: index.php [Sun Apr 26 18:02:49.417506 2020] [fcgid:warn] [pid 5984] (104)Connection reset by peer: [client 34.71.8.84:35380] mod_fcgid: error reading data from FastCGI server, referer: http://jnsflooringandsupplies.com [Sun Apr 26 18:02:49.417593 2020] [core:error] [pid 5984] [client 34.71.8.84:35380] End of script output before headers: index.php, referer: http://jnsflooringandsupplies.com [Sun Apr 26 18:02:52.424192 2020] [fcgid:warn] [pid 5994] (104)Connection reset by peer: [client 66.249.73.104:54567] mod_fcgid: error reading data from FastCGI server [Sun Apr 26 18:02:52.424224 2020] [core:error] [pid 5994] [client 66.249.73.104:54567] End of script output before headers: index.php [Sun Apr 26 18:06:51.995702 2020] [authz_core:error] [pid 8353] [client 66.249.73.104:55531] AH01630: client denied by server configuration: /var/www/clients/client1/web7/web/includes/templates/theme872, referer: https://jnsflooringandsupplies.com/...k_Collection?zenid=pho96989hghkt36n235l9u9fg4 [Sun Apr 26 18:07:06.256894 2020] [fcgid:warn] [pid 8555] (104)Connection reset by peer: [client 172.16.0.10:56631] mod_fcgid: error reading data from FastCGI server [Sun Apr 26 18:07:06.257022 2020] [core:error] [pid 8555] [client 172.16.0.10:56631] End of script output before headers: index.php [Sun Apr 26 18:07:11.422215 2020] [fcgid:warn] [pid 8557] (104)Connection reset by peer: [client 172.16.0.10:56632] mod_fcgid: error reading data from FastCGI server, referer: https://jnsflooringandsupplies.com/Jimmies_Admin/index.php [Sun Apr 26 18:07:11.422352 2020] [core:error] [pid 8557] [client 172.16.0.10:56632] End of script output before headers: index.php, referer: https://jnsflooringandsupplies.com/Jimmies_Admin/index.php [Sun Apr 26 18:07:52.194416 2020] [fcgid:warn] [pid 8556] (104)Connection reset by peer: [client 66.249.73.104:56840] mod_fcgid: error reading data from FastCGI server [Sun Apr 26 18:07:52.194547 2020] [core:error] [pid 8556] [client 66.249.73.104:56840] End of script output before headers: index.php [Sun Apr 26 18:07:52.459899 2020] [fcgid:warn] [pid 8557] (104)Connection reset by peer: [client 72.199.214.6:63306] mod_fcgid: error reading data from FastCGI server, referer: https://jnsflooringandsupplies.com/...ools/Pull_Bars/Crain_569_11_3_4_Tapping_Block [Sun Apr 26 18:07:52.459979 2020] [core:error] [pid 8557] [client 72.199.214.6:63306] End of script output before headers: pzen_searches.php, referer: https://jnsflooringandsupplies.com/...ools/Pull_Bars/Crain_569_11_3_4_Tapping_Block [Sun Apr 26 18:07:52.645168 2020] [fcgid:warn] [pid 8571] (104)Connection reset by peer: [client 72.199.214.6:63307] mod_fcgid: error reading data from FastCGI server, referer: https://jnsflooringandsupplies.com/...ools/Pull_Bars/Crain_569_11_3_4_Tapping_Block [Sun Apr 26 18:07:52.645307 2020] [core:error] [pid 8571] [client 72.199.214.6:63307] End of script output before headers: pzen_searches.php, referer: https://jnsflooringandsupplies.com/...ools/Pull_Bars/Crain_569_11_3_4_Tapping_Block [Sun Apr 26 18:07:52.781045 2020] [fcgid:warn] [pid 8560] (104)Connection reset by peer: [client 72.199.214.6:63308] mod_fcgid: error reading data from FastCGI server, referer: https://jnsflooringandsupplies.com/...ools/Pull_Bars/Crain_569_11_3_4_Tapping_Block [Sun Apr 26 18:07:52.781145 2020] [core:error] [pid 8560] [client 72.199.214.6:63308] End of script output before headers: pzen_searches.php, referer: https://jnsflooringandsupplies.com/...ools/Pull_Bars/Crain_569_11_3_4_Tapping_Block [Sun Apr 26 18:07:52.836340 2020] [fcgid:warn] [pid 8572] (104)Connection reset by peer: [client 72.199.214.6:63309] mod_fcgid: error reading data from FastCGI server, referer: https://jnsflooringandsupplies.com/...ools/Pull_Bars/Crain_569_11_3_4_Tapping_Block [Sun Apr 26 18:07:52.836458 2020] [core:error] [pid 8572] [client 72.199.214.6:63309] End of script output before headers: pzen_searches.php, referer: https://jnsflooringandsupplies.com/...ools/Pull_Bars/Crain_569_11_3_4_Tapping_Block [Sun Apr 26 18:07:53.503559 2020] [fcgid:warn] [pid 8555] (104)Connection reset by peer: [client 72.199.214.6:63310] mod_fcgid: error reading data from FastCGI server, referer: https://jnsflooringandsupplies.com/...ools/Pull_Bars/Crain_569_11_3_4_Tapping_Block [Sun Apr 26 18:07:53.503635 2020] [core:error] [pid 8555] [client 72.199.214.6:63310] End of script output before headers: pzen_searches.php, referer: https://jnsflooringandsupplies.com/...ools/Pull_Bars/Crain_569_11_3_4_Tapping_Block [Sun Apr 26 18:07:53.711655 2020] [fcgid:warn] [pid 8564] (104)Connection reset by peer: [client 72.199.214.6:63311] mod_fcgid: error reading data from FastCGI server, referer: https://jnsflooringandsupplies.com/...ools/Pull_Bars/Crain_569_11_3_4_Tapping_Block [Sun Apr 26 18:07:53.711752 2020] [core:error] [pid 8564] [client 72.199.214.6:63311] End of script output before headers: pzen_searches.php, referer: https://jnsflooringandsupplies.com/...ools/Pull_Bars/Crain_569_11_3_4_Tapping_Block [Sun Apr 26 18:07:54.050629 2020] [fcgid:warn] [pid 8557] (104)Connection reset by peer: [client 72.199.214.6:63312] mod_fcgid: error reading data from FastCGI server, referer: https://jnsflooringandsupplies.com/...ools/Pull_Bars/Crain_569_11_3_4_Tapping_Block [Sun Apr 26 18:07:54.050698 2020] [core:error] [pid 8557] [client 72.199.214.6:63312] End of script output before headers: pzen_searches.php, referer: https://jnsflooringandsupplies.com/...ools/Pull_Bars/Crain_569_11_3_4_Tapping_Block
and this in system monitor Inst php7.4-common (7.4.5-1+ubuntu18.04.1+deb.sury.org+1 ***** The main PPA for supported PHP versions with many PECL extensions *****:18.04/bionic [amd64]) Inst php7.4-json (7.4.5-1+ubuntu18.04.1+deb.sury.org+1 ***** The main PPA for supported PHP versions with many PECL extensions *****:18.04/bionic [amd64]) Inst php7.4-opcache (7.4.5-1+ubuntu18.04.1+deb.sury.org+1 ***** The main PPA for supported PHP versions with many PECL extensions *****:18.04/bionic [amd64]) Inst php7.4-readline (7.4.5-1+ubuntu18.04.1+deb.sury.org+1 ***** The main PPA for supported PHP versions with many PECL extensions *****:18.04/bionic [amd64]) Inst php7.4-cli (7.4.5-1+ubuntu18.04.1+deb.sury.org+1 ***** The main PPA for supported PHP versions with many PECL extensions *****:18.04/bionic [amd64]) Inst libapache2-mod-php7.4 (7.4.5-1+ubuntu18.04.1+deb.sury.org+1 ***** The main PPA for supported PHP versions with many PECL extensions *****:18.04/bionic [amd64]) Inst libapache2-mod-php [1:7.2+60ubuntu1] (2:7.4+75+ubuntu18.04.1+deb.sury.org+1 ***** The main PPA for supported PHP versions with many PECL extensions *****:18.04/bionic [all]) Inst php7.4-bz2 (7.4.5-1+ubuntu18.04.1+deb.sury.org+1 ***** The main PPA for supported PHP versions with many PECL extensions *****:18.04/bionic [amd64]) Inst php-bz2 [1:7.2+60ubuntu1] (2:7.4+75+ubuntu18.04.1+deb.sury.org+1 ***** The main PPA for supported PHP versions with many PECL extensions *****:18.04/bionic [all]) Inst php7.4-soap (7.4.5-1+ubuntu18.04.1+deb.sury.org+1 ***** The main PPA for supported PHP versions with many PECL extensions *****:18.04/bionic [amd64]) Inst php-soap [1:7.2+60ubuntu1] (2:7.4+75+ubuntu18.04.1+deb.sury.org+1 ***** The main PPA for supported PHP versions with many PECL extensions *****:18.04/bionic [all]) Inst php7.4-xml (7.4.5-1+ubuntu18.04.1+deb.sury.org+1 ***** The main PPA for supported PHP versions with many PECL extensions *****:18.04/bionic [amd64]) Inst php-xml [1:7.2+60ubuntu1] (2:7.4+75+ubuntu18.04.1+deb.sury.org+1 ***** The main PPA for supported PHP versions with many PECL extensions *****:18.04/bionic [all]) Conf php7.4-common (7.4.5-1+ubuntu18.04.1+deb.sury.org+1 ***** The main PPA for supported PHP versions with many PECL extensions *****:18.04/bionic [amd64]) Conf php7.4-json (7.4.5-1+ubuntu18.04.1+deb.sury.org+1 ***** The main PPA for supported PHP versions with many PECL extensions *****:18.04/bionic [amd64]) Conf php7.4-opcache (7.4.5-1+ubuntu18.04.1+deb.sury.org+1 ***** The main PPA for supported PHP versions with many PECL extensions *****:18.04/bionic [amd64]) Conf php7.4-readline (7.4.5-1+ubuntu18.04.1+deb.sury.org+1 ***** The main PPA for supported PHP versions with many PECL extensions *****:18.04/bionic [amd64]) Conf php7.4-cli (7.4.5-1+ubuntu18.04.1+deb.sury.org+1 ***** The main PPA for supported PHP versions with many PECL extensions *****:18.04/bionic [amd64]) Conf libapache2-mod-php7.4 (7.4.5-1+ubuntu18.04.1+deb.sury.org+1 ***** The main PPA for supported PHP versions with many PECL extensions *****:18.04/bionic [amd64]) Conf libapache2-mod-php (2:7.4+75+ubuntu18.04.1+deb.sury.org+1 ***** The main PPA for supported PHP versions with many PECL extensions *****:18.04/bionic [all]) Conf php7.4-bz2 (7.4.5-1+ubuntu18.04.1+deb.sury.org+1 ***** The main PPA for supported PHP versions with many PECL extensions *****:18.04/bionic [amd64]) Conf php-bz2 (2:7.4+75+ubuntu18.04.1+deb.sury.org+1 ***** The main PPA for supported PHP versions with many PECL extensions *****:18.04/bionic [all]) Conf php7.4-soap (7.4.5-1+ubuntu18.04.1+deb.sury.org+1 ***** The main PPA for supported PHP versions with many PECL extensions *****:18.04/bionic [amd64]) Conf php-soap (2:7.4+75+ubuntu18.04.1+deb.sury.org+1 ***** The main PPA for supported PHP versions with many PECL extensions *****:18.04/bionic [all]) Conf php7.4-xml (7.4.5-1+ubuntu18.04.1+deb.sury.org+1 ***** The main PPA for supported PHP versions with many PECL extensions *****:18.04/bionic [amd64]) Conf php-xml (2:7.4+75+ubuntu18.04.1+deb.sury.org+1 ***** The main PPA for supported PHP versions with many PECL extensions *****:18.04/bionic [all])
If you want to use php fastcgi you have to have php7.X-cgi package installed. Where X is your desired PHP version number, eg. 7.3 or 7.4, depends what packages you have available in repositories you are using.
should i install this? apt-get -y install php7.4 php7.4-common php7.4-fpm php7.4-gd php7.4-mysql php7.4-imap php7.4-cli php7.4-cgi php-pear php7.4-curl php7.4-intl php7.4-pspell php7.4-recode php7.4-sqlite3 php7.4-tidy php7.4-xmlrpc php7.4-xsl php-memcache php-imagick php-gettext php7.4-zip php7.4-mbstring php7.4-soap php7.4-common php7.4-opcache php7.4-mysql
what are advantages of fast-cgi vs the PHP-FHP. in order for to my site to run fast-cgi i need to default server to PHP 7.0 and than fast cgi will work. ( but if another site needs Php 7.1 or any other than they cant use fast-cgi)
PHP-FPM is the successor of FastCGI, so you should use PHP-FPM if available on a server, FastCGI is not needed anymore today.
You already have multiple php versions installed, simply set the site to the php version you want it to run as. You don't have to use the system default php version at all (eg. I create an Additional PHP Version for each version, whether it happens to be the current system default or not, and all sites are set to those). You shouldn't change the system default php version to try to get a particular website to run, always leave the system default alone (changing it is a common way to break your ISPConfig server).