Open a terminal window. Type "su -" and enter the root password.
Type "yum install httpd; chkconfig --on httpd".
Edit /etc/sysconfig/iptables. Make sure you have a line allowing for TCP/80.
Create your site in /var/www/html.
Hi All,
I have task to install an Apache 2.2 in Centos 5.3,
So any one can give me the steps to install and how to configure.
Open a terminal window. Type "su -" and enter the root password.
Type "yum install httpd; chkconfig --on httpd".
Edit /etc/sysconfig/iptables. Make sure you have a line allowing for TCP/80.
Create your site in /var/www/html.
Thank u soooooo much.
Its working.
Can u give me the steps for give the Alis name like (172.12.1.100 to www.example.com)
Create a file in /etc/apache2/sites-available/ named what you want it to be, link to it from /etc/apache2/sites-enabled/ and in this file have what you need ie:
If you are talking about nameserver settings, then you either need to inform the root servers you're running the nameserver, and configure named to handle your request, or you'd use something like www.zoneedit.com to handle your DNS and point the www.example.com to your IP.Code:<VirtualHost *:80> ServerAdmin web@example.com DocumentRoot /var/www/html/example.com ServerName example.com ServerAlias www.example.com ErrorLog /var/log/apache2/example-error.log CustomLog /var/log/apache2/example-access.log combined # Possible values include: debug, info, notice, warn, error, crit, # alert, emerg. LogLevel warn ServerSignature On <Directory /var/www/html/example.com> Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all </Directory> </VirtualHost>
Don't worry Ma'am. We're university students, - We know what We're doing.
'Ruiat coelum, fiat voluntas tua.'Datalogi - en livsstil; Intet liv, ingen stil.
Correction. I should have said "chkconfig httpd on" instead of the other. The /etc/apache2/sites-enabled is something specific to Ubuntu and I think Red Hat (CentOS) is being used here.
By 'Alis' do you mean alias? Locally add it to /etc/hosts. If you want people to actually be able to find your site, you'll need to add this to DNS. I have no idea what your DNS is like on your network, but that is what you should investigate into.
Yes, the "sites-enabled" is a Debian (and Debian distros) default. A quick "include /etc/apache2/sites-enabled/*" fixes that, but I digress. What Redhead added, just add to the end of your httpd.conf file.
Bookmarks