How to enable PHP-FCGI support on a RHEL or CentOS

  • 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
yum install mod_fcgid
  1. Download fcgid template
cd /usr/local/vesta/data/templates/web
tar -xzvf httpd.tar.gz
rm -f httpd.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