apache php mysql安裝筆記

這篇其實之前po過了,只是前陣子DB毀損,在修復後好像就不見了,原內容己不可考,所以就只留最重點的部份再po一遍。

[Apache+PHP]

gzip -d httpd-2_0_NN.tar.gz

tar xvf httpd-2_0_NN.tar

gunzip php-NN.tar.gz

tar -xvf php-NN.tar

cd httpd-2_0_NN

/configure --enable-so

make;make install

cd ../php-NN

./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql

make;make install

cp php.ini-dist /usr/local/lib/php.ini

AddType application/x-httpd-php .php .phtml

AddType application/x-httpd-php-source .phps

[mysql]
shell> groupadd mysql

shell> useradd -g mysql mysql

shell> cd /usr/local

shell> gunzip < /path/to/mysql-VERSION-OS.tar.gz | tar xvf - shell> ln -s full-path-to-mysql-VERSION-OS mysql

shell> cd mysql

shell> scripts/mysql_install_db --user=mysql

shell> chown -R root .

shell> chown -R mysql data

shell> chgrp -R mysql .

shell> bin/mysqld_safe --user=mysql &

草稿編輯:2006/07/09 11:16

您可能也會喜歡…

發表迴響

你的電子郵件位址並不會被公開。 必要欄位標記為 *