View Full Version : HELP ! installed php and httpd won't start !!!
Hi, I've just upgraded my linux 7.1 plesk server to php 4.1.2 with gd , all went well except httpd wouldn't start afterwards :
[root@plesk php-4.1.2]# cp -f /usr/local/src/php-4.1.2/.libs/libphp4.so /usr/local/psa/apache/libexec/
cp: overwrite `/usr/local/psa/apache/libexec/libphp4.so'? y
[root@plesk php-4.1.2]# /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: mmdfdriver
/usr/local/psa/apache/bin/apachectl start: httpd could not be started
[root@plesk php-4.1.2]#
How can I fix this ?
Maybe I shouldn't have let it rewrite libphp4.so ...
Looks as if I have the same problem as mpkadadia... anyone found a solution to this ?
If it helps, here is my configure :
./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
Shyne 03-16-2002, 07:52 PM --with-config-file-path=/usr/local/psa/apache/conf \
Isn't that for php config file and not php?
IF you are installing with APXS, then you don't need to copy and lib files. Just point php where APXS is located.
see here for install instructions for php, I can't understand why it doesn't work ...
http://forum.rackshack.net/showthread.php?s=&threadid=1772&highlight=php+plesk
please help ...!
hoot
Here is the bit that makes me think that it is just about installing something else :
Cannot load /usr/local/psa/apache/libexec/libphp4.so into server: /usr/local/psa/apache/libexec/libphp4.so: undefined symbol: mmdfdriver
what is mmdfdriver ???
When I do this :
rpm -qa |grep imap
it gives of nothing, am I supposed to have imap installed ? if so how?
thanks,
hoot
I'm not 100% sure that imap installed as it should as when I do
rpm -qa |grep imap
I get nothing I did this :
[root@plesk imap-2001a]# make slx
make build EXTRACFLAGS='' EXTRALDFLAGS='' EXTRADRIVERS='mbox' EXTRAAUTHENTICATORS='' PASSWDTYPE=std SSLTYPE=none EXTRASPECIALS='' BUILDTYPE=slx
make[1]: Entering directory `/usr/local/src/imap-2001a'
Rebuilding c-client for slx...
cd c-client;make all CC=`cat CCTYPE` \
CFLAGS="`cat CFLAGS`" `cat SPECIALS`
make[2]: Entering directory `/usr/local/src/imap-2001a/c-client'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/local/src/imap-2001a/c-client'
sh -c 'rm -rf rebuild || true'
Building bundled tools...
cd mtest;make
make[2]: Entering directory `/usr/local/src/imap-2001a/mtest'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/local/src/imap-2001a/mtest'
cd ipopd;make
make[2]: Entering directory `/usr/local/src/imap-2001a/ipopd'
make[2]: Nothing to be done for `ipopd'.
make[2]: Leaving directory `/usr/local/src/imap-2001a/ipopd'
cd imapd;make
make[2]: Entering directory `/usr/local/src/imap-2001a/imapd'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/local/src/imap-2001a/imapd'
make[1]: Leaving directory `/usr/local/src/imap-2001a'
[root@plesk imap-2001a]# rpm -qa |grep imap
[root@plesk imap-2001a]#
is this the cause of my problem?
Please try and help ...
Abu Mami 03-17-2002, 05:51 AM Originally posted by hoot
see here for install instructions for php, I can't understand why it doesn't work ...
http://forum.rackshack.net/showthread.php?s=&threadid=1772&highlight=php+plesk
please help ...!
hoot Hmm. This is an interesting link. I'm not on rackshack, but I imagine that this pretty much applies to my box too (Redhat 7.1 hosted at ACSDatanet).
What I don't understand is the imap thingy. Is this really needed? I'm upgrading from 4.04 to 4.1.2, and from what I can gather, the newer versions of PHP (4.1.x?) DO need imap, whereas the older versions do NOT. Any other differences?
Can anyone help?? I REALLY want to perform this upgrade (for a number of reasons), and I'm afraid I'll trash my box if I do this. Can anyone shed any more light on this?
Thanks!
serve-you 03-17-2002, 06:14 AM This is a plesk machine, imap is needed for webmail (IMP) to work properly.
As someone else stated on the plesk forums, you are not going to see imap when you query the rpm db, because you (should have) compiled it from source. It seems to me that imap is either the incorrect version, or was not compiled correctly.
Edit: Did you miss this step by chance?
Also, copy the IMAP client header and lib files to appropriate places, as described at http://www.php.net/manual/en/ref.imap.php:
cp /usr/local/src/imap-2001a/c-client/c-client.a /usr/lib/libc-client.a
cp /usr/local/src/imap-2001a/src/c-client/mail.h /usr/include
cp /usr/local/src/imap-2001a/src/c-client/rfc822.h /usr/include
cp /usr/local/src/imap-2001a/c-client/linkage.h /usr/include
export LDFLAGS="-L/usr/kerberos/lib -lkrb5 -lgssapi_krb5 -lpam"
-Dan
terrastudios 03-17-2002, 06:38 AM IMAP isnt required for PHP to operate, i think as the poster said above (sorry cant think of your alias, to lazy to click back and look up your name!!) - notices the posts are down the bottom - erm.... serve-you :D said that its going to be only for something youve got installed on the server, such as he said Plesk, i cant confirm this cos we dont use Plesk and Ive never installed it, but our php builds were compiled without imap support and they operate fine!
Good luck
priyadi 03-17-2002, 06:59 AM RedHat 7.1? Try installing package imap-devel-2000c from RedHat 7.2. A lot simpler than having to install it by yourself.
where can I get this package ...
maybe it was ok for php 4.1.0 but not 4.1.2
do I have to uninstall the last version, if so how do you do it? I only know how do uninstall rpm's ...
Thanks for the help
priyadi 03-17-2002, 05:35 PM Originally posted by hoot
where can I get this package ...
maybe it was ok for php 4.1.0 but not 4.1.2
do I have to uninstall the last version, if so how do you do it? I only know how do uninstall rpm's ...
Thanks for the help
http://rpmfind.net.
But on second thought, RedHat 7.1 seems to provide the same package, you might want to install it instead one from 7.2.
bombino 03-17-2002, 05:49 PM It seems that gcc is finding the wrong "linkage.h" when compiling PHP with IMAP support.
Either you didn't do the second half of Step 3 (as stated above), or you have extra copies of linkage.h lying around. If you DID perform the seconf half of Step 3, try searching for deleting any file you have called "linkage.h" and then redo the whole process from the beginning.
That should fix it up. :D
|