Quantcast
Viewing all articles
Browse latest Browse all 13

How to Install and configure Apache web server on Ubuntu 13.10

Install Apache Web server
A while back I updated my ubuntu to 13.10 and then the apache php installation got messed up. So I had to reinstall it quickly to continue working on my php projects.
Apache is there in the ubuntu repositories so can be installed without much effort. Here is the quick command you need to fire at the terminal.
$ sudo apt-get install apache2
Apache by default configures itself quickly so that you can open up it from the browser with the localhost url
http://localhost/
Start/Stop apache
To start or stop apache web server from command line, use the following commands.
# Start web server
$ sudo service apache2 start

# Stop the web server
$ sudo service apache2 stop

# Restart the web server
$ sudo service apache2 restart

# Reload configuration without restarting
$ sudo service apache2 reload
The default web root directory is /var/www. So whatever files are put in this directory are accessible from the localhost url. Later we shall check how to change the default web root directory
To check what version of apache is installed use the apache2 command with the v option/
$ apache2 -v
Server version: Apache/2.4.6 (Ubuntu)
Server built: Aug 9 2013 14:28:56
Locate configuration files
To get more information about how exactly apache is configure on...

Read full post here
How to Install and configure Apache web server on Ubuntu 13.10


Viewing all articles
Browse latest Browse all 13

Trending Articles