Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 21st January 2007, 23:01
safoo safoo is offline
Junior Member
 
Join Date: Nov 2006
Posts: 20
Thanks: 2
Thanked 0 Times in 0 Posts
Default Cron - PHP: Call to undefined function: gzinflate()

I have a php script that I need run daily. The script works through the browser, but when the cron didn't seem to be executing the file, I tried running the script from the shell and get the following error:

Quote:
Fatal error: Call to undefined function: gzinflate()
I am using /root/ispconfig/php/php to run the script. I know that the ispconfig php is slightly different than what is run when the file is executed from the browser, but I was hoping zlib support can be added at runtime? Hopefully someone can point me in the right direction.

Last edited by safoo; 21st January 2007 at 23:25.
Reply With Quote
Sponsored Links
  #2  
Old 21st January 2007, 23:41
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,769
Thanks: 840
Thanked 5,609 Times in 4,420 Posts
Default

The ISPConfig PHP /root/ispconfig/php/php does not have zlib compiled in. Please install php-cli or php-cgi from your linux distribution and use this PHP interpreter to execute your file.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 22nd January 2007, 02:24
safoo safoo is offline
Junior Member
 
Join Date: Nov 2006
Posts: 20
Thanks: 2
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by till
The ISPConfig PHP /root/ispconfig/php/php does not have zlib compiled in. Please install php-cli or php-cgi from your linux distribution and use this PHP interpreter to execute your file.
Ok...thanks for pointing me in right direction. I also had to uncomment extension = mysql.so in /etc/php4/cli/php.ini to get this to work.
Reply With Quote
  #4  
Old 22nd January 2007, 02:44
safoo safoo is offline
Junior Member
 
Join Date: Nov 2006
Posts: 20
Thanks: 2
Thanked 0 Times in 0 Posts
Default

Everything seems to be working fine except this warning I now get on etc/init.d/ispconfig_server restart:

Code:
root@server:/etc/php4/cli# /etc/init.d/ispconfig_server restart
Shutting down ISPConfig system...
/root/ispconfig/httpd/bin/apachectl stop: httpd stopped
ISPConfig system stopped!
Starting ISPConfig system...
/root/ispconfig/httpd/bin/apachectl startssl: httpd started
PHP Warning:  PHP Startup: Unable to load dynamic library '/root/ispconfig/php/lib/php/extensions/no-debug-non-zts-20050922/mysql.so' - /root/ispconfig/php/lib/php/extensions/no-debug-non-zts-20050922/mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/root/ispconfig/php/lib/php/extensions/no-debug-non-zts-20050922/pgsql.so' - /root/ispconfig/php/lib/php/extensions/no-debug-non-zts-20050922/pgsql.so: cannot open shared object file: No such file or directory in Unknown on line 0
ISPConfig system is now up and running!
I checked every php.ini file on the server and I didn't find anything that matches this particular directory path or any references to no-debug-non-zts-20050922. Any idea what file is trying to load these libraries?

Last edited by safoo; 22nd January 2007 at 03:07.
Reply With Quote
  #5  
Old 22nd January 2007, 09:21
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,769
Thanks: 840
Thanked 5,609 Times in 4,420 Posts
Default

It looks like you edited the php.ini from ISPConfig. Please undo all changes in the file /root/ispconfig/php/php.ini. This file should be never edited, its only for ISPConfigs internal use.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #6  
Old 22nd January 2007, 21:31
safoo safoo is offline
Junior Member
 
Join Date: Nov 2006
Posts: 20
Thanks: 2
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by till
It looks like you edited the php.ini from ISPConfig. Please undo all changes in the file /root/ispconfig/php/php.ini. This file should be never edited, its only for ISPConfigs internal use.
I thought we may have changed something there as well, but I don't see any reference to the libraries that are referenced in the PHP warning. Moreover, the file shows time stamp of July 2005.

Code:
root@server:~/ispconfig/php# ls -la
total 64
drwxr-xr-x 6 root root  4096 2007-01-21 16:27 .
drwxr-xr-x 9 root root  4096 2007-01-20 22:57 ..
drwxr-xr-x 2 root root  4096 2006-10-26 15:31 bin
drwxr-xr-x 3 root root  4096 2006-10-26 15:30 include
drwxr-xr-x 3 root root  4096 2006-10-26 15:30 lib
drwxr-xr-x 3 root root  4096 2006-10-26 15:30 man
lrwxrwxrwx 1 root root    27 2006-10-26 15:36 php -> /root/ispconfig/php/bin/php
-rw-r--r-- 1 root root 38517 2005-07-14 07:27 php.ini
root@server:~/ispconfig/php#
Any other ideas?
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Freebsd 6.1 support misterm Installation/Configuration 10 9th April 2009 10:29
Slightly Confused (DNS & Server Help) JohnnyBGoode Installation/Configuration 26 14th August 2007 10:54
VirtualHosts marra87 General 9 12th September 2006 05:09
php script injections Grizzly General 21 18th July 2006 09:55
Downgrade php5 to php4.4.2 llizards Installation/Configuration 4 14th March 2006 00:58


All times are GMT +2. The time now is 09:48.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.