[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-developers] PHP3 on RaQ3 install not so easy (missinglib's again)



Hi all,

my last problem (i hope) is this:

The PHP seems to work correctly, but it doesn't work with mysql.
an error is like this: "Warning: MySQL Connection Failed: Can't connect to MySQL server on ..."

If i execute the command in a web file php.php3
<?php phpinfo() ?>

the php is correctly interpreted, but i obtain the results about MySQL:

###################################################
Allow persistent links:   Yes
Persistent links: 0/Unlimited
Total links: 0/Unlimited
Client API version: 3.22.30
Compilation definitions:
    MYSQL_INCLUDE=
    MYSQL_LFLAGS=
    MYSQL_LIBS=
###################################################

Nothing specified on MYSQL includes!

on a raq2  all is completed like this:

####################################
Allow persistent links: Yes
Persistent links: 0/Unlimited
Total links: 0/Unlimited
Client API version: 3.22.21
Compilation definitions:
    MYSQL_INCLUDE=-I/usr/include/mysql
    MYSQL_LFLAGS=-L'/usr/lib/mysql'
    -L/usr/lib/mysql
    MYSQL_LIBS=-lmysqlclient
####################################

So i think there is something else to modify...

Do you know what?

thanks.

Marco

Atlantis Development Department wrote:

Brett,
thanks for the reply, i resume my installation procedure.

To install PHP-MYSQL on the COBALT RAQ3 i follow these steps:

1) Downloaded all files from ftp://ftp.cobaltnet.com/pub/experimental/raq3/
2) Executed theese commands:

from the files directory:

rpm -i freetype-1.2-7.i386.rpm
rpm -i freetype-devel-1.2-7.i386.rpm
rpm -i freetype-utils-1.2-7.i386.rpm
rpm -i gd-1.3-5.i386.rpm
rpm -i gd-devel-1.3-5.i386.rpm

rpm -i mod_php3-3.0.7-4.i386.rpm
rpm -i php-3.0.14-2.i386.rpm
rpm -i php-manual-3.0.14-2.i386.rpm
rpm -i php-mysql-3.0.14-2.i386.rpm
rpm -i php-pgsql-3.0.14-2.i386.rpm

all correctly installed...
3) Then i modified the file httpd.conf and srm.conf like this:

The file httpd.conf modified to activate php module:

was
LoadModule php3_module         modules/libphp3.so
but the proper path is
LoadModule php3_module        /usr/lib/apache/libphp3.so

The file srm.conf modified to activate php module:

added to the srm.conf the index.php3 in the DirectoryIndex line

4) Finally, i've stopped and restarted the httpd, it starts, but no php3 script is executed...

There is some other configuration file to modify?

Marco

bb2 wrote:

When I installed as per these instructions, I also found that not only was
php not running, but apache failed to restart as well.  I checked the line
which activates the php module in /etc/httpd/conf/httpd.conf and found it
was this:

LoadModule php3_module         modules/libphp3.so

but the proper path is

LoadModule php3_module        /usr/lib/apache/libphp3.so

Hope this helps...

Brett Barron
Kaleidoscope