This is a “Too many open files” error.
Increase open-files-limit in my.cnf
Set ulimit -n in init file.
This is a “Too many open files” error.
Increase open-files-limit in my.cnf
Set ulimit -n in init file.
Here’s a vhost.conf that makes Joomla happy:
1 2 3 4 5 6 |
<Directory /var/www/vhosts/somedomain.com/httpdocs > php_flag magic_quotes_gpc on php_flag display_errors on php_admin_flag safe_mode off php_admin_value open_basedir none </Directory> |
And here are the ownership/permissions:
1 2 3 4 5 6 7 |
chown --recursive user.psacln administrator cache components editor help images includes installation language mambots media modules templates *.php *.php-dist *.txt chmod --recursive go+w administrator/backups/ administrator/components/ administrator/modules/ administrator/templates/ cache components/ images/ images/banners/ images/stories/ language/ mambots/ media/ modules/ templates/ touch configuration.php chown user.psacln configuration.php chmod og+rw configuration.php |
Here’s the docs from redhat on how to setup static routes:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
/etc/sysconfig/network-scripts/route-<interface-namegt; Contains lines that specify additional routes that should be added when the associated interface is brought up. The files are processed by the ifup-routes script and uses the /sbin/ipcalc utility for all network masks and numbers. Routes are specified using the syntax: ADDRESSn=<network> NETMASKn=<network/prefix mask> GATEWAYn=<next-hop router/gateway IP address> The "n" can be any integer number, but is expected to be monotonically increasing and counting starts from 0. For example: ADDRESS0=192.168.2.0 NETMASK0=255.255.255.0 GATEWAY0=192.168.1.1 adds a network route to the 192.168.2.0 network via the gateway at 192.168.1.1. Since you must already have a route to the network of the gateway, there is no need to specify a device. Note: The ifup-routes script also supports an older syntax designed to be used directly as an argument to "/sbin/ip route add". This syntax is deprecated, but if no "ADDRESSn" lines are found the following will still work: 192.168.2.0/24 dev ppp0 adds a network route to the 192.168.2.0 network through ppp0. |
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:
1 |
/etc/sysconfig/network-scripts/route-eth1 |
And place the following lines in the file:
1 2 3 4 5 6 |
ADDRESS0=10.10.10.0 NETMASK0=255.255.255.0 GATEWAY0=10.10.10.1 ADDRESS1=10.10.11.0 NETMASK1=255.255.255.0 GATEWAY1=10.10.11.1 |
Then restart networking with:
1 |
/sbin/service network restart |
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
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%