Category: Apache

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 »

Additional FTP Account In Plesk

Sometimes on a website you want to have a folder inside the document root that has it’s own FTP account. For example you might have a /news folder and you want your ad agency to be able to post articles to this folder but not access the rest of the website. Unfortunately plesk does not provide facilities for having multiple FTP accounts on a single site under the document root. Here’s a work around: 1. In Plesk, create a “Web User” in the desired domain. The web user will have a document root at: /var/www/vhosts/domain.com/web_users/[username] And the corresponding url will be: http://domain.com/~[username] Where username is the name that you assigned to the web user in Plesk. This is now your FTP account. Give the login to whoever needs it and let them upload content. 2. Next we’ll use a rewrite rule to map the web user’s document root into a

Read More »

Self-signed cert for Apache

Here are the steps to create a self signed certificate. Replace [domain_name] with the actual domain name of the virtual host. 1. create key

2. generate certificate signing request

3. generate the certificate

Read More »

Block access to .svn folders

Here are three ways in Apache to block access to the .svn folders. With access controls:

With rewrite rule:

With redirect:

These come from the excellent MDLog:/sysadmin blog at: http://www.ducea.com/2006/08/11/apache-tips-tricks-deny-access-to-some-folders/

Read More »

Categories

Get a free consultation from Reliable Penguin

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