Installation of WWW Server On CentOS4.3
Installation of WWW server on Linux CentOS4.3
A WWW server is a computer program that is responsible for accepting HTTP requests from clients (user agents such as web browsers), and serving them HTTP responses along with optional data contents, which usually are web pages such as HTML documents and linked objects (images, etc.).
How to install WWW server on CentOS4.3?
-download httpd
download httpd-2.0.59.tar.gz to /usr/local/src
cd /usr/local/src
tar xzvf httpd-2.0.59.tar.gz
cd httpd-2.0.59
-apache build install
./configure \
--enable-so \
--enable-module=all \
--enable-shared=max \ #for sql and php
--enable-dav=yes \ #for ssl?
--enable-ssl \
# --with-ssl=/usr/local/ssl
--enable-setenvif #for ssl
make
make install
-apache start
in /etc/rc.d/rc.local
/usr/local/apache2/bin/apachectl start
ps aux | grep httpd
-make dir
mkdir /home/bob
mkdir /home/bob/public_html
chown bob.bob/home/bob/public_html
chmod 711 /home/bob
chmod 711 /home/bob/public_html
-admin of apache
in /usr/local/apache2/conf/httpd.conf
ServerAdmin bob@configureinstallsetup.com
-default file
in /usr/local/apache2/conf/httpd.conf
DirectoryIndex index.php index.html index.cgi index.pl index.htm
-making cgi execable
in /usr/local/apache2/conf/httpd.conf
<Directory /home/bob>
Options ExecCGI
</Directory>
AddHandler cgi-script .cgi .pl
-test cgi
make index.cgi as
#!/usr/bin/perl
print "Content-type:text/html\n\n";
print "<html>hello world by cgi</html>\n";
chmod 755 index.cgi #don't forget
- 164 reads
Recent popular content



















