On Tue, Dec 04, 2001 at 08:16:55PM -0500, Franklin S. Werren wrote: > Nope did not work... > Refused to re-start > > [root /]# /etc/rc.d/init.d/httpd restart > Shutting down Web Service: httpd > Setting up Web Service: Syntax error on line 58 of > /etc/httpd/conf/httpd.conf: > Cannot load /usr/lib/apache/libphp4.so into server: > /usr/lib/apache/libphp4.so: undefined symbol: gdImageCreateFromGif > /usr/sbin/httpd It is definitely problem between the php binary and libgd (the library used for reading, drawing and writing images). On one hand it is possible that the libgd...?version?.so is not found in the libpath (/etc/ld.so.conf $LD_LIBRARY_PATH) (well, I'm not shure about the message issued in that case. May be it will be the same, but most possibly it will be other message clearly stating that the libgd.so is not found). Anyway if no other reason is, you should check this one. But most posibly it is due to the libgd interface changes be╜ tween versions. The older libgd was used to work with GIF im╜ ages. But some years ago the support was completely removed due to GIF copyright trubles (including respective functions). The libgd, installed on the Raq4 by default, is one of the old versions that have GIF routines. (libgd.so.1.2 in my case). It is possible, that someone upgraded libgd on you machine. The most simple way of finding the installed version of libgd is to type ldd /usr/lib/apache/libphp4.so (to ensure, that libgd is found by libphp4) and ldd /usr/lib/apache/libphp4.so |grep libgd.so |awk '{ print $3 }'|xargs ls -l (check the filename, that the libgd points to). To see, whether the library have gif support, type nm /usr/lib/libgd.so.1 |grep -i gif Where /usr/lib/libgd.so.1 is the found filename. In the case it is one of the recent versions, you have three general opporunities: First one is to downgrade libgd to the default one. Though this will make system a bit more similar to the default one, you should understand that someone possible upgraded libgd, and he had reasons to do it. Second is to install old libgd in one of the uncommon location and point the apache to it (via LD_LIBRARY_PATH environment vari- able). This is reasonable soultion, but you should check subtle differences, that could occur because of changing LD_LI- BRARY_PATH, especially for cgi scripts. Third one is to find the php4 binary, compiled with new gd or to recompile it manually. The PHP check version of the gd library, and could be compiled and used on both types. The (possibly) better way of recompiling is to download the php....src.rpm from the site you found php binary (may be with the apache....src.rpm), and rebuild it using rpm -bb. > > So I rem it out again > and restarted the services > > BTW should not the idot lite in the control panel go out when > the Server is back up ??? > > Franklin Werren > > ----- Original Message ----- > From: "Gerald Waugh" <gerald@xxxxxxxxx> > To: <cobalt-users@xxxxxxxxxxxxxxx> > Cc: <fswerren@xxxxxxxxxxxx> > Sent: Tuesday, December 04, 2001 1:41 PM > Subject: Re: [cobalt-users] Apache Server is down and will not re-start > > > > > I rem out line 58 and it started but > > > now php does not work > > > > > > here are the lines before I edited them > > > # Extra Modules > > > #LoadModule php_module modules/mod_php.so > > > #LoadModule php3_module modules/libphp3.so > > > LoadModule php4_module modules/libphp4.so > > > > TRY LoadModule php4_module /usr/lib/apache/libphp4.so > > > > > > > > Now how do I get PHP to work ??? > > > > > > > > > _______________________________________________ > > cobalt-users mailing list > > cobalt-users@xxxxxxxxxxxxxxx > > To Subscribe or Unsubscribe, please go to: > > http://list.cobalt.com/mailman/listinfo/cobalt-users > > > > _______________________________________________ > cobalt-users mailing list > cobalt-users@xxxxxxxxxxxxxxx > To Subscribe or Unsubscribe, please go to: > http://list.cobalt.com/mailman/listinfo/cobalt-users
Sun Cobalt and other Linux administration by Zeffie
A Sun Cobalt and Linux Specialist Since 1999
Sun Cobalt Repairs, Development, and Maintenance.
Home of the Worlds Largest Collection of Sun Cobalt Updates!
Sun Cobalt Spam Filter, Security, Firewall, Anti Virus Products.
734-454-9117 US Toll Free 800-231-4459
Copyright 2009 by Electronic Consultants Inc.