Copyright © 2010 Lockstockmods. All Rights Reserved. Snowblind by Themes by bavotasan.com. Powered by WordPress.
Install MySQL 4.1.3
Download these RPMS to /usr from http://www.mysql.com
MySQL-server-4.1.8-0.i386.rpm
MySQL-devel-4.1.8-0.i386.rpm
MySQL-client-4.1.8-0.i386.rpm
MySQL-shared-4.1.8-0.i386.rpm
Install them with: rpm -i MySQL*.rpm
Source Files
Download these files (or newer versions) to /usr/local/src
(the packages will be located in /usr/local/lib when they are installed unless otherwise stated)
zlib-1.2.1.tar.gz from http://www.gzip.org/zlib/
libxml2-2.6.11.tar.gz from http://www.xmlsoft.org/
php-5.0.3.tar.gz from http://www.php.net/downloads.php
httpd-2.0.52.tar.gz from http://httpd.apache.org/
http://www.openssl.org/source/openssl-0.9.7e.tar.gz
http://puzzle.dl.sourceforge.net/sourceforge/libssh2/libssh2-0.4.tar.gz
Decompress the files
cd /usr/local/src
tar xzf zlib-1.2.1.tar.gz
tar xzf libxml2-2.6.11.tar.gz
tar xzf httpd-2.0.52.tar.gz
tar xzf php-5.0.3.tar.gz
tar xzf openssl-0.9.7e.tar.gz
tar xzf libssh2-0.4.tar.gz
Compile zlib
cd zlib-1.2.1/
./configure
make
make install
cd ..
Compile libxml2
cd libxml2-2.6.11
./configure
make
make install
cd ..
Compile OpenSSL
cd openssl-0.9.7e
make
make install
cd ..
Compile libssh2
cd libssh2-0.4
./configure
make
cd ..
Compile apache2 (installs to /usr/local/apache2)
cd httpd-2.0.52
./configure –prefix=/usr/local/apache2 –enable-so –with-openssl=/usr/local/
make
make install
cd ..
to start / stop Apache execute:
/usr/local/apache2/bin/apachectl start
/usr/local/apache2/bin/apachectl stop
Apache config directory:
/usr/local/apache2/conf/
htdocs directory:
/usr/local/apache2/htdocs/
Compile PHP5 (installs to /usr/local/php5)
cd php-5.0.3
./configure –prefix=/usr/local/php5
make
make install
cd ext
/usr/local/php5/bin/pear download ssh2-0.4.1
gzip -d < ssh2-0.4.1.tgz | tar -xvf -
mv ssh2-0.4.1 ssh2
rm package.xml
cd ..
./buildconf –force
./configure –prefix=/usr/local/php5 \
–with-apxs2=/usr/local/apache2/bin/apxs \
–with-libxml-dir=/usr/local/lib –with-zlib \
–with-zlib-dir=/usr/local/lib \
–with-mysql=/usr –with-mysqli=/usr/bin/mysql_config \
–with-gd –enable-soap –enable-sockets \
–with-jpeg-dir=/usr –enable-exif \
–enable-magic-quotes –with-tsrm-pthreads –with-openssl –with-ssh2
make (if u get errors about files being truncated try “make clean” first)
.. gave me lots of ‘multiple defined’ error for libmysql;
these errors go away if you drop either –with-mysql or
–with-mysqli;
if you want to use both the old mysql and the new mysqli
interface, load the Makefile into your editor and search
for the line beginning with EXTRA_LIBS; it includes
-lmysqlclient twice; remove the second instance
make
make install
cd ..
location of php.ini:
/usr/local/lib/php.ini
Edit httpd.conf
the command make install of the PHP build automatically
adds the following line to /usr/local/apache2/conf/httpd.conf:
LoadModule php5_module modules/libphp5.so
however, you have to add another line:
AddType application/x-httpd-php .php
Test it all
restart Apache
/usr/local/apache2/bin/apachectl start
/usr/local/apache2/bin/apachectl stop
create the file
/usr/local/apache2/htdocs/test.php
with this content
load the page with your web browser
http://localhost/test.php
Start Apache automatically (Init-V)
if Apache should start automatically when you start
your system, you have to add a init Script; if you use
SUSE, copy /etc/init.d/skeleton to /etc/init.d/apache2
and adapt it according to your needs; the following lines
summarize the most important parts
#! /bin/sh
# /etc/init.d/apache2
…
case “$1″ in
start)
echo -n “Starting apache2″
/usr/local/apache2/bin/apachectl start
rc_status -v
;;
stop)
echo -n “Shutting down apache2″
/usr/local/apache2/bin/apachectl stop
rc_status -v
;;
restart)
$0 stop
$0 start
rc_status
;;
*)
echo “Usage: $0 {start|stop|restart}”
exit 1
;;
esac
…


