Migration to php7

Mike_visser

Verified User
Joined
Sep 15, 2018
Messages
10
Hello every one,

I want to migrate my websites to PHP 7 curently using php 5.6 i know there is an option in directadmin so you can set php version on a domain to test out if your website is able to load php7.
the problem is when i switch the php version to php7 for a domain i get some messages and 503 error page

Fri Sep 14 22:20:20.722101 2018] [proxy:error] [pid 17838:tid 140715615971072] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /usr/local/php72/sockets/website.sock (*) failed
[Fri Sep 14 22:20:20.722128 2018] [proxy_fcgi:error] [pid 17838:tid 140715615971072] [client 145.129.128.84:59386] AH01079: failed to make connection to backend: httpd-UDS, referer: https://www.website.nl

Custombuild setting for php

https://www.mkupload.nl/img/fdfd.PNG[.img]


i use apache and debian 7 , i dont know what to do with the error is something missing

all websites working php 5.6 also working hope you guys can help me out with this..

thanks
 
No, first you change options.conf then you install software, then configs get updated.
 
Option.config is already good i didnt change anything

#PHP Settings
php1_release=5.6
php1_mode=php-fpm
php2_release=7.2
php2_mode=php-fpm
 
Like @zEitEr said, did you run

Code:
./build php

Only changing the options.conf is not enough, after you change the options.conf you need to run

Code:
./build php

So the new PHP version gets installed. The settings above are ok. But since we don't know anything about your config / system, make a snapshot/backup first.
 
it is ok now when i switch to php 7.2 i see a couple of errors on my website

great guys thanks
 
./build php did the trick strange that you can set it on custombuild edit options on but you have to install it your self.

great work guys thanks a lot
 
it is ok now when i switch to php 7.2 i see a couple of errors on my website

great guys thanks


If your PHP scripts do not support PHP 7.2.... and/or php functions deprecated and removed in 7.x it's OK to see errors. Find more details in release and upgrading notes on the official site http://php.net/
 
Back
Top