☆安裝mysql :
1.安裝程式
#tar zxvf mysql-4.0.26.tar.gz
#cd mysql-4.0.26
#./configure --prefix=/home/mysql --localstatedir=/home/mysql/var --with-charset=big5 --with-mysqld-ldflags=-all-static --with-client-ldflags=-all-static
#make
#makeinstall
2.後續設定
#/home/mysql/bin/mysql_install_db
#chmod 700 /home/mysql/share/mysql/mysql.server
#adduser mysql
#chown -R mysql:mysql /home/mysql/var(等全部的資料庫搬移過來後執行)
#/home/mysql/share/mysql/mysql.server start
#/home/mysql/bin/mysqladmin -u root password 'Your Password'
--------------------------------------------------------------------------
☆安裝apache :
#tar zxvf apache_1.3.34.tar.gz
#cd apache_1.3.34
#./configure --prefix=/home/apache --enable-module=so
#make
#make install
---------------------------------------------------------------------------
☆安裝php :
#tar zxvf php-4.4.1.tar.gz
#cd php-4.4.1
#./configure --with-mysql --with-apxs=/home/apache/bin/apxs
#make
#make install
cd php-4.4.1
cp php.ini-dist /usr/local/lib
修改apache的配置文件httpd.conf,添加
addtype application/x-httpd-php .php
DirectoryIndex index.html
DirectoryIndex index.php
重起apache服務器
----------------------------------------------------------------
執行
vi /etc/rc.d/rc.local
加入
/home/mysql/share/mysql/mysql.server start
/home/apache/bin/apachectl start
--------------------------------------------------------------------
☆安裝phpmyadmin
1.將phpmyadmin移到/home/apache/htdocs/sjses/
2.建立資料夾
mkdir /usr/local/lib/php/extensions
mkdir /usr/local/lib/php/extensions/no-debug-non-zts-20020429
4.cp -a /usr/local/lib/php.ini.-dist php.ini
修改/usr/local/lib/php.ini
register_globals = On
重啟動http
/home/apache/bin/apachectl restart