Category: Webservers

Set Apache To Start On Boot

By default many Apache RPM packages do not set the httpd server to start automatically on boot so this needs to be done manually. On RedHat/CentOS the chkconfig command should be used as follows:

Read More »

Apache Configuration Best Practices

There are numerous ways to organize your Apache configuration files. In some cases this organization will be dictated by your Linux distribution or control panel choice. When I’m working on RedHat/CentOS with no control panel here’s what I have found

Read More »

Set X-Robots-Tag in Apache

The X-Robots-Tag HTTP header can be used to send directives to Google and other search engines. See this page for a discussion from Google: https://developers.google.com/webmasters/control-crawl-index/docs/robots_meta_tag In Apache you can implement the X-Robots-Tag using the Header directive. For example the following

Read More »

Install PHP SSH2 extension on RHEL 5.6 with EPEL repository

Here are the steps to install the PHP SSH2 extention on RHEL 5.6 with the EPEL repository. Install packages that may be needed:

Temporarily allow binary execution in /tmp

Install the extension:

Restore /tmp restrictions:

Reload

Read More »

Insert Varnish Cache With NAT Rule

Here’s a simple nat rule for iptables that will route incoming web traffic to your varnish cache. This allows you to implement varnish without reconfiguring apache. In the varnish config, set the backing do be 127.0.0.1:80.

Here’s a different

Read More »

Get a free consultation from Reliable Penguin

Submit the form—or for immediate service call 866-649-7984.