cPanel :: Enable individual php.ini on FastCGI

33 sec read

:: Requirement on vhost
make sure your vhost have these:

ScriptAlias /cgi-bin/ "/home/username/public_html/cgi-bin/"
Options +ExecCGI -Includes
AddHandler cgi-script .cgi .pl .plx .ppl .perl

:: Create FastCGI handler script

cd /home/username/public_html/cgi-bin/
vi php5.cgi

add these line:

exec /usr/local/cpanel/cgi-sys/php5

:: Create custom / individual php.ini

cd /home/username/public_html/cgi-bin/
vi php.ini

example: enable register_globals, so add this line:

register_globals = On

:: Change permission / and owner

chmod 755 php5.cgi php.ini
chown username.username php5.cgi php.ini

:: Enable handler on .htaccess

vi .htaccess
AddHandler php5-fastcgi .php
Action php5-fastcgi /cgi-bin/php5.cgi

:: Checking configuration

vi phpinfo.php

and see on Loaded Configuration File:

Loaded Configuration File	/home/username/public_html/cgi-bin/php.ini

:: Links
+ Google
+ BlogArvixe

How to fix problem with the editor ‘vi’

:: git error with vi error: There was a problem with the editor 'vi'   :: how to fix the problem 0. check path...
10 sec read

Apache :: MP4 Streaming

:: How to Enable mp4 Streaming in Apache + Installing mod h624 streaming wget // tar -xzf apache_mod_h264_streaming-2.2.7.tar.gz cd mod_h264_streaming-2.2.7/ ./configure --with-apxs=`which apxs2` make...
18 sec read

Apache :: Flash / FLV Streaming

:: How to Configure Apache for FLV Streaming + Installing mod_flvx wget // which apxs /usr/bin/apxs /usr/bin/apxs -cia mod_flvx.c + setup mod_flvx in http.conf...
15 sec read

Leave a Reply

Your email address will not be published. Required fields are marked *