Mass select php2_release for all users

Ronnie

Verified User
Joined
Oct 11, 2007
Messages
10
Is there a way to mass select the php2_release for all users at the same time?
I would like al new site's to use automatically php 7.x and stick with the old website's to 5.6.

Best regards,

Ronnie
 
Hello,
Depending on the amount of old website's, it's easier to change options.conf to use 7.x as php1 and 5.6 as php2.

Then only change those old websites to use php2.

Stijn
 
There are over the 200 website's on the server that don't support php 7.
So i really like to mass select php2 for the old website's an then make them step by step compatible with php 7.
 
What you could do is the following:

Add these values to /usr/local/directadmin/data/users/*/domains/*.conf (as example /usr/local/directadmin/data/users/ronnie/domains/ronnie.com.conf)

php1_select=2
php2_select=1

And then:

echo "action=rewrite&value=httpd" >> /usr/local/directadmin/data/task.queue

Or:

cd /usr/local/directadmin/custombuild && ./build rewrite_confs

First PHP (7.X = php2_select=1)
Second PHP (5.6 = php1_select=2)

Will it succeed? :)
 
Back
Top