How to enable PHP-FCGI support on a Debian or Ubuntu

  • This tutorial is created for servers with less than 1Gb of ram avaialbe. On "medium" servers installation is fully automatic.
  1. Install fcgid apache module
apt-get install libapache2-mod-fcgid
a2enmod fcgid
  1. Download fcgid template
cd /usr/local/vesta/data/templates/web
wget http://c.vestacp.com/0.9.8/ubuntu/fcgid/apache2.tar.gz
tar -xzvf apache2.tar.gz
rm -f apache2.tar.gz
  1. Create new package or set phpfcgid as apache template in the existing package
  2. Add new user and assing him package with phpfcgid template
  3. Add new domain and check the result