1. Turn on FastCGI support for a subdomain via the "Domains" page in your control panel (it's under the advanced options, accessible with the little down-arrow).
2. Create a php-wrapper.fcgi file in the folder corresponding to that bare subdomain (its root). Put the following in it:
Code: Select all
#!/bin/sh
PHP_FCGI_CHILDREN=3
export PHP_FCGI_CHILDREN
PHP_FCGI_MAX_REQUESTS=2000
export PHP_FCGI_MAX_REQUESTS
exec /usr/bin/php-cgi
4. Create a .htaccess file in the same folder, containing the following:
Code: Select all
<FilesMatch "\.ph(p5?|tml)$">
SetHandler php-fastcgi
</FilesMatch>
Action php-fastcgi /php-wrapper.fcgi