- 论坛徽章:
- 0
|
版本为:mysql-standard-5.0.13-rc-linux-i686.tar.gz
httpd-2.0.54.tar.gz
php-5.0.5.tar.gz
(过程为参考论坛里另一贴子)
先来安装mysql
cp mysql-standard-5.0.13-rc-linux-i686.tar.gz /usr/local/
tar -zxvf mysql-standard-5.0.13-rc-linux-i686.tar.gz
cd mysql-standard-5.0.13-rc-linux-i686/
emacs INSTALL-BINARY (打开后直接退出
groupadd mysql
useradd -g mysql mysql
cd /usr/local/
ln -s /root/mysql-standard-5.0.13-rc-linux-i686/ mysql
./scripts/mysql_install_db --user=mysql
chown -R root .
chown -R mysql data
chgrp -R mysql .
./bin/mysqld_safe --user=mysql
出现: (Starting mysqld daemon with databases from /usr/local/mysql/data )
ps -aux │ grep mysql 什么也没出现
安装apache
tar -zxvf httpd-2.0.54.tar.gz
cd httpd-2.0.54
emacs INSTALL (直接退出)
./configure --enable-so --enable-so
make ; make install
cd /usr/local/apache2/bin
./apachectl start
httpd: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
这时打开浏览器,输入127.0.0.1,什么也没有提示.
cd /usr/loca/apache2/conf/
用gedit打开httpd.conf
找到#ServerName www.example.com:80
把它改为ServerName 127.0.0.1
../bin/apachectl restart 没有出错提示
安装php
tar -zxvf php-5.0.5.tar.gz
cd php-5.0.5
emacs INSTALL 获得一些安装信息
./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=/usr/local/mysql
此时出现错误提示:
Configuring extensions
checking whether to enable LIBXML support... yes
checking libxml2 install dir... no
configure: error: libxml2 version 2.5.10 or greater required.
现在安装无法进行下去了.
请指点一下,错误发生在哪里?(万分感谢!) |
|