ABHIONLINUX
Site useful for linux administration and web hosting

2012/10/18

PCNTL installation in cpanel

PCNTL is php funtion that can be use the control and manage process. It is similar to process creation, execution , termination in unix.

Following are the steps to install PCNTL funtion in cpanel server.

1. Create a file all_php5 in the folder /var/cpanel/easy/apache/rawopts
2. Add  '--enable-pcntl' in the file all_php5.
3. Rebuild apache using /scripts/easyapache

You can verify it using  php -m | grep pcntl



2012/07/06

Unable to start init, probably incorrect template OpenVZ

If you are getting the error “Unable to start init, probably incorrect template” while starting a VPS. The “incorrect template” problem occurs when the “init” on the VPS goes missing. 
Init file should be there in  /sbin
You can check it using 


ls -la /vz/private/VID/sbin/init


If the file is missing or the file size is zero, your VPS won’t start. In order to resolve problem, you can either copy the ‘init’ from a different VPS using the same OS template i.e


cp /vz/root/VEID1/sbin/init /vz/private/VEID/sbin/


you can untar the OS template located under /vz/template/cache/ directory and copy the ‘init’ file there i.e.


tar -zxf /vz/template/cache/os_template.tar.gz
cp /vz/template/cache/sbin/init /vz/private/VID/sbin/



Then you can start your vps

vzctl start VID