Top Nav

Joomla / Plesk

Here’s a vhost.conf that makes Joomla happy:

And here are the ownership/permissions:

0

Static Routes On RedHat

Here’s the docs from redhat on how to setup static routes:

Let’s say you want to add two static routes to eth1. The first routes 10.10.10.0/255.255.255.0 to 10.10.10.1 and the second routes traffic from 10.10.11.0/255.255.255.0 to 10.10.11.1. To accomplish this create a file at:

And place the following lines in the file:

Then restart networking with:

0

Turn on register_globals on Plesk site.

Here’s a quick bit of apache config that can be placed in the conf/vhost.conf file of a Plesk site to turn on register_globals restrictions:

< Directory /var/www/vhosts/somedomain.com/httpdocs >
php_flag register_globals on
</Directory>

And then do:

/usr/local/psa/admin/sbin/websrvmng -a -v

0

Netem

Emulating wide area network delays

Add delay of 100ms:

tc qdisc add dev eth0 root netem delay 100ms

Remove delay:

tc qdisc change dev eth0 root netem delay 0ms

Change delay to 1000ms:

tc qdisc change dev eth0 root netem delay 1000ms

Add random variation to 100ms delay of +/- 10ms:

tc qdisc change dev eth0 root netem delay 100ms 10ms

Add random variation to 100ms delay of +/- 10ms with 25% correlation:

tc qdisc change dev eth0 root netem delay 100ms 10ms 25%

0

Add RBL To Sendmail

Edit /etc/mail/sendmail.mc and add the following lines near the bottom of the file:

The run make to rebuild the sendmail.cf file and restart the sendmail service.

0