Help - Search - Members - Calendar
Full Version: php 4.1.2 + plesk 2.5 + impap problems :/
The Planet Forums > Control Panels > Plesk
rhordern
Hi I had actually given up but now I have decided to give it another go.
I had plesk vs 2.1 and I updated to 2.5, all went fine.
Now I have got php 4.1.0 installed by default without things like gb support but I need these.
So I followed instructions taken from this forum and from forum.rackshack.net
at http://forum.rackshack.net/showthre...2&highlight=php
but at that time I also found instructions for configuring php with gd and installing Gd,
I did everything to the letter except replaced php 4.1.0 by php 4.1.2 but when I restarted apache I got an error with phplib.so

I searched for quite a bit and I was told that it was probably an imap problem and that my imap version wasn't recent enough.
I did it with imap-2001a using the instructions on the rackshack post.
So in the end I rapleaced the phplib.so whith the backup I had made and gave up.

I am not the only one with this problem and it seems that alot of people have had the same problems.
One person said that he had to change imap version but his versions were both installed with rpm and as the instructions installed it from source, I'm not sure what to do. He did not even give a link to where to download it.
I would be very greatful if someone could try and help me get going again and get php working with gd support.
Also how do I install zlib and configure it with php too?

You can see my current php info at http://www.philipsantiques.com/php

I'm on a linux 7.1 with plesk 2.5
4web-space
The how-to is here:
http://forum.plesk.com/showthread.php?s=&threadid=1166

To compile in the GD library and mcrypt here is an add-on to the above how-to.

http://forum.plesk.com/showthread.php?s=&threadid=2177

The configure line in the link above has a space at the end of the second line. So if oyur copying and pasting make sure u paste into notepad and remove it first else it wont work

Thanks

Robbie
rhordern
Thanks !!!! I will try again tomorrow, but my problem seemed to be cause by imap, but it won't harm to try and see if I can get it to work,

Richard
4web-space
Ive used it about 10 times on my plesk boxes and not had a problem yet!

=)

Robbie
rhordern
Well I hope that it works, I'll try tomorrow but also what exactly is zlib, how do I install it and configure it with php too ...

Richard
rhordern
I've just done a whereis zlib and it seems to be installed as I get :
zlib: /usr/include/zlib.h /usr/share/man/man3/zlib.gz to I just have to add :
--with-zlib=/usr/include/
or something ??? any ideas on or raq we have got:
'./configure' '--prefix=/usr' '--with-apxs=/usr/sbin/apxs' '--with-gd' '--with-gettext=/usr' '--enable-safe-mode' '--with-config-file-path=/etc/httpd' '--with-exec-dir=/usr/bin' '--with-zlib' '--enable-magic-quotes' '--with-regex=system' '--with-ttf=/usr/lib/libttf.so' '--enable-track-vars' '--enable-xml' '--disable-debug' '--with-libdir=/usr/lib' '--with-db3' '--with-interbase=shared' '--with-mysql=shared' '--with-pgsql=shared' '--with-ldap' '--with-imap'

and I want my plesk server to have the same features ...
rhordern
HI I have just done athis :
[root@plesk /root]# rpm -qa | grep zlib
zlib-devel-1.1.3-25.7
zlib-1.1.3-25.7

Seems that I have zlib installed
When I do whereis zlib I get
[root@plesk /root]# whereis zlib
zlib: /usr/include/zlib.h /usr/share/man/man3/zlib.3.gz

So what do I add to the php config to get php to work with zlib ?
I know my cobalt server has this and as I'm just about to have another go installing php I would like my plesk server to have this too ...

Any ideas ???
rhordern
I have just tried to install php, here is the config I used :
./configure --with-apxs=/usr/local/psa/apache/bin/apxs
--prefix=/usr/local/psa/apache --with-system-regex
--with-config-file-path=/usr/local/psa/apache/conf
--disable-debug --enable-sockets --without-pear
--enable-track-vars --with-gd=/usr --with-jpeg-dir=/usr/lib
--with-png-dir=/usr/lib --with-zlib-dir=/usr/include
--with-mysql=/usr/local/psa/mysql --with-iodbc=/usr/lib/libiodbc
--with-mcrypt=/usr/local/lib --with-imap=/usr/local/src/imap-2001a --with-zlib

But When I try to restart apache I get :

/usr/local/psa/apache/bin/apachectl start
Syntax error on line 247 of /usr/local/psa/apache/conf/httpd.conf:
Cannot load /usr/local/psa/apache/libexec/libphp4.so into server: /usr/local/psa
/apache/libexec/libphp4.so: undefined symbol: gdImagePngCtx
/usr/local/psa/apache/bin/apachectl start: httpd could not be started

What have I done wrong, I know that I installed everying suggested and didn't forget anything !

Richard
nat
Ok. I'm going to try to upgrade my php installation. Did you get this fixed and if so what was the problem?
rhordern
no still waiting for an answer but just by restoring my php4lib.so + the httpd.conf I got it working as is was before so as far as I can see there is no real danger of doing so so long as you make the 2 backups !

Richard

I would be greatfull if someone could help me a bit though ... I am quite desperate to get the gd working !
greyboy
Well, what is on line 247 of httpd.conf?

I upgraded to PHP 4.2.1 with GD 1.8.3 and PEAR this past Friday and everything went fine. Here is my configure statement:

./configure --with-apxs=/usr/local/psa/apache/bin/apxs
--prefix=/usr/local/psa/apache
--with-system-regex
--with-config-file-path=/usr/local/psa/apache/conf
--disable-debug
--enable-pear
--enable-sockets
--enable-track-vars
--with-gd=/usr
--with-jpeg-dir=/usr/lib
--with-png-dir=/usr/lib
--with-zlib-dir=/usr/include
--with-mysql=/usr/local/psa/mysql
--with-iodbc=/usr/lib
--with-imap=/usr/local/src/imap-2001a
rhordern
the problemp is not the reeor on the httpd.conf but this :
"Cannot load /usr/local/psa/apache/libexec/libphp4.so"
But I will try angain with your config (except pear). How did you install gd?
greyboy
Well, all my GD (1.8.3) stuff is located in /usr/lib and my config statement is identical to yours with respect to GD. In /usr/lib I have:

GD:
libgd.a libgd.so libgd.so.1 libgd.so.1.8 libgd.so.1.8.3

libjpeg:
libjpeg.a libjpeg.la libjpeg.so libjpeg.so.62 libjpeg.so.62.0.0

libpng:
libpng.a libpng.so libpng.so.2 libpng.so.2.1.0.9

I don't exactly know what is causing yours to fail. I would probably just go into your php source directory, make clean, rm config.cache, make sure all your versions for GD (libjpeg-6b/libpng/zlib) are good, and then re-configure, re-make and re-install your php build (with backups, of course).

Good luck
rhordern
could be this I did not do the make clean bit so I hope it is this !
Thanks I will give it a go now !

Richard
rhordern
what is pear? is is already installed by default? or should I just remove that line from your config and just do it without pear?

Richard
rhordern
Hi, thanks for your help. I think that it could have been a problem with imap too ... I did a make clean in the imap folder and in the php one and installed php version 4.2.1 instead of 4.1.2
and apache starts now !!!! it's great ! and the phpinfo also comes up fine so I guess that it is now installed and working !!

Richard
4web-space
Is PHP4.2.1 a good build? I heard that 4.2.0 had a lot of problems so have been waiting till another decent version is released

Thanks

Robbie
rhordern
dunno, hope it is ... Anyway they have fixed all the major bugs that php 2.0 had !
greyboy
I don't know how well 4.2.1 is, but I've been keeping my eye on things and I'll let you know if I run into any problems. So far what little testing I have done on the new install has been really good. Of course, we all know that doesn't represent the Real World ™.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.