hector_super

Member
Aug 4, 2016
17
1
3
Australia
cPanel Access Level
Root Administrator
Hi,

I have enabled PCNTL by adding --enable-pcntl in file /var/cpanel/easy/apache/rawopts/all_php5

I recompiled with Easy Apache and all went well, build log is attached. It does recognise the PCNTL flag and as far as I can see, built with it.

However, when I check via SSH, PCNTL is not present:

Code:
root@server [~]# php -m | grep pcntl
root@server [~]#
Can you please advise if I am missing a step? I searched in the PHP config and it is not expressly disabled.

Many thanks
 

hector_super

Member
Aug 4, 2016
17
1
3
Australia
cPanel Access Level
Root Administrator
Thanks. I have:

  1. Upgraded to EasyApache4
  2. Removed the file /var/cpanel/easy/apache/rawopts/all_php5
  3. Re-built leaving only PHP 5.6
  4. PCNTL is NOT present, should I manually set it again in the rawopts file and build again or should it be included in PHP 5.6 built by EA4?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,267
463
PCNTL is NOT present, should I manually set it again in the rawopts file and build again or should it be included in PHP 5.6 built by EA4?
Check to ensure you are using the correct path to PHP 5.6 when verifying which modules are compiled. Here's an example of a command you can use, and it's output:

Code:
# /opt/cpanel/ea-php56/root/usr/bin/php -m|grep pcntl
pcntl
Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,267
463
I'm happy to see it's working as intended. Thank you for updating us with the outcome.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,267
463
Possible, i need install pcntl? I tried can't find.
Could you elaborate further on this? Use this command to verify the module is installed with PHP 7.0:

Code:
/opt/cpanel/ea-php70/root/usr/bin/php -m|grep pcntl
Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,267
463
The output in that image shows the module is installed. Could you verify the steps you are taking to reproduce it not working?

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,267
463
Yes, it's not working. I saw in phpinfo is not up for pcntl.

I think it's disabled.
Are you still experiencing this issue? If so, could you verify that no custom php.ini or local.ini files are present under the account's public_html directory?

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,267
463
Feel free to open a support ticket using the link in my signature if you'd like us to take a closer look. You can post the ticket number here and we will update this thread with the outcome.

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,267
463
Hello,

To update, we were able to verify the module is in-fact installed.

Thank you.
 
  • Like
Reactions: Samet Chan