PHP errors in RedHat 9 / possible to downgrade cPanel?

gisol

Registered
May 14, 2002
2
0
301
Our new servers came with RedHat 9 installed. After installing cPanel 8.4.0, right from the start we had problems running PHP scripts, mainly due to the following error from the php binary:

Incorrectly built binary which accesses errno, h_errno or _res directly. Needs to be fixed.

We normally recompile PHP anyway to include additional options not configured by default, so we are able to get around this problem for PHP scripts run through Apache. However, it does not help any PHP scripts run through cPanel, such as custom skins or Horde webmail.

We got around that problem for a while by replacing /usr/local/cpanel/3rdparty/bin/php with the php we compiled from source. However, after someone upgraded cPanel to version 8.5.3, Horde stopped working, giving the followig error:

Fatal error: Call to undefined function: _() in /usr/local/cpanel/base/horde/config/registry.php on line 86

so we had to replace our compiled php with cPanel's original prebuilt binary again. Our php pages in the custom cPanel skin don't display properly, but at least Horde works.

Now we have some additional servers that also have RedHat 9, on which we've installed cPael 8.5.4 (R7). On these servers, Horde doesn't work using either the pre-built php or the custom php we compiled from source.

We need to get Horde running as quickly as possible for our users. Since we had fewer problems with 8.4.0, is it possible to downgrade to that release until cPanel comes out with a version compatible with RedHat 9?
 

gisol

Registered
May 14, 2002
2
0
301
I'm afraid I wasn't clear enough in my original post. We don't have problems with users' PHP scripts run from Apache; we have problems with PHP scripts run by cpanel, which uses /usr/local/cpanel/3rdparty/bin/php.

We always recompile Apache + PHP after installing cPanel on a new server, because our users need additional PHP features which are not configured by default.

[email protected] [/scripts]# ./fixheaders
Using RPM Backend: RPM version 4.2
glibc-devel: installed version 2.3.2-27.9 is up to date, no action needed.

[email protected] [/scripts]# ./rpmup
Using RPM Backend: RPM version 4.2
Fetching rpmup update list....Done
bash is up to date
Updating coreutils
coreutils: installed version 4.5.3-19 is up to date, no action needed.
glibc is up to date
glibc-common is up to date
glibc-devel is up to date
gnupg is up to date
Ignoring httpd
Ignoring httpd-devel
Ignoring httpd-manual
initscripts is up to date
Ignoring kernel
Ignoring kernel-BOOT
Ignoring kernel-doc
Ignoring kernel-source
krb5-devel is up to date
krb5-libs is up to date
nfs-utils is up to date
nscd is up to date
openssh is up to date
openssh-clients is up to date
openssh-server is up to date
openssl is up to date
openssl-devel is up to date
openssl096 is up to date
openssl096b is up to date
pam_smb is up to date
Ignoring perl
Ignoring perl-CGI
Ignoring perl-CPAN
Ignoring perl-DB_File
Ignoring perl-suidperl
Ignoring php
Ignoring php-devel
Ignoring php-imap
Ignoring php-ldap
Ignoring php-manual
Ignoring php-mysql
Ignoring php-odbc
Ignoring php-pgsql
Ignoring php-snmp
pine is up to date
Ignoring postfix
rhpl is up to date
tcpdump is up to date
unzip is up to date
up2date is up to date
xinetd is up to date
redhat-config-network-tui is up to date

Now, back to the question at hand: can we downgrade cPanel back to version 8.4.0?
 

L4S

Well-Known Member
Feb 23, 2003
47
0
156
Australia
We had the same problem....

This fixed the issue for us, thanks to the guys from Cpanel support.

./updatenow ; ./sysup ; ./rpmup ; ./fixcommonproblems ; ./exim4 ; mv -f /usr/local/cpanel/cpanel ~ ; ./upcp ; ./updatenow ; ./reinstallmailman ; /usr/local/cpanel/bin/checkperlmodules ; service cpanel stop ; service cpanel start

L4s.