Category: Webservers

Disable ETags

Create a file at /etc/httpd/conf.d/no-etags.conf with the following: Header unset ETag FileETag None Then of course restart Apache. Here’s a discussion on why you may want to turn ETags off: http://www.askapache.com/htaccess/apache-speed-etags.html

Read More »

Turn on PHP register_globals with .htaccess file

It is of course a bad idea to write code that depends on register_globals for security reason, but sometimes when faced with old code it’s a necessary evil. You can turn on register_globals for a site or directory by adding the following line to your .htaccess file:

Read More »

Apache – Remove Auth From Subdirectory

Assume that you have a folder that is restricted by HTTP Basic Auth but you want to allow access to a sub-folder. Here’s how:

Read More »

Zabbix – Monitor for Apache config errors

To monitor for Apache config file errors in Zabbix do the following: 1. Create monitor test script at /etc/zabbix/apache_configtest.pl with the following contents:

2. Add the following line to the end of /etc/zabbix/zabbix_agentd.conf:

3. From the Zabbix web interface add an Item for the new monitor at Configuration -> Items -> Create Item with the following settings:

Other fields can be left at default. 4. Add a Trigger for the new Item at Configuration -> Triggers -> Create Trigger with the following settings:

Other fields can be left at default.

Read More »

PHPList Install to RackSpace Cloud Server (CentOS)

Here’s a step-by-step to setup a RackSpace Cloud Server with CentOS for PHPList (http://phplist.com): Install PHP, PHP IMAP module, PHP MySQL module, MySQL Server and FTP server:

Apache and a number of other related packages are installed automatically as dependencies. Set Apache, MySQL and FTP service to start on boot:

Start Apache, MySQL and FTP:

Set MySQL root password:

Download PHPList distribution:

Unpack and install

Add FTP user and set file ownership:

Create database:

Configure firewall:

From the security level menus, set SELinux to disabled, then customize and allow incoming WWW and FTP. Setup PHPList config file:

In the editor, set database parameters. In your web browser go to:

You’ll be prompted to initialize the database. Follow the installation screens to complete the install process. The basic install is now complete. The PHPList admin screens are located at:

Read More »

Categories

Get a free consultation from Reliable Penguin

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