Specifications

Enter password:
+--------------------+
| Databases |
+--------------------+
| mysql |
+--------------------+
When you install MySQL, it will automatically create two databases. One is the mysql table,
which controls users, hosts, and DB permissions in the actual server. The other is a test DB.
You can check your database via the command line like this:
# mysql -u root -p
Enter password:
mysql> show databases;
+--------------------+
| Database |
+--------------------+
| mysql |
| test |
+--------------------+
2 rows in set (0.00 sec)
Now its time to install PHP. You should still be acting as root, if not su back to root.
PHP requires that you have Apache preconfigured so that it knows where everything is. You
will come back to this later in the section when you set up the Apache server. Change back to
the directory where you have the sources.
# cd /tmp/download
# gunzip -c apache_1.3.x.tar.gz | tar xf -
# cd apache_1.3.x
# ./configure --prefix=/usr/local/apache
# cd ..
Okay, now you can start setting up PHP. Extract the source files and change to its directory:
# gunzip -c php-4.0.x.tar.gz | tar xvf -
# cd php-4.0.x
Again there are many options with PHPs configure command. Use configure --help to
determine what you want to add. In this case, we want to add support for MySQL, Apache,
PDFLib, cURL, and PSPELL.
Note that the following is all one command. We can put it all on one line, or as we have here,
use the continuation character, backslash (\), to allow us to type one command across multiple
lines to improve readability.
Appendixes
P
ART VI
786
38 7842 app a 3/6/01 3:40 PM Page 786