Article ID: 117172, created on Sep 6, 2013, last review on May 9, 2014

  • Applies to:
  • H-Sphere 3.6.2

Symptoms

  1. PHP applications cannot connect to the databases, produce errors about undefined functions or show blank screen.

  2. PHP error log contains errors about undefined functions:

    [01-Aug-2013 05:20:55] PHP Fatal error:  Call to undefined function mysql_pconnect() in /home/hsphere/local/home/user/domain.com/Connections/SolisQuote.php on line 9
    
  3. All .ini files in /hsphere/local/config/httpd/php5/php.d/ have .bak suffix:

    # ll /hsphere/local/config/httpd/php5/php.d/
    total 96
    -rw-r--r-- 1 root root   55 Jun 16 12:19 bcmath.ini.bak
    -rw-r--r-- 1 root root   59 Jun 16 12:19 calendar.ini.bak
    -rw-r--r-- 1 root root   51 Jun 16 12:19 curl.ini.bak
    -rw-r--r-- 1 root root   53 Jun 16 12:19 dbase.ini.bak
    -rw-r--r-- 1 root root   51 Jun 16 12:19 exif.ini.bak
    -rw-r--r-- 1 root root   59 Jun 16 12:19 fileinfo.ini.bak
    -rw-r--r-- 1 root root   49 Jun 16 12:19 gmp.ini.bak
    -rw-r--r-- 1 root root   53 Jun 16 12:19 iconv.ini.bak
    -rw-r--r-- 1 root root   51 Jun 16 12:19 imap.ini.bak
    -rw-r--r-- 1 root root  174 Jun 16 12:19 ioncube.ini.bak
    -rw-r--r-- 1 root root   51 Jun 16 12:19 ldap.ini.bak
    -rw-r--r-- 1 root root   53 Jun 16 12:19 mysql.ini.bak
    -rw-r--r-- 1 root root   55 Jun 16 12:19 mysqli.ini.bak
    -rw-r--r-- 1 root root   51 Jun 16 12:19 odbc.ini.bak
    -rw-r--r-- 1 root root   49 Jun 16 12:19 pdo.ini.bak
    -rw-r--r-- 1 root root   61 Jun 16 12:19 pdo_mysql.ini.bak
    -rw-r--r-- 1 root root   61 Jun 16 12:19 pdo_pgsql.ini.bak
    -rw-r--r-- 1 root root   63 Jun 16 12:19 pdo_sqlite.ini.bak
    -rw-r--r-- 1 root root   53 Jun 16 12:19 pgsql.ini.bak
    -rw-r--r-- 1 root root   55 Jun 16 12:19 pspell.ini.bak
    -rw-r--r-- 1 root root    0 Nov  5  2012 so-defaults.list
    -rwxr-x--- 1 root root 2466 Jun 16 12:22 so-defaults.sh
    -rw-r--r-- 1 root root   51 Jun 16 12:19 soap.ini.bak
    -rw-r--r-- 1 root root   55 Jun 16 12:19 sqlite.ini.bak
    -rw-r--r-- 1 root root   67 Jun 16 12:19 zmnogosearch.ini.bak 
    

Resolution

Rename all .ini.bak files back to .ini:

for f in /hsphere/local/config/httpd/php5/php.d/bak/*.ini.bak ; do cp $f $(basename $f .bak) ; done

Search Words

sh U36.0P2 sitestudio spu was runing

Call to undefined function mysql_pconnect()

e5eac925e853cc7ef3f6055683c98fbb 6311ae17c1ee52b36e68aaf4ad066387 f213b9fa8759d57bee5d547445806fe7 2e39a5e5b1423cc126cf735bac076008

Email subscription for changes to this article
Save as PDF