Skip to Content

Category Archives: php

set custom php for a domain when server uses FCGI handler

Written on November 4, 2012 at 9:11 AM, by

Make a backup copy of your cPanel PHP wrapper script with the following command: cp -frp /usr/local/cpanel/cgi-sys/php5 /usr/local/cpanel/cgi-sys/php5-BACKUP   Now edit the cPanel PHP wrapper script with your favorite text editor: vi /usr/local/cpanel/cgi-sys/php5 By default this script should look like: #!/bin/sh # If you customize the contents of this wrapper script, place # a copy […]

find all php release download links

Written on October 17, 2012 at 6:28 PM, by

find all php release download links from the location:  

Common php compilation errors and fix

Written on October 17, 2012 at 6:23 PM, by

In my experience with linux cpanel servers I have encountered the following compilation errors while compiling PHP in servers. The errors and the fixes are described below: 1. Error:  configure: error: xslt-config not found. Please reinstall the libxslt >= 1.1.0 distribution fix: yum install libxslt-dev 2. Error :  Configure: error: readline library not found Fix:  […]

enabling allow_url_include locally in cPanel

Written on June 15, 2012 at 11:44 PM, by

When using cPanel the way to enable allow_url_include directive locally (per user) is to create an Virtual Host include: First create an include file: /usr/local/apache/conf/userdata/std/2/username/ Add directive to custom.conf: php_admin_flag allow_url_include On Then run to enable include: /scripts/ensure_vhost_includes –user=username –verbose Alternatively, enabling allow_url_include globally (server-wide) is done by editing /usr/local/lib/php.ini and adding “allow_url_include = On” […]

sample php mail script

Written on June 12, 2012 at 5:26 PM, by

<?php $server = $_SERVER[‘SERVER_NAME’]; mail(“”, $server ,$server, “FROM: test@”.$server); ?>

Way to install pcntl in cpanel server

Written on March 4, 2012 at 7:52 PM, by

Way to install pcntl: ———————- Create a file called: /var/cpanel/easy/apache/rawopts/all_php5 Add this to the file: –enable-pcntl Run easy apache with the default settings —————————————-