Category: Apache

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 code will mark PDF documents as “noindex, nofollow”:

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 apache:

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 rule that also seems to work:

Read More »

Manage Apache Modules On Ubuntu

Configuration for enable modules is stored in: /etc/apache2/mods-enabled Available but inactive modules are stored in: /etc/apache2/mods-available A module can be enabled with:

Where [modulename] is the module to be enabled. For example:

will enable the rewrite module. A module can be disabled in a similar fashion with:

Don’t forget to restart apache after making changes with:

Read More »

Install WordPress on Ubuntu virtual server at Media Temple

Server is a MediaTemple “ve” server which is a Parallels Virtuozzo container with Ubuntu 10.04 LTS Lucid installed as the operating system. The first step is to install packages:

Now set mysql service to start automatically:

Next create a database for wordpress:

Next we’ll download and install wordpress:

Now set the database credentials in /var/www/wp-config.php:

Finally point your web browser to the site and run the WordPress installer.

Read More »

Categories

Get a free consultation from Reliable Penguin

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