Tear...累 发表于 2012-2-20 16:02:45

LAMP代建

1,Apache的安装
./configure --prefix=/usr/local/apache2 --enable-so --enable-rewrite
make
make installmake
/usr/local/apache2/bin/apachectl start
netstat -ntl


2,Mysql
mkdir /usr/local/mysql
mkdir /usr/local/mysqsl/data
mkdir /usr/local/mysql/etc

./configure --prefix=/usr/local/mysql --localstatedir=/usr/local/mysql/data --sysconfdir=/usr/local/mysql/etc

chown -R root:root /usr/local/mysql
chown -R mysql:mysql /usr/local/mysql/data/
chown -R mysql:mysql /usr/local/mysql/lib/

安装数据库
/usr/local/mysql/bin/mysql_install_db –user=mysql

建立mysql的启动文件
cp /usr/local/mysql/share/mysql/mysql.server /etc/rc.d/init.d/mysqld
cp /usr/local/mysql/share/mysql/my-medium.cnf /etc/my.cnf

启动mysql
/usr/local/mysql/share/mysql/mysql.server start

设置密码
/usr/local/mysql/bin/mysqladmin -u root password ******

登录mysql
/usr/local/mysql/bin/mysql -u root -p


3,PhP
./configure --prefix=/usr/local/php4 --with-apx2=/usr/local/apache2/bin/apxs2 --with-mysqmakel=/usr/local/mysql --with-config-file-path=/usr/local/php4

make

make install

cp php.ini-development /usr/local/php3/php.ini

进行Apache服务器中的设置
LoadModule php4_module modules/libphp4.so
AddType application/x-httpd-php        .php
DirectoryIndex        index.html        index.html.var        index.php


停止并再次启动httpd服务程序
/usr/local/apache2/bin/apachecl stop
/usr/local/apache2/bin/apachecl start


phpbb

chown -R nobody:nobody phpbb3/

5,访问

无奈的lamp 发表于 2012-3-16 15:12:17

GD库呢

无奈的lamp 发表于 2012-4-1 17:41:03

呵呵,这个可是支持不了,GD库的哦
页: [1]
查看完整版本: LAMP代建