my notes

ISPConfig: Custom php.ini for ISPConfig

Since I disable functions that ispconfig needs to run properly it becomes unusable.

There is a way to have a custom php.ini for ispconfig in which you can have all needed functions enabled. Instructions below:

- place your custom php.ini settings in /etc/php5/cgi/php.ispconfig.ini
- edit /var/www/php-fcgi-scripts/ispconfig/.php-fcgi-starter
- add -c /etc/php5/cgi/php.ispconfig.ini to exec /usr/bin/php-cgi so it looks like this:

Amazon EC2 routing second network interface

I had to run a second network interface only for https and this is howto do it:

1. Edit /etc/network/interfaces as root and change the eth1 configuration to look like this:

auto eth1
iface eth1 inet dhcp
post-up ip route add default via `route -n |grep UG |awk '{print $2}'` dev eth1 table 10001
post-up ip rule add from lookup 10001

2. Run the following command to prevent DHCP from adding the default gateway for eth1: