Executing Microsoft SQL Server Stored Procedure from PHP on Linux - Installing the Apache Web Server
(Page 3 of 9 )
Change directory to httpd-2.0.47 by issuing the following command:
cd httpd-2.0.47
To configure your installation tree and modules, issue the following:
./configure --prefix=/usr/local/Apache2 --enable-mods-shared=all --enable-ssl --enable-cache --enable-proxy --enable-suexec
I would like to include all Apache modules on my test environment; you may reduce these modules by using different parameters with the configure command (to understand these parameters, please refer to Apache documentation after installation, or read it online http://httpd.Apache.org/docs-2.1/). It is a good idea to compile and install all the modules; however, at run time, only load the modules your web server needs (how to configure Apache modules at run time, please refer the Apache document with this installation or read it online).
Make sure there is no error after you run the above command. Most errors come from your missing some development components when you install Red Hat 9.0, you can install these missing components through the “Add/Remove Applications” applet mentioned at the beginning of the this article, then come back to rerun above command until there are no errors.
To compile your module tree, issue the following command:
make
This command usually takes a while to finish all the steps (first it will compile all selected modules then link them with libraries). Make sure there are no error messages. (there may be some warning message while compiling, but that’s OK).
To install the Apache Web Server, issue:
make install
After this step, you can see a new folder /usr/local/Apache2. This is where our Apache Web Server is installed.
Testing your new installation and making it start as a service:
Before we test the new installation, we need some post-installation setup. To edit the Apache configuration file, issue:
gedit /usr/local/apache2/conf/httpd.conf
search for ServerAdmin and ServerName key words, you will see something like this:
ServerAdmin you@your.address
#ServerName new.host.name:80
Please change it to
ServerAdmin root@dellrh
ServerName dellrh:80
dellrh is the name for my machine, you should change it to your machine name, which you supplied when installing Red Hat Linux, then save the configuration file. Close the editor.
Start Apache by issuing the following:
/usr/local/Apache2/bin/apachectl start
Open your browser, and type http://localhost into the address bar. You will see the Apache Web Server welcome screen.
The Apache documentation is also installed; clicking the documentation hyperlink will lead you to the document page.
Next: Installing the Apache Web Server, Cont'd >>
More PHP Articles
More By Jack Zhang