downgrade secondary php version

jonium

Verified User
Joined
Nov 10, 2010
Messages
129
Location
Alezio - Lecce- Apulia - South Italy
Hello,
I need to know if I can safely downgrade the secondary version of php from php 7.2 to php 7.0.

It's a shared hosting server with:
Centos7
DirectAdmin 1.55
Apache 2.4
PHP1= php 5.6.39 mod_php
PHP2= php 7.2 php-fpm
suhosin
mod_ruid2

I'll select 7.0 and rebuild php, is it all?
Thanks for your help
 
Last edited:

zEitEr

Super Moderator
Joined
Apr 11, 2005
Messages
13,932
Location
GMT +7.00
Hello,

Yes, it is all. You might need to update PECL extensions if you have installed any manually.
 

jonium

Verified User
Joined
Nov 10, 2010
Messages
129
Location
Alezio - Lecce- Apulia - South Italy
hello,

At the end of the rebuild of php I got the following error:

Code:
[1mApache 2.4.27 and higher will not negotiate http2 with mpm_prefork. Please do not use mod_php(B[m or disable http2 in the directadmin.conf
http://www.apache.org/dist/httpd/CHANGES_2.4.27
Today in order to try to get http/2 at least in the secondary php ver, I tried to do

Code:
# cd /usr/local/directadmin/custombuild/
# ./build set apache_mpm event
Changed apache_mpm option from auto to event
# ./build apache
but as I saw an error and the httpd service was not started, so I immediately re-put mpm auto and rebuilded apache:

Code:
# cd /usr/local/directadmin/custombuild/
# ./build set apache_mpm auto
Changed apache_mpm option from event to auto
# ./build apache
Apparently there are no errors, consider that still only few virtualhosts are using php 7.0
But I have lot of raws of errors in httpd log file:
e.g.:
Code:
Output file write error --- out of disk space?
Output file write error --- out of disk space?
Output file write error --- out of disk space?
Output file write error --- out of disk space?
Output file write error --- out of disk space?
Output file write error --- out of disk space?
Output file write error --- out of disk space?
Output file write error --- out of disk space?
Output file write error --- out of disk space?
Output file write error --- out of disk space?
Obviously I first checked the space:
Code:
# df -ih
Filesystem     Inodes IUsed IFree IUse% Mounted on
/dev/md4         626K   35K  592K    6% /
devtmpfs         3.9M   529  3.9M    1% /dev
tmpfs            3.9M     8  3.9M    1% /dev/shm
tmpfs            3.9M  268K  3.7M    7% /run
tmpfs            3.9M    16  3.9M    1% /sys/fs/cgroup
/dev/md8         3.1M   89K  3.0M    3% /usr
/dev/md2          63K   366   62K    1% /boot
/dev/md3          63K   20K   43K   32% /tmp
/dev/md5          99M  1.6M   98M    2% /home
/dev/md6          13M   70K   13M    1% /var
tmpfs            3.9M     1  3.9M    1% /run/user/0

# df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/md4        9.5G  2.6G  6.5G  29% /
devtmpfs         16G     0   16G   0% /dev
tmpfs            16G   28K   16G   1% /dev/shm
tmpfs            16G  2.7G   13G  17% /run
tmpfs            16G     0   16G   0% /sys/fs/cgroup
/dev/md8         48G  8.0G   38G  18% /usr
/dev/md2        238M  137M   85M  62% /boot
/dev/md3        968M   38M  864M   5% /tmp
/dev/md5        1.6T  347G  1.2T  24% /home
/dev/md6        203G   11G  182G   6% /var
tmpfs           3.2G     0  3.2G   0% /run/user/0
After some googling, it seems to be related to a libjpeg issue, any idea about how to fix it?
 
Last edited:

zEitEr

Super Moderator
Joined
Apr 11, 2005
Messages
13,932
Location
GMT +7.00
[1mApache 2.4.27 and higher will not negotiate http2 with mpm_prefork. Please do not use mod_php(B[m or disable http2 in the directadmin.confhttp://www.apache.org/dist/httpd/CHANGES_2.4.27
Change mod_php to php-fpm
Enable htscanner
Disable mod_ruid2

and rebuild apache+php.


After some googling, it seems to be related to a libjpeg issue, any idea about how to fix it?

Which exactly log file does show "Output file write error --- out of disk space" ?

Is that CloudLinux? Or your user hits individual disk quotas?
 

jonium

Verified User
Joined
Nov 10, 2010
Messages
129
Location
Alezio - Lecce- Apulia - South Italy
Change mod_php to php-fpm
Enable htscanner
Disable mod_ruid2

and rebuild apache+php.
So I will have both php version on php-fpm, is it right?

Which exactly log file does show "Output file write error --- out of disk space" ?

Is that CloudLinux? Or your user hits individual disk quotas?
the log is /var/log/httpd/error.log

Code:
Output file write error --- out of disk space?
Output file write error --- out of disk space?
Output file write error --- out of disk space?
Output file write error --- out of disk space?
body.xml:1: parser error : String not closed expecting " or '
<?xml version="1.0" encoding="iso - 8859 - 1"?><methodCall><methodName>wp.getUse
                                 ^
body.xml:1: parser error : parsing XML declaration: '?>' expected
<?xml version="1.0" encoding="iso - 8859 - 1"?><methodCall><methodName>wp.getUse
                                  ^
body.xml:1: parser error : String not closed expecting " or '
<?xml version="1.0" encoding="iso - 8859 - 1"?><methodCall><methodName>wp.getUse
                                 ^
body.xml:1: parser error : parsing XML declaration: '?>' expected
<?xml version="1.0" encoding="iso - 8859 - 1"?><methodCall><methodName>wp.getUse
                                  ^
body.xml:1: parser error : String not closed expecting " or '
<?xml version="1.0" encoding="iso - 8859 - 1"?><methodCall><methodName>wp.getUse
                                 ^
body.xml:1: parser error : parsing XML declaration: '?>' expected
<?xml version="1.0" encoding="iso - 8859 - 1"?><methodCall><methodName>wp.getUse
                                  ^
body.xml:1: parser error : String not closed expecting " or '
<?xml version="1.0" encoding="iso - 8859 - 1"?><methodCall><methodName>wp.getUse
                                 ^
No, it isn't Cloudlinux but Centos 7.
I also thought it was related to a user individual disk quotas.
I searched
Code:
grep -rnw '/var/log/httpd/domains/' -e 'write error'
but no results
 

zEitEr

Super Moderator
Joined
Apr 11, 2005
Messages
13,932
Location
GMT +7.00
I believe it means you can not use the option as it is not compatible with your setup any longer.
 

zEitEr

Super Moderator
Joined
Apr 11, 2005
Messages
13,932
Location
GMT +7.00
Whenever you change options: PHP version, a web-server nginx, apache; you need unlike competitive panels to run a build script to compile software and update configs.

It is

Code:
./build update
./build php
./build rewrite_confs
if you change PHP versions.
 
Top