The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

PHP errors in RedHat 9 / possible to downgrade cPanel?

Discussion in 'General Discussion' started by gisol, Oct 29, 2003.

  1. gisol

    gisol Registered

    Joined:
    May 14, 2002
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    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?
     
  2. twhiting9275

    twhiting9275 Well-Known Member

    Joined:
    Sep 26, 2002
    Messages:
    538
    Likes Received:
    15
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Twitter:
    run /scripts/fixheaders , as it looks like you need to update your glibc headers
    run /scripts/rpmup
    recompile php/apache (/scripts/easyapache)

    Should be all set to go.
     
  3. gisol

    gisol Registered

    Joined:
    May 14, 2002
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    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.

    root@server1060 [/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.

    root@server1060 [/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?
     
  4. twhiting9275

    twhiting9275 Well-Known Member

    Joined:
    Sep 26, 2002
    Messages:
    538
    Likes Received:
    15
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Twitter:
    If you're running anything but stable, you can downgrade to stable, though that's usually not the best idea. If not, then I don't think there's any way you CAN downgrade unfortunately.
     
  5. L4S

    L4S Well-Known Member

    Joined:
    Feb 23, 2003
    Messages:
    47
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    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.
     
Loading...

Share This Page