retrieve_conf failed, config not applied

I recently tried upgrading mysql 4 to mysql 5 using this site: http://trac.asterisk2billing.org/cgi-bin/trac.cgi/wiki/TrixboxMysql

During and after this process I encountered lot of problems. I posted my issues at Trixbox forum and some one helped to at a level where I can log back to my Trixbox and freepbx.

Now in freepbx when I try to apply configuration changes, I get this error:
Reload failed because retrieve_conf encountered an error: 255

On main freepbx I see the following message:
Reload failed because retrieve_conf encountered an error: 255
Added 28 minutes ago
(freepbx.RCONFFAIL)

I tried ./retrieve_conf on the command line and here’s the output:

[[email protected] bin]# ./retrieve_conf
PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/lib/php/modules/pcntl.so’ - /usr/lib/php/modules/pcntl.so: cannot open shared object file: No such file or directory in Unknown on line 0

Checking for PEAR DB…OK
Checking for PEAR Console::Getopt…OK
Checking for /etc/amportal.conf …OK
Bootstrapping /etc/amportal.conf …OK
Parsing /etc/amportal.conf …OK
Parsing /etc/asterisk/asterisk.conf …OK
Connecting to database…OK
Connecting to Asterisk manager interface…OK
Added to globals: ASTETCDIR = /etc/asterisk
Added to globals: ASTMODDIR = /usr/lib/asterisk/modules
Added to globals: ASTVARLIBDIR = /var/lib/asterisk
Added to globals: ASTAGIDIR = /var/lib/asterisk/agi-bin
Added to globals: ASTSPOOLDIR = /var/spool/asterisk
Added to globals: ASTRUNDIR = /var/run/asterisk
Added to globals: ASTLOGDIR = /var/log/asterisk
Added to globals: CWINUSEBUSY = true
Added to globals: AMPMGRUSER = admin
Added to globals: AMPMGRPASS = xxxxxxxx
[[email protected] bin]#

My system is working fine but I can’t make any changes in freepbx. Can some one please help me for this problem?

CentOS release 4.6 (Final)
Trixbox CE 2.2.3
FreePBX 2.4.0beta2.2

find out what you need install to address your error. It may be because it expects it to be built into php and it is not. Or reinstall a CentOS 5 based system (php-in-a-flash, new trixbox, etc.)

this is what is making it fail and needs to be addressed.

PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/lib/php/modules/pcntl.so’ - /usr/lib/php/modules/pcntl.so: cannot open shared object file: No such file or directory in Unknown on line 0

During the installation I used the following commands:

#cd /usr/src

#wget http://dfn.dl.sourceforge.net/sourceforge/phprpms/php-pcntl-4.3.11-2.5.1.i386.rpm

#rpm -iv php-pcntl-4.3.11-2.5.1.i386.rpm

#mv php.ini php.ini.old

#mv php.ini.rpmsave php.ini

Could this be a problem? Sorry if I am asking very basic questions. I am not expert in Linux. Can you please tell me how to fix pcntl.so problem?