Forum Moderators: coopster
i downloaded and installed the newest mysql rpms (4.0.16) which work perfectly with php 4.1.2.rpm as long as the mysql-shared-compat library in installed.
then i
1) uploaded php-4.3.3 to /tmp
2) uninstalled the php-4.1.2 and php-mysql rpms
3) cd /tmp, tar -zxvf php-4.3.3, ./configure, make and make install with no errors. great ;)
4) then copy php.ini-dist to /etc/php.ini
5) restart apache...
but
a) none of my php pages can be displayed. i get a 401 not authorised header and a "page cannot be displayed" message
b) i also get a Fatal error: Call to undefined function: mysql_connect() when i try to connect to mysql.
in apache/log i get lots of
[notice] child pid 14052 exit signal Segmentation fault (11)
i have browsed and browsed but can not find anything on the web to help me.
i am sure it has something to do with the locations of libphp4 and or mysql.so and the extension directory, because the rpms install things in different places than a 'compile from source' version.
can anyone help?
many thanks
p.s. in the meantime i have deleted the /tmp/php-4.3.3 directory and reinstalled the php and php-mysql rpms with up2date and everything works again ;-)
(*note to self - don't experiment on a live server ;-)
I've found that RedHat tends to get a little... hmmm, how should I say? "Messed up" when you start installing programs from source, and others from rpms.
I'd install everything from source...
install Mysql from source,
install Apache, openssl (might need to do openssh as well), mod_ssl (or whatever), and php... all from source...
That's what we ended up doing after major frustrations with getting php source with Apache RPMs working nicely together, etc etc...
All your paths and configs will be in different places in the default ./configure, but you can change the paths in it (ex: prefix=/usr/local or prefix=/this/is/where/I/Like/Apache)
What we have with our multiple machines, is a bash script that does all the configure, make and make install, in the proper order, for all of the above (minus mysql), and works like a charm.
Other than that, I don't know what to recommend other than installing FreeBSD. ;)
HTH,
MattyMoose
>> I've found that RedHat tends to get a little... hmmm, how should I say? "Messed up"
yes i am sure that is what is happening. this is what happened when i originally installed the system 6 months ago. i finally got everything to work by installing the bog standard rpms.
installing everything from source is a no-go, as we run lots of virtual servers, and i can't risk the downtime. i suppose i could play around with the configure options to look for the correct paths? or simply leave as is?
cheers for feedback anyway ;-)