[原创]Freebsd4.8下安装Mysql+Apache+Php的安装方法(简版)~!

[原创]Freebsd4.8下安装Mysql+Apache+Php的安装方法(简版)~!

由于是简版~~

我就只打cmd了~

1.安装MYSQL
我直接写命令行了,我这人比较懒(主要是写文章没稿费,哈哈)
$su ?
#tar xvfz mysql-3.23.53.tar.gz
#cp ?Rf mysql-3.23.53 /usr/local/mysql
//因为我想把MYSQL安装到/usr/local/mysql下
#cd /usr/local/mysql
#pw groupadd mysql
#pw useradd ?g mysql -s mysql /nonexistent
# scripts/mysql_install_db
# chown -R root .
#chown -R mysql data
# chgrp -R mysql .
# bin/safe_mysqld --user=mysql &


2.安装APACHE
#cd /tmp
#tar xvfz apache_1.3.27.tar.gz
#cd apache_1.3.27
#./configure --prefix=/usr/local/apache --enable-module=so
//安装到/usr/local/apache目录下
#make
#make install

3.安装PHP
# cd /tmp
#tar xvfz php-4.3.1.tar.gz
#cd php-4.3.1
#./configure --with-mysql --with-apxs=/usr/local/apache/bin/apxs
#make
#make install
#cp /tmp/php-4.3.1/php.ini-dist /usr/local/lib/php.ini
配置apache的httpd.conf,加入:
AddType application/x-httpd-php .php
LoadModule php4_module libexec/libphp4.so


#/usr/local/apache/bin/apachectl start //启动apache      
嘿嘿,简单易行。