Thursday, January 3, 2013
Installation and Configuration of Apache Web Server in Ubuntu OS
Purpose:
This
small tutorial is for Ubuntu and Web
Server naive users, which would give a short kick off to beginners. It’ll give a brief fine points about the installation and
configuration of web server.
Installation of Apache Web Server:
Installation
of Apache web server is much easier in Ubuntu using apt-get package handling utility.
Command:
sudo
apt-get install apache2
That's all we finished with the installation of Apache web server, now we can star,stop,restart and check the status of web server using the following commands.
Start Apache Web
Server:
Þ/etc/init.d/apache2 start
Stop Apache Web
Server:
Þ/etc/init.d/apache2 stop
Restart Apache Web
Server:
Þ/etc/init.d/apache2 restart
Status Apache Web
Server:
Þ/etc/init.d/apache2 status
Issues :
You
may face couple of issues while starting the Apache web server. So i'm
adding some the issues and it's solutions along with the tutorial.
Issue 1: Server Start-up issue
Error Message:
§apache2:
Could not reliably determine the server’s fully qualified domain name, using
127.0.0.1 for server name.
Fix:
Þ$sudo gedit /etc/apache2/httpd.conf
Add the following line to this file.
Þ ServerName localhost
Issue 2: Server
Already Running
Error Message:
httpd(pid 19445) already
running.
Fix:
Þ ps –ef | grep apache
Þkill -9 19445 19446
19947 19948
Apache Main Configuration File:
Last but not least, this one "apache2.conf" is the main configuration file of the Apache web server. The configuration file name differ for different operating Systems, some of them name it as "httpd.conf" and some of the name it as "apache2.conf". No matter what name it is, but concept remains same for all of them.
Config File Location: /etc/apache2/apache.conf
Þ Sudo gedit /etc/apache2/apache.conf
I hope everything clear about "Installation and Configuration of Apache Web Server".
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment