G'day Jason,
Here's what I've just done to Install Apache->Php3->mySQL on
Red Hat 6.0 (kernel 2.2.2-15 and kernel 2.2.2-22) as an Apache module
Apache:
==========
- Installed "out of the box". no need to recompile
mySQL:
==========
- get the mySQL BINARY tar package (mysql-3.22.27.tar.gz)
- remove previous mySQL rpm's (server and client)
- copy the tar file to /usr/local/
- cd to /usr/local/
- unpack the tar (# tar -zxvf mysql-3.22.27.tar.gz)
- make a link to mysql-3.22.27 (# ln S mysql-3.22.27 mysql)
[please check syntax]
- setup mySQL startup and passwords as per included instructions
(can do this step later - all we need for now is mysql.h
and friends)
PHP3:
==========
- get php3 SOURCE tar file (php-3.0.11.tar.gz)
- copy the tar file to /tmp/
- unpack the tar (# tar -zxvf php-3.0.11.tar.gz)
- cd into the php dir (# cd php-3.0.11)
- configure the php source (I copy and paste the following)
./configure \
--with-apxs=/usr/sbin/apxs \
--with-config-file-path=/etc/httpd \
--with-mysql=/usr/local/mysql \
--enable-safe-mode \
-enable-track-vars
- make (# make )
- stop Apache (# /etc/rc.d/init.d/httpd stop) [OK]
- install php modules (# make install)
- uncomment the php LoadModules and ActivateModules lines
in /etc/httpd/conf/httpd.conf (or was it in srm.conf ?)
- uncomment the php mime types in /etc/httpd/conf/httpd.conf (or was
it in srm.conf ?)
- create a test file in the Apache document root
dir (home/httpd/html/test.php3) [<? phpinfo(); ?>]
- restart Apache (# /etc/rc.d/init.d/httpd start) [OK]
- test the installation
($ lynx http://localhost/test.php3 should have a
section saying that mySQL is installed)
Well thats the easy part.The hard part is patching the bug(s)
(regular expressions in php-3.0.11), but thats another
story I'm going to need some help with later :)
Please note: I've put the above instructions down maily from
memory, as most of my notes are at work. Let me know if
you have trouble
Regards
John
On Wed, 19 Jan 2000 23:40:43 -0800, "Jason Ahmad"
>Hi,
>I'm setting up a linux webserver and am having some issues with MySQL and
>PHP3. The machine is running Redhat 6.1 with the stock installs of apache
>and php3. These two work fine together and were pretty painless to setup. So
>I grabbed the latest MySQL (3.22) rpm and installed that. The server and
>client both work great. Now the only catch is making it all work together.
>It appears that PHP doesn't have the MySQL extension installed, although
>php3.ini has a section with MySQL settings (it came that way - along with
>settings for mSQL and postgres and a few others i think). Anyway, if anyone
>could drop me a line about how to make this all work together, that'd be
>great.
>Thanks,
>Jason
>PS: I was going to just tag a line onto the end of the dynamic extensions
>section of php3.ini, but then i realized that I don't have any mysql.so
>anywhere on my system. problematic.
--
John Wildenauer
Mossman, FNQ, Australia
Real email address: jwilde _at_ fastinternet _._ net _._ au
"Don't worry until worry worries you"
The wise owl