Specifications
| Apache the first time by running: |
| |
| /usr/local/apache/bin/apachectl start |
| Or when you want to run it with SSL enabled use: |
| |
| /usr/local/apache/bin/apachectl startssl |
| Thanks for using Apache. The Apache Group |
| http://www.apache.org/ |
+---------------------------------------------------------------+
Now it’s time to see whether Apache and PHP are working. However, we need to edit the
httpd.conf of srm.conf to add the PHP type to the configuration.
Look at the httpd.conf and uncomment the following lines. If you have followed the previous
instructions, your
httpd.conf file will be located in the /usr/local/apache/conf directory.
The file has the
addtype for PHP 4 commented out. You should uncomment it at this time.
httpd.conf File—Snippets
>
> # And for PHP 4.x, use:
> #
---> AddType application/x-httpd-php .php
---> AddType application/x-httpd-php-source .phps
>
>
Now we are ready to start the Apache server to see whether it worked. First, we will start the
server without the SSL support to see whether it comes up. We will check for PHP support,
and then we will stop the server and start it with the SSL support enabled and see whether we
got everything working.
The configtest will check whether the entire configuration is set up properly:
# cd /usr/local/apache/bin
# ./apachectl configtest
Syntax OK
# ./apachectl start
./apachectl start: httpd started
If it worked correctly, you will see something similar to Figure A.1 when you connect to the
server with a Web browser.
Appendixes
P
ART VI
790
38 7842 app a 3/6/01 3:40 PM Page 790