How to enable custom flag like PCNTL in your cPanel server


Enabling custom flag like PCNTL in your cPanel server depends on what PHP you have and how you want to configure it. Here are a few options:

If you want to add --enable-pcntl to all PHP4 compilations, do this:

~~~~~~~
Create a file called: /var/cpanel/easy/apache/rawopts/all_php4
Add this to the file: --enable-pcntl
~~~~~~~

If you want to add --enable-pcntl to all PHP5 compilations, do this:

~~~~~~~
Create a file called: /var/cpanel/easy/apache/rawopts/all_php5
Add this to the file: --enable-pcntl
~~~~~~~

If you want to add --enable-pcntl to a specific version of PHP, say 5.2.6 , do this:

~~~~~~~
Create a file called: /var/cpanel/easy/apache/rawopts/PHP-5.2.6
Add this to the file: --enable-pcntl
~~~~~~~

Its better to use "all_php*" option because when you will upgrade your PHP, you would not need to again create that file with current PHP version.

The next step is to recompile Apache+PHP through the cPanel script "/script/easyapache".

After recompilation, you can verify it using the following command :

~~~~~~~~
# php -m | grep -i pcntl
~~~~~~~~

Thank you.


Comments

  1. Nice!!!!... Blog . Thanks for sharing .Its really good . I like it . You can also Visit here for more flag pole ,custom flags,flag making etc.

    ReplyDelete

Post a Comment

Popular posts from this blog

SVN: File remains in conflict

HowTo: Enable extended logging for exim

12 tweakings for WHM/cPanel to speed up WordPress