PinoyTech.org

CodeIgniter, Kohana, Mootools, jQuery and CSS

Install Apache on Ubuntu

Posted by teejay on December 30, 2011

Apache has been a go to for PHP development as it is one of the LAMP stack devfinitions. A is for Apache

Installing Apache is really easy especially on Ubuntu. It can be accomplished in just one line from the commandline.

sudo apt-get install apache2

Apache just like in MAMP, WAMP, XAMPP, you'll need to restart Apache to start using it.

Securing Apache

If you just want to run your Apache install as a development server and want to prevent it from listening for incoming connection attempts, this is easy to do.

$ gksudo "gedit /etc/apache2/ports.conf"
$ password:

Change ports.conf so that it contains:

Listen 127.0.0.1:80

Now, Apache will now listen to only your localhost on port 80.

Categories: How To

Tags: php, apache, lamp

No Comments

Comments are not allowed