Specifications
FIGURE A.1
The default test page provided by Apache.
Is PHP Support Working?
Now we will test for PHP support. Create a file with the name of test.php with the following
code in it. The file needs to be located in document root path, which should be set up by
default to
/usr/local/apache/htdocs. Note that this is dependent on the directory prefix that
we chose initially. However, this could be changed in the
httpd.conf.
<? phpinfo() ?>
The output screen should look like Figure A.2.
Installing PHP 4 and MySQL
A
PPENDIX A
A
INSTALLING PHP 4
AND MYSQL
791
You can connect to the server with a domain name or using the actual IP address of
the computer. Check both cases, to ensure that everything is working properly.
Note
38 7842 app a 3/6/01 3:40 PM Page 791