|
|
因为是第一次 架设服务器折腾了半天都不知道怎么弄
我安装的CENTos4.3的过程如下,帮我看看哪里出错了
CENTOS4.3最下化安装
下了软件 httpd-2.0.55.tar.gz
mysql-4.1.18.tar.gz
php-4.4.2.tar.gz
先yum了gcc.i386 gcc-c++.i386 flex.i386
先装的MYSQL
#./configure --prefix=/usr/local/mysql
# make
# make install
# /usr/local/mysql/bin/mysql_install_db
# cp /usr/local/mysql/share/mysql/mysql.server /etc/rc.d/init.d/mysql
# chmod +x /etc/rc.d/init.d/mysql
# useradd mysql
# chown -R mysql:mysql /usr/local/mysql
# chown -R mysql:mysql /etc/rc.d/init.d/mysql
然后是apache
#./configure --prefix=/usr/local/apache --enable-so
# make
# make install
配置http.conf的时候
出现类似 Cannot load /usr/local/apache/modules/libphp4.so的错误
所有的 so都装载不上很郁闷 可是明明modules/所有的so文件都有
最后是PHP就有问题了
./configure --prefix=/usr/local/php --with-apache=../httpd-2.0.55/ -with-mysql --with-apxs2==/usr/local/apache/bin/aspx
死活出现如下错误
Configuring SAPI modules
checking for AOLserver support... no
checking for Apache 1.x module support via DSO through APXS... no
checking for Apache 1.x module support... configure: error: Use --with-apxs2 with Apache 2.x!
我不知道如何解决了
谢谢了。 |
|