You'll need:
1. MySQL 3.23.37 pkg file
-
http://pkg.nl.cobalt.com/i386/RaQ3-R...-3.23.37-1.pkg
2. PHP 4.06 source tarball
-
http://www.php.net/do_download.php?d...te=www.php.net
3. PHPinfo config settings.
- Create a php file named phpinfo.php and place in it
<? phpinfo(); ?>
Load that up in your browser and look for the Configure command settings
i.e.
http://yourdomain.com/phpinfo.php
Remove the single quotes and you'll find for Rackshack.net raq4i server like i have the following:
quote:
--------------------------------------------------------------------------------
./configure --prefix=/usr --with-apxs=/usr/sbin/apxs --with-gd --with-gettext=/usr --enable-safe-mode --with-config-file-path=/etc/httpd --with-exec-dir=/usr/bin --with-zlib --enable-magic-quotes --with-regex=system --with-ttf=/usr/lib/libttf.so --enable-track-vars --enable-xml --disable-debug --with-db3 --with-interbase=shared --with-pgsql=shared --with-ldap --with-imap
--------------------------------------------------------------------------------
Notice: that --with-mysql has not been compiled into php 4.03, you'll need to add this for php 4.06 (further below) as well as change --with-db3 to --with-db
Install MySQL
====================
1. Log into raq4 server admin page and go to ->Maintenance ->Install software
Enter the pkg file url at
http://pkg.nl.cobalt.com/i386/RaQ3-R...-3.23.37-1.pkg
and hit install and wait for confirmation of install at the bottom frame of the page.
2. Now to change the mysql root password to secure your mysql server
- log in telnet
- switch to root user
su -
- type
mysqladmin -uroot -pcobalt-mysql password NEW-PASSWORD
Upgrade PHP 4.03 to PHP 4.06 (with mysql support)
=========================================================
This will upgrade PHP 4.03 to PHP 4.06 with mysql support.
1. telnet into your server
2. switch to root user
su -
3. change to /usr/local/src directory
cd /usr/local/src
4. Download php 4.0.6 source tarball:
wget
http://www.php.net/do_download.php?d...te=www.php.net
5. extract tarball
tar xfz php-4.0.6.tar.gz
6. change to php-4.0.6 directory
cd php-4.0.6
7. Copy and paste this new configure command line. Get the configure command line from above in phpinfo.php page and you'll need to add --with-mysql as well as change --with-db3 to --with-db so it looks like (i use a text file to hold this configure command so i can copy and paste it):
quote:
--------------------------------------------------------------------------------
./configure --prefix=/usr --with-mysql --with-apxs=/usr/sbin/apxs --with-gd --with-gettext=/usr --enable-safe-mode --with-config-file-path=/etc/httpd --with-exec-dir=/usr/bin --with-zlib --enable-magic-quotes --with-regex=system --with-ttf=/usr/lib/libttf.so --enable-track-vars --enable-xml --disable-debug --with-db --with-interbase=shared --with-pgsql=shared --with-ldap --with-imap
--------------------------------------------------------------------------------
8. type
make
9. now backup the .so files that are currently in use
mkdir backup_so
mkdir backup_so/php
cp /etc/httpd/modules/libphp4.so ./backup_so/
cp /etc/httpd/modules/php/* ./backup_so/php/
10. type
make install
11. restart apache
/etc/rc.d/init.d/httpd stop
/etc/rc.d/init.d/httpd start
12. check your
http://yourdomain.com/phpinfo.php you should have PHP 4.06