Everything for the Ubuntu Server Administrator

User Tools

Site Tools


Server Administration

Server Applications

At the Command Line


Copyright 2013 Applied Conscious Technologies, LLC

Terms of Agreement


submit to reddit


Server Applications


Ubuntu Apache server guide:

see also: Web Applications

Apache is the big Kahuna of web servers, the most commonly used web server. It is the “A” in “LAMP”. Powerful, flexible, efficient, secure…under constant development with a steady stream of security improvements and new capabilities, Apache is a great choice for many web applications.

Controlling Browser Cache Header in Apache Reduce server load and traffic by having web clients retain data.
Creating and Installing an Apache SSL Certificate Get a working https configuration with Ubuntu and a GoDaddy SSL certificate.
Apache Monitoring See what Apache is doing right now.
Password Protect an Apache Site Control user access to a website.
Apache Rewrites Understand Apache's rewrite capabilities.
Apache Security Make Apache more secure.
Apache Virtual Server Instance The standard way to create multiple web sites on a server.
Apache Data Compression Compress data going to browsers to increase site speed.
Google PageSpeed Module on Apache Google PageSpeed is an Apache module that can significantly improve your site's performance.
Website Optimization Configure Apache and other actions to optimize your website.

Run, Stop, Test, And Restart Apache

Control the Apache service the standard Ubuntu way. See also: Services.

Apache Service Status

service apache2 status

Start Apache

sudo service apache2 start

Stop Apache

sudo service apache2 stop

Test Apache Configuration

sudo /usr/sbin/apache2ctl configtest

Reload Apache

sudo service apache2 reload

Restart Apache

sudo service apache2 restart

Find Large Apache Log Files

On a busy site, log files can grow pretty quickly. If you are tight on diskspace, this may cause problems if diskspace runs too low causing errors.

On my servers, all sites are in ”/base/var/www”. This shows log files in that directory tree that are over 500K.

sudo find /base/var/www -type f -name "*.log" -size +500k -exec ls -lh {} \; | awk '{ print $8 ": " $5 }'

Check Your Site

Use Google PageSpeed Insights to test your site. This will return a list of test results that Google has determined to be important to maximize a website's user experience.

apache.txt · Last modified: 2015/05/31 21:20 (external edit)