install php 4.2.2 with mysql & apache
P. Fawcett
fawcett at bard.edu
Wed Oct 9 11:35:47 EDT 2002
hope i don't sound as confused as i am. not all questions may be
answerable here, but to set the scene:
i've tried to configure (on redhat 7.2) apache 1.3.26 w/ php4.2.2 &
mysql 3.23.51 source tar or .52rpm - whatever i can get to work.
1) if i have php, mysql & perl installed on the sys, do i have to
include them in the other configs. ie configuring php --with-mysql? & in
configuring apache --with-perl. or are these built in lighter
versions? am i right mod's, ie mod_php is just a lighter version of php
& not necessary if i have php 4.2.2 installed? or does that mod_php tie
apache to php?
i...
apache:
configure --enable-module-so
mysql:
configure --enable-assembler --with-innodb
php:
(i'm thinking i don't need --activate-module=src/module/php4/libphp4.a
if not using php_mod, but rather the full php)
configure --with-apxs
--with-ldap
--with-mysql=/usr/local/mysql
php worked if i source compiled mysql 3.23.51 which created
/usr/local/mysql dir.
but mysql would fail after config on: mysqladmin -u root -password
"new-passwd"
err: mysqladmin: connect to server at 'localhost'failed error: 'can't
connect to local mysql server thru socket '/tmp/mysql.sock'(2). check
that mysqld is running & that socket exists. well it wasn't & it didn't
so i reconfig mysql with simplier 3.23.52 rpm, which would run thru the
config ok, create the socket, start the daemon, but would populates
files all over the sys and not create /usr/local/mysql dir, so without
php config --with-mysql (no path) php would fail syntax in the
hpptd.conf:
LoadModule php4_module libexec/libphp4.so - "cannot load
/usr/local/apache/libexec/libphp4.so into server:libmysqlclient.so".
2) do i just eliminate in php config --with-mysql all together? & then
how do the mysql php interact?
More information about the talk
mailing list