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.
Installation
Primary tabs
System Requirements
- Web Server
- PHP - should be compiled with
--with-zlib --with-openssl
- SQL Server
Installation
From the OpenX installation documentation.
Download the latest source:
cd /extra/src
wget http://download.openx.org/openx-2.8.7.tar.gz
tar zxf openx-2.8.7.tar.gz
Create a directory to hold the web files. We'll host them under an "http://ads.example.com" subdomain.
mkdir /var/websites
cd /var/websites
mkdir ads.example.com
cd ads.example.com
mkdir htdocs logs
chown nobody:nobody htdocs
chown nobody:nobody logs
Copy the OpenX source code to the htdocs
directory:
mv /extra/src/openx-2.8.7 htdocs/
chown -R nobody:nobody htdocs/openx-2.8.7
Configure your webserver:
- Apache
Create thevirtualhost
directive in/usr/local/apache2/conf/extra/httpd-vhosts.conf
:<VirtualHost *:80>
ServerName ads.example.com
DocumentRoot /var/websites/ads.example.com/htdocs/openx-2.8.7<Directory /var/websites/ads.example.com/htdocs/openx-2.8.7>
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
ErrorLog /var/websites/ads.example.com/logs/ads-error_log
CustomLog /var/websites/ads.example.com/logs/ads-access_log combined
</VirtualHost> - Lighttpd
var.basedir = "/var/websites/ads.example.com/"
server.document-root = basedir + "htdocs/openx-2.8.7"
accesslog.filename = basedir + "logs/access.log"
Restart the web server:
svc -t /service/apache
Create a database for OpenX to use:
/usr/local/mysql/bin/mysqladmin -u <username> -p create <databasename>
Log into the MySQL CLI and create a user for OpenX:
/usr/local/mysql/bin/mysql -u <username> -p
Create a user and grant it the appropriate privileges for your database:
GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, ALTER, DROP, INDEX, CREATE
TEMPORARY TABLES, LOCK TABLES
ON databasename.*
TO 'username'@'localhost' IDENTIFIED BY 'password';
FLUSH PRIVILEGES;
exit
Installation Wizard
Using your web browser, load the site you've created - i.e. http://ads.example.com.
- Welcome - Click Continue.
- Terms & Privacy Policy - Click I Agree.
- System Check - Any errors on this page must be corrected before you can continue with the install. Then click Continue
- Database Settings - Enter the appropriate settings for your database then click Continue. If the database tables are properly created, the next page will have another Continue link.
- Configuration checklist - You can adjust the default paths for various pages. Click Continue when done.
- Administrator Account - Provide the appropriate information to create an administrative user then click Continue.
Once the configuration is complete, you can login into the Admin section of OpenX.
- Log in to post comments