[Typo3-debian] Re: Typo3-debian digest, Vol 1 #74 - 9 msgs

Mika Karvonen mika.karvonen at neuroagent.com
Wed Sep 3 13:06:13 CEST 2003


Hi folks,

I had similar problems with gdlib.
Problem was in php.ini file where the 
extension_dir and include_dir pointed by default to directories
which does not exists!

Another problem was, the gd.so file, what was installed totally
different directory than php required. Copying the gd.so and other
needed files to directory " /usr/local/lib/php/extensions/" helped.

By default, the file gd.so is copied totally different place and cannot work.

I'm using the debian 3.0. with php 4.3.2. and apache 2. 
(php4-gd2_4.3.2+rc3 and freetype 2)

Br, Mika

----- Original Message ----- 
From: <typo3-debian-request at lists.netfielders.de>
To: <typo3-debian at lists.netfielders.de>
Sent: Wednesday, September 03, 2003 8:35 AM
Subject: Typo3-debian digest, Vol 1 #74 - 9 msgs


> Send Typo3-debian mailing list submissions to
> typo3-debian at lists.netfielders.de
> 
> To subscribe or unsubscribe via the World Wide Web, visit
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-debian
> or, via email, send a message with subject or body 'help' to
> typo3-debian-request at lists.netfielders.de
> 
> You can reach the person managing the list at
> typo3-debian-admin at lists.netfielders.de
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Typo3-debian digest..."
> 
> 
> Today's Topics:
> 
>    1. Re: MySQL connection error while trying to install TYPO3 (Jordan van Bergen)
>    2. Re: MySQL connection error while trying to install TYPO3 (Quentin Dewhurst)
>    3. Re: MySQL connection error while trying to install TYPO3 (Jordan van Bergen)
>    4. Re: MySQL connection error while trying to install TYPO3 (Quentin Dewhurst)
>    5. php4-gd2 + testing/unstable DEBIAN version (Jordan van Bergen)
>    6. Re: MySQL connection error while trying to install TYPO3 (Edelhard Becker)
>    7. Re: sid gdlib :  other "solution" (Jordan van Bergen)
>    8. Re: MySQL connection error while trying to install TYPO3 (Michael Stucki)
>    9. Re: MySQL connection error while trying to install TYPO3 (Michael Stucki)
> 
> --__--__--
> 
> Message: 1
> From: "Jordan van Bergen" <jordanvanbergen at hotmail.com>
> Subject: Re: [Typo3-debian] MySQL connection error while trying to install TYPO3
> Date: Tue, 2 Sep 2003 12:35:43 +0200
> To: typo3-debian at lists.netfielders.de
> Reply-To: typo3-debian at lists.netfielders.de
> 
> Hi Michael / All,
> 
> > apt-get install php4-gd2
> > (Should be installed already!)
> > Then go ahead and scroll down to the end of your php.ini.
> > The relevant line must look like this:
> > extension=gd.so
> > If there is a semicolon in front of it (which comments the line out) you
> > need to remove this.
> > Then you restart Apache and try again.
> 
> This helped on my testing server environment. I'm now ready to put the
> website live on the production server. I'm not a 100% linux debian guru so I
> was happy to see that the apt-get install typo3-env didn't screw up the
> running system. It installed over 59 Mb's of data/libraries and everything
> went okay....
> 
> Now for the problem:
> 
> As described above I had the same problems again with GDlib v2.0. It's
> perfectly installed. I added the line
> extension=gd.so in my php.ini and restarted apache. This goes okay, but when
> I enter phpinfo(); I don't see a GD entry. So I think GD is not started
> or???
> 
> When I go to typo3, login as admin and try to make a new page I get the
> following error message on the live (to be) production server:
> Fatal error: Call to undefined function: imagecreatefrompng() in
> /var/lib/typo3/typo3_src-3.5.0/t3lib/class.t3lib_iconworks.php on line 241
> 
> I assume this has to do with the GDlib v2.0 that's not started correctly? Am
> I wrong or correct? If I'm correct how do I get the gdlib v2.0 to be
> correctly started?
> 
> I have the following in php.ini:
> extension=gd.so
> 
> If I look where this file is on the webserver I see the following, locate
> gd.so:
> 
> /usr/lib/libgd.so.1
> /usr/lib/libgd.so.1.8.4
> /usr/lib/libgd.so.2
> /usr/lib/libgd.so.2.0.1
> /usr/lib/php4/20020429/gd.so
> 
> Is this correct???? On my testserver it looks the same and the gd.so are
> equal in filesize.
> 
> Any help is appreciated.
> 
> Regards
> 
> Jordan van Bergen
> jordanvanbergen at hotmail.com
> 
> 
> 
> --__--__--
> 
> Message: 2
> From: "Quentin Dewhurst" <quentin at gest8.com>
> To: <typo3-debian at lists.netfielders.de>
> Subject: Re: [Typo3-debian] MySQL connection error while trying to install TYPO3
> Date: Tue, 2 Sep 2003 12:48:00 +0100
> Reply-To: typo3-debian at lists.netfielders.de
> 
> You may be on unstable or test. not woody-stable. check where 'apt' is
> getting its package lists from. seems typo3 has problems with libgd on an
> unstable install [or vice versa]. not saying this is definately your issue
> but i reckognise your errors - had a similar problem.  if you are on
> unstable you have to do a complete rollback to stable [woody], which will no
> doubt flag up other problems in your system afterwards, so good luck.
> 
> and to anyone thats helped me: guys i fixed all probs, runs nice thanks, I'm
> most pleased.
> 
> Cheers, Q
> 
> 
> ----- Original Message -----
> From: "Jordan van Bergen" <jordanvanbergen at hotmail.com>
> Newsgroups: typo3.install.debian
> To: <typo3-debian at lists.netfielders.de>
> Sent: Tuesday, September 02, 2003 11:35 AM
> Subject: Re: [Typo3-debian] MySQL connection error while trying to install
> TYPO3
> 
> 
> > Hi Michael / All,
> >
> > > apt-get install php4-gd2
> > > (Should be installed already!)
> > > Then go ahead and scroll down to the end of your php.ini.
> > > The relevant line must look like this:
> > > extension=gd.so
> > > If there is a semicolon in front of it (which comments the line out) you
> > > need to remove this.
> > > Then you restart Apache and try again.
> >
> > This helped on my testing server environment. I'm now ready to put the
> > website live on the production server. I'm not a 100% linux debian guru so
> I
> > was happy to see that the apt-get install typo3-env didn't screw up the
> > running system. It installed over 59 Mb's of data/libraries and everything
> > went okay....
> >
> > Now for the problem:
> >
> > As described above I had the same problems again with GDlib v2.0. It's
> > perfectly installed. I added the line
> > extension=gd.so in my php.ini and restarted apache. This goes okay, but
> when
> > I enter phpinfo(); I don't see a GD entry. So I think GD is not started
> > or???
> >
> > When I go to typo3, login as admin and try to make a new page I get the
> > following error message on the live (to be) production server:
> > Fatal error: Call to undefined function: imagecreatefrompng() in
> > /var/lib/typo3/typo3_src-3.5.0/t3lib/class.t3lib_iconworks.php on line 241
> >
> > I assume this has to do with the GDlib v2.0 that's not started correctly?
> Am
> > I wrong or correct? If I'm correct how do I get the gdlib v2.0 to be
> > correctly started?
> >
> > I have the following in php.ini:
> > extension=gd.so
> >
> > If I look where this file is on the webserver I see the following, locate
> > gd.so:
> >
> > /usr/lib/libgd.so.1
> > /usr/lib/libgd.so.1.8.4
> > /usr/lib/libgd.so.2
> > /usr/lib/libgd.so.2.0.1
> > /usr/lib/php4/20020429/gd.so
> >
> > Is this correct???? On my testserver it looks the same and the gd.so are
> > equal in filesize.
> >
> > Any help is appreciated.
> >
> > Regards
> >
> > Jordan van Bergen
> > jordanvanbergen at hotmail.com
> >
> >
> > _______________________________________________
> > Typo3-debian mailing list
> > Typo3-debian at lists.netfielders.de
> > http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-debian
> >
> 
> 
> 
> --__--__--
> 
> Message: 3
> From: "Jordan van Bergen" <jordanvanbergen at hotmail.com>
> Subject: Re: [Typo3-debian] MySQL connection error while trying to install TYPO3
> Date: Tue, 2 Sep 2003 14:16:16 +0200
> To: typo3-debian at lists.netfielders.de
> Reply-To: typo3-debian at lists.netfielders.de
> 
> Hi Quentin / All,
> 
> > You may be on unstable or test. not woody-stable. check where 'apt' is
> > getting its package lists from. seems typo3 has problems with libgd on an
> > unstable install [or vice versa]. not saying this is definately your issue
> > but i reckognise your errors - had a similar problem.  if you are on
> > unstable you have to do a complete rollback to stable [woody], which will
> no
> > doubt flag up other problems in your system afterwards, so good luck.
> 
> /etc/debian_version
> testing/unstable
> 
> SHIT! ;-) LOL. So this is why I have the problems I mentioned before. Nobody
> got GD2 working on a testing/unstable version? And how do I rollback to GD1
> on an testing/unstable version as I'm not going to perform a full rollback
> on the production server with more than 10 websites using different setups
> (MySQL, postgrep, posix etc etc). If I get GD1 working okay do I have to
> change something to Typo3 to make use of GD1?
> 
> > and to anyone thats helped me: guys i fixed all probs, runs nice thanks,
> I'm
> > most pleased.
> 
> I'm pleased everyone is taking the time to answer all the questions people
> are having about linux/typo3. So Quentin thanks to you too! now I know what
> is causing my problems. I'm going to look into this to see if I'm able to
> get GD2 on the testing/unstable version running. If I'm able to do this I
> will let you all know. If you all say don't do it as it just won't then tell
> me please as i'm going to put some effort and TIME in it........
> 
> Regards
> Jordan van Bergen
> jordanvanbergen at hotmail.com
> 
> 
> 
> --__--__--
> 
> Message: 4
> From: "Quentin Dewhurst" <quentin at gest8.com>
> To: <typo3-debian at lists.netfielders.de>
> Subject: Re: [Typo3-debian] MySQL connection error while trying to install TYPO3
> Date: Tue, 2 Sep 2003 13:25:49 +0100
> Reply-To: typo3-debian at lists.netfielders.de
> 
> I am afraid I had to do a full rollback, i didnt seem to be able to rollback
> just certain packages.. however with a bit more digging than i did on apt
> and how it works you may be able to suss a way out of this.  perhaps just
> rolling back PHP to stable would probably do it in retrospect.  make sure
> you remove all the unstable versions of libGD etc.. and you may be lucky..
> gotta admit that this only occurred to me after doing a complete system
> rollback myself [doh].
> 
> Cheers, Q.
> ----- Original Message -----
> From: "Jordan van Bergen" <jordanvanbergen at hotmail.com>
> Newsgroups: typo3.install.debian
> To: <typo3-debian at lists.netfielders.de>
> Sent: Tuesday, September 02, 2003 1:16 PM
> Subject: Re: [Typo3-debian] MySQL connection error while trying to install
> TYPO3
> 
> 
> > Hi Quentin / All,
> >
> > > You may be on unstable or test. not woody-stable. check where 'apt' is
> > > getting its package lists from. seems typo3 has problems with libgd on
> an
> > > unstable install [or vice versa]. not saying this is definately your
> issue
> > > but i reckognise your errors - had a similar problem.  if you are on
> > > unstable you have to do a complete rollback to stable [woody], which
> will
> > no
> > > doubt flag up other problems in your system afterwards, so good luck.
> >
> > /etc/debian_version
> > testing/unstable
> >
> > SHIT! ;-) LOL. So this is why I have the problems I mentioned before.
> Nobody
> > got GD2 working on a testing/unstable version? And how do I rollback to
> GD1
> > on an testing/unstable version as I'm not going to perform a full rollback
> > on the production server with more than 10 websites using different setups
> > (MySQL, postgrep, posix etc etc). If I get GD1 working okay do I have to
> > change something to Typo3 to make use of GD1?
> >
> > > and to anyone thats helped me: guys i fixed all probs, runs nice thanks,
> > I'm
> > > most pleased.
> >
> > I'm pleased everyone is taking the time to answer all the questions people
> > are having about linux/typo3. So Quentin thanks to you too! now I know
> what
> > is causing my problems. I'm going to look into this to see if I'm able to
> > get GD2 on the testing/unstable version running. If I'm able to do this I
> > will let you all know. If you all say don't do it as it just won't then
> tell
> > me please as i'm going to put some effort and TIME in it........
> >
> > Regards
> > Jordan van Bergen
> > jordanvanbergen at hotmail.com
> >
> >
> > _______________________________________________
> > Typo3-debian mailing list
> > Typo3-debian at lists.netfielders.de
> > http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-debian
> >
> 
> 
> 
> --__--__--
> 
> Message: 5
> From: "Jordan van Bergen" <jordanvanbergen at hotmail.com>
> Subject: [Typo3-debian] php4-gd2 + testing/unstable DEBIAN version
> Date: Tue, 2 Sep 2003 14:58:14 +0200
> To: typo3-debian at lists.netfielders.de
> Reply-To: typo3-debian at lists.netfielders.de
> 
> Hi All,
> 
> As I now know php4-gd2 isn't working on a testing/unstable Debian version.
> I'm trying to see if I can make this php4-gd2 work on a testing/unstable
> version. I first checked the version of php4-gd2 I have installed on my
> machine. If someone is interested are you willing to take a look with me to
> see if we can get php4-gd2 support under testing/unstable version of Debian?
> 
> dpkg -s php4-gd2
> --------------------
> Package: php4-gd2
> Status: install ok installed
> Priority: extra
> Section: web
> Installed-Size: 160
> Maintainer: Adam Conrad <adconrad at 0c3.net>
> Version: 3:4.3.2+rc3-1
> Replaces: php4-gd
> Provides: php4-gd
> Depends: libc6 (>= 2.3.2-1), libfreetype6 (>= 2.1.4-1), libgd2-xpm (>=
> 2.0.15), libjpeg62, libpng12-0 (>= 1.2.5.0-4), t1lib1, xlibs (>> 4.1.0),
> zlib1g (>= 1:1.1.4), zendapi-20020429, debconf (>= 0.5)
> Conflicts: php4-gd
> Description: GD module (with GD2) for php4
>  This package provides a module for handling graphics directly from PHP
>  scripts. It supports the PNG, JPEG, XPM and ttf fonts. It is compiled with
>  libgd2, so it has more functions, but it may happen, that what worked with
>  php4-gd will not or will have strange results. This will be hopefuly fixed
>  with newer libgd2.
>  .
>  PHP4 is an HTML-embedded scripting language. Much of its syntax is borrowed
>  from C, Java and Perl with a couple of unique PHP-specific features thrown
>  in. The goal of the language is to allow web developers to write
>  dynamically generated pages quickly.
> 
> So this is the version I have installed on my machine. Is it possible to
> install another version number of php4-gd2 under Debian? Perhaps with an
> older version it's possible to get php4-gd2 working. This is not typo3
> related I guess so let me know if this is okay to post this in this
> newsgroup. For sure if we see a GD entry if we enter phpinfo(); it will work
> for TYPO3 as well. Now I have installed php4-gd2 and it's perfectly
> installed, added the extension=gd.so to /etc/php4/apache/php.ini and
> restarted apache but phpinfo(); won't show the GD entry in the tables.
> 
> So let's see if we can get this baby to run on testing/unstable Debain
> version.
> 
> Regards
> 
> Jordan van Bergen
> jordanvanbergen at hotmail.com
> 
> 
> 
> 
> 
> --__--__--
> 
> Message: 6
> Date: Tue, 2 Sep 2003 15:19:18 +0200
> From: Edelhard Becker <typo3 at edelhard.de>
> To: typo3-debian at lists.netfielders.de
> Subject: Re: [Typo3-debian] MySQL connection error while trying to install TYPO3
> Reply-To: typo3-debian at lists.netfielders.de
> 
> Hi,
> 
> On Tue, Sep 02, 2003 at 02:16:16PM +0200, Jordan van Bergen wrote:
> > /etc/debian_version
> > testing/unstable
> 
> same here ...
> 
> > Nobody got GD2 working on a testing/unstable version?
> 
> ... but without problems, e.g. the libgd tests from the install tool
> run fine, _but_ on my system (sid release, almost daily updated)
> phpinfo() returns a "gd" section version 2, with freetype, jpg etc. So
> here are (all?) the relevant packages. Maybe you have a mix with some
> older versions? Maybe it helps to do an upgrade (but beware: this
> morning was a new php4 package on our mirror which broke the php4-gd2
> dependency, so i omitted it from the update.
> 
>   dpkg -l '*apache*' | grep '^ii '
>   ii  apache         1.3.27.1-2     Versatile, high-performance HTTP server
>   ii  apache-common  1.3.27.1-2     Support files for all Apache webservers
>   ii  apache-doc     1.3.27.1-2     Apache webserver docs
>   ii  libapache-mod- 4.1.5          Apache module for MySQL authentication
>   ii  libapache-mod- 1.27-6         Integration of perl with the Apache web serv
> 
>   dpkg -l '*php*' | grep '^ii '
>   ii  htcheck-php    1.2.1-1        Simple php interface to database generated b
>   ii  libphp-adodb   3.72-2         The 'adodb' database abstraction layer for p
>   ii  libphp-phplot  4.4.6-2        The graphic library for php.
>   ii  php4           4.3.2+rc3-4    A server-side, HTML-embedded scripting langu
>   ii  php4-cgi       4.3.2+rc3-6    A server-side, HTML-embedded scripting langu
>   ii  php4-gd2       4.3.2+rc3-1    GD module (with GD2) for php4
>   ii  php4-imagick   0.9.6-1        ImageMagick module for php4
>   ii  php4-imap      4.3.2+rc3-6    IMAP module for php4
>   ii  php4-ldap      4.3.2+rc3-6    LDAP module for php4
>   ii  php4-mysql     4.3.2+rc3-6    MySQL module for php4
>   ii  php4-odbc      4.3.2+rc3-6    ODBC module for php4
>   ii  php4-pear      4.3.2+rc3-6    PEAR - PHP Extension and Application Reposit
>   ii  php4-rrdtool   1.04-1         RRD module for php4
>   ii  phpdoc         20030716-1     Documentation for PHP4 and PHP3
>   ii  phpmyadmin     2.5.2-pl1-1    A set of PHP-scripts to administrate MySQL o
> 
>   dpkg -l '*gd*' | grep '^ii ' [edited]
>   ii  libgd-gd1-perl 1.41-12        Perl module wrapper for libgd (old version a
>   ii  libgd-gif1     1.3-4          GD Graphics Library with gif support
>   ii  libgd-graph-pe 1.43-1         Graph Plotting Module for Perl 5
>   ii  libgd-graph3d- 0.63-2         Create 3D Graphs with GD and GD::Graph
>   ii  libgd-text-per 0.86-1         Text utilities for use with GD
>   ii  libgd-tools    2.0.15-1       GD command line tools and example code
>   ii  libgd1-xpm     1.8.4-34       GD Graphics Library (old version)
>   ii  libgd2-xpm     2.0.15-1       GD Graphics Library version 2
>   ii  php4-gd2       4.3.2+rc3-1    GD module (with GD2) for php4
> 
>   dpkg -l '*typo3*' | grep '^ii '
>   ii  typo3-base     3.5.0-5        Powerful content management framework
>   ii  typo3-env      3.5.0-5        Powerful content management framework
>   ii  typo3-site-ins 3.5.0-5        Powerful content management framework - Inst
> 
> -- 
> ~
> ~
> :wq
> 
> 
> --__--__--
> 
> Message: 7
> From: "Jordan van Bergen" <jordanvanbergen at hotmail.com>
> Subject: Re: [Typo3-debian] sid gdlib :  other "solution"
> Date: Tue, 2 Sep 2003 15:23:36 +0200
> To: typo3-debian at lists.netfielders.de
> Reply-To: typo3-debian at lists.netfielders.de
> 
> Hi Luite,
> 
> > The simple solution seems to be: "downgrade" to php-gd instead (old gd 1,
> > that is). Is a good working solution untill the lib gets fixed. Remember
> > to change some options in localconf.php.
> 
> Okay what options should be changed in localconf.php to make use of php-gd
> instead of php-gd2?
> 
> Regards
> 
> Jordan van Bergen
> jordanvanbergen at hotmail.com
> 
> 
> 
> --__--__--
> 
> Message: 8
> From: Michael Stucki <mundaun at gmx.ch>
> Subject: Re: [Typo3-debian] MySQL connection error while trying to install TYPO3
> Date: Tue, 02 Sep 2003 21:21:09 +0200
> To: typo3-debian at lists.netfielders.de
> Reply-To: typo3-debian at lists.netfielders.de
> 
> Dear Edelhard,
> 
> >> /etc/debian_version
> >> testing/unstable
> 
> > same here ...
> 
> >> Nobody got GD2 working on a testing/unstable version?
> 
> > ... but without problems, e.g. the libgd tests from the install tool
> > run fine, _but_ on my system (sid release, almost daily updated)
> > phpinfo() returns a "gd" section version 2, with freetype, jpg etc. So
> > here are (all?) the relevant packages.
> 
> So can we say that TYPO3 will run on Woody and Sid (at least now) but still
> not on Sarge?
> 
> Regards - michael
> -- 
> Want support? Please read the list rules first: http://typo3.org/1438.0.html
> 
> --__--__--
> 
> Message: 9
> From: Michael Stucki <mundaun at gmx.ch>
> Subject: Re: [Typo3-debian] MySQL connection error while trying to install TYPO3
> Date: Tue, 02 Sep 2003 21:21:21 +0200
> To: typo3-debian at lists.netfielders.de
> Reply-To: typo3-debian at lists.netfielders.de
> 
> Dear Jordan,
> 
> > /etc/debian_version
> > testing/unstable
> 
> Are you really talking of a productive server?! In my opinion, running
> anything else than "stable" (=Woody) is a bad idea.
> 
> Cheers - michael
> -- 
> Want support? Please read the list rules first: http://typo3.org/1438.0.html
> 
> 
> --__--__--
> 
> _______________________________________________
> Typo3-debian mailing list
> Typo3-debian at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-debian
> 
> 
> End of Typo3-debian Digest




More information about the TYPO3-debian mailing list