SquidGuard is a URL redirector used to use blacklists with the proxysoftware Squid. There are two big advantages to squidguard: it is fast and it is free.
Apache
Primary tabs
Compiling and Installing
Configure PHP with the options you want. In this case, we'll be adding Apache
./configure \
--with-config-file-path=/usr/local/etc/ \
--enable-fpm \
--enable-pdo \
--enable-mbstring \
--with-curl \
--with-bz2 \
--with-zlib \
--enable-gd \
--with-openssl \
--enable-opcache \
--with-apxs2=/usr/local/apache2/bin/apxs \Configuration options:
- Datase support:
--with-mysqli=mysqlnd \
--with-pdo-mysql=mysqlnd \ - LDAP support
--with-ldap - Curl support (required by Drupal's Feeds module)
--with-curlProbably need to install
curl-develpackage first though:yum install curl-devel - Zlib for file compression support:
--with-zlib
If it configures correctly, make and install the binaries:
make
make installCopy the included .ini file to the proper location:
cp php.ini-production /usr/local/lib/php.iniEdit your httpd.conf to load the PHP module. The path on the right hand side of the LoadModule statement must point to the path of the PHP module on your system. The make install from above may have already added this for you, but be sure to check.
LoadModule php5_module modules/libphp5.soTell Apache to parse certain extensions as PHP. For example, let's have Apache parse the .php extension as PHP. You could have any extension(s) parse as PHP by simply adding more, with each separated by a space. We'll add .phtml to demonstrate.
AddType application/x-httpd-php .php .phtmlIt's also common to setup the .phps extension to show highlighted PHP source, this can be done with:
AddType application/x-httpd-php-source .phpsAdd index.php to the DirectoryIndex option:
DirectoryIndex index.html index.phpRestart the Apache server. Since we are running it under daemontools:
svc -t /service/apachePerformance Tuning
Tuning Apache and PHP for Speed
- Log in to post comments