8.测试 [root@terry bin]# /usr/local/mysql/bin/mysql -u root -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 3 to server version: 4.0.15 Type 'help;' or '\h' for help. Type '\c' to clear the buffer. mysql> use mysql; Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A Database changed mysql> delete from user where user=''; (删除所有用户名为空的用户,可以提高安全性) Query OK, 2 rows affected (0.00 sec) mysql> quit Bye
安装Apache cd httpd-2.0.47/ ../configure --prefix=/usr/local/httpd --enable-so make make install cd ..
如果看到如图1的信息即表示成功了。以上安装都是在Red Hat 9.0上进行的。到此为止,已经安装好一个支持PHP+MySQL的Web环境。另外Linux下有许多强大的编辑器可以用来写PHP程序,比如vi、emacs等;此外还有一些图形化的编辑器或是Web开发专用的编辑器,这就有待个人发掘了。当真正转到Linux下进行开发的时候,就会慢慢体会到它的强大和得心应手。
本文与其它介绍Apache安装的文章不同,不是介绍Apache 1.3.x,而是介绍了如何用Red Hat 9.0+Apache 2.0+PHP 4.3+MySQL 4.0来架构Web开发环境,所选取的是目前最新版本的软件,均从源代码开始编译,而不是下载二进制文件来进行安装。