#useradd mysql
#chown -R mysql:mysql /usr/local/mysql
#chown -R mysql:mysql /var/mysql
#./mysqld_safe -u root & (启动mysql)
#./mysql
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 3 to server version: 4.0.20
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
问题说明:
有的人启动Apache的时候系统会提示:"Could not determine the server's fully qualified domain name, using 127.0.0.1 for Serve,这个说明Apache服务器不能确定你的主机名。修改Apache的配置文件,查找ServerName关键字,去掉前面# 号设置为:ServerName localhost。
3、安装PHP (DSO)
tar zvxf php-4.3.6.tar.gz
./configure --prefix=/usr/local/php --with-mysql=/usr/local/mysql \
--with-apxs2=/usr/local/apache2/bin/apxs
make
make install
cp php.ini-recommand /usr/local/php/lib/php.ini
编辑php.ini
修改如下参数变量
register_globals = On # 打开自动全局变量,允许网页之间传递变量
expose_php = Off # 不显示PHP版本号 (可以不设置,设置了安全点儿)