In my vhost I am attempting run Drupal 7, the files and folders are owned by apache:apache
When I load my vhost by the domain name with any version of PHP other than the default version I get the follow errors
[proxy:error] [pid 1938] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix
domain socket /var/run/php-fpm/myvhost-php56.sock (*) failed
[proxy_fcgi:error] [pid 1938] [client 10.1.10.15:57147] AH01079: failed to make connection to
backend: httpd-UDS**
[proxy:error] [pid 10176] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix
domain socket /var/run/php-fpm/myvhost-php70.sock (*) failed
[proxy_fcgi:error] [pid 10176] [client 10.1.10.15:57546] AH01079: failed to make connection to
backend: httpd-UDS
I installed the following php packages sclo-php56-php-pecl-apcu rh-php56-php-opcache nethserver-phpsettings nethserver-php-scl php56-php-dba php56-php-intl php70-php-dba php70-php-intl php71-php-dba php71-php-intl
I moved the website to /var/www/html directory and now I am get the following error
[pid 15446] (111)Connection refused: AH00957: FCGI: attempt to connect to 127.0.0.1:9071 (*) failed
[proxy_fcgi:error] [pid 15446] [client 10.1.10.15:65109] AH01079: failed to make connection to backend: 127.0.0.1
when I create a vhost. I select PHP 7.1 and in the /var/log/messages I see the following error
esmith::event[16405]: Event: vhost-create FAILED
systemctl status php71-php-fpm
ERROR: unable to bind listening socket for address '/var/run/php-fpm/zest-php71.sock': No such file or directory (2)
ERROR: FPM initialization failed
php71-php-fpm.service: main process exited, code=exited, status=78/n/a
Failed to start The PHP FastCGI Process Manager.
Unit php71-php-fpm.service entered failed state.
php71-php-fpm.service failed.
The old server was using mariadb 10, and php 7.1 there are no old paths in the database
Hi - how did you resolve the php error? I have several vhosts set up, and am using php 7.1 on several - the default php is far too old for a lot of things.
Anyway - run updates and rebooted. I have set my default php to php 7.1. The vhost is set to use the default, but I get an error saying it is using 5.6:
This version of Nextcloud requires at least PHP 5.6.0
You are currently running 5.4.16. Please update your PHP version.
If I set the vhost to use 7.1, get
Service Unavailable
The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.
Checking the status:
$ sudo systemctl status php71-php-fpm -l
● php71-php-fpm.service - The PHP FastCGI Process Manager
Loaded: loaded (/usr/lib/systemd/system/php71-php-fpm.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Thu 2018-04-19 20:48:05 NZST; 13min ago
Main PID: 5238 (code=exited, status=78)
Apr 19 20:48:04 server.rnet.duckdns.org systemd[1]: Starting The PHP FastCGI Process Manager…
Apr 19 20:48:04 server.rnet.duckdns.org php-fpm[5238]: [19-Apr-2018 20:48:04] ERROR: unable to bind listening socket for address ‘/var/run/php-fpm/cloud-php71.sock’: No such file or directory (2)
Apr 19 20:48:04 server.rnet.duckdns.org php-fpm[5238]: [19-Apr-2018 20:48:04] ERROR: FPM initialization failed
Apr 19 20:48:05 server.rnet.duckdns.org systemd[1]: php71-php-fpm.service: main process exited, code=exited, status=78/n/a
Apr 19 20:48:05 server.rnet.duckdns.org systemd[1]: Failed to start The PHP FastCGI Process Manager.
Apr 19 20:48:05 server.rnet.duckdns.org systemd[1]: Unit php71-php-fpm.service entered failed state.
Apr 19 20:48:05 server.rnet.duckdns.org systemd[1]: php71-php-fpm.service failed.
Okay - creating the /var/run/php-fpm directory gets things working, but I need to set each vhost’s php version to 7.1, rather than setting the default version to 7.1 and setting the vhosts to default.
I seem to remember this caused problems with some php applications … but don’t recall exactly what.
OK, you seem to use Nextcloud in a vhost, I didn’t recognize that. I meant the Nethserver Nextcloud implementation used php56 in previous version and uses php71 now.