编译安装Apache PHP MySQL
时间:2007-03-01 来源:linxh
Apache:
下载: http://www.apache.org
./configure --enable-module=so --enable-module=rewrite --enable-shared=max
make
make install
MySQL:
下载 http://mysql.oss.eznetsols.org/Downloads
groupadd mysql
useradd mysql -g mysql -s /bin/false
./configure --without-debug --with-extra-charsets=gbk
make
make install
cp support-files/my-medium.cnf /etc/my.cnf
mysql_install_db --user=mysql
cp /usr/local/share/mysql/mysql.server /etc/init.d/mysqld
update-rc.d mysqld defaults 75
PHP:
下载: http://www.php.net
./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql
make
make install
cp php.ini-dist /usr/local/lib/php/php.ini
修改httpd.conf,增加
AddType application/x-httpd-php .php
对PHP文件要有相应的权限
下载: http://www.apache.org
./configure --enable-module=so --enable-module=rewrite --enable-shared=max
make
make install
MySQL:
下载 http://mysql.oss.eznetsols.org/Downloads
groupadd mysql
useradd mysql -g mysql -s /bin/false
./configure --without-debug --with-extra-charsets=gbk
make
make install
cp support-files/my-medium.cnf /etc/my.cnf
mysql_install_db --user=mysql
cp /usr/local/share/mysql/mysql.server /etc/init.d/mysqld
update-rc.d mysqld defaults 75
PHP:
下载: http://www.php.net
./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql
make
make install
cp php.ini-dist /usr/local/lib/php/php.ini
修改httpd.conf,增加
AddType application/x-httpd-php .php
对PHP文件要有相应的权限
相关阅读 更多 +