PHP Startup: Unable to initialize module

I have run the requirements checker and everything passed including the php version. I am using yii-1.1.5.r2654. My distro is Red Hat 4.1.1-30.

So, I ran

yii/framework/yiic webapp parts

and got all of the gunk below. It seems to be telling me that yiic was compiled with API 20060613 and PHP was compiled with API 20050922. So, do I need to rebuild yiic or something? I could find no doco on this on the yii website.

PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/lib/20060613/bcmath.so’ - /usr/lib/20060613/bcmath.so: undefined symbol: OnUpdateLongGEZero in Unknown on line 0

PHP Warning: PHP Startup: dba: Unable to initialize module

Module compiled with module API=20060613, debug=0, thread-safety=0

PHP compiled with module API=20050922, debug=0, thread-safety=0

These options need to match

in Unknown on line 0

PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/lib/20060613/dom.so’ - /usr/lib/20060613/dom.so: undefined symbol: tsrm_realpath in Unknown on line 0

PHP Warning: PHP Startup: gd: Unable to initialize module

Module compiled with module API=20060613, debug=0, thread-safety=0

PHP compiled with module API=20050922, debug=0, thread-safety=0

These options need to match

in Unknown on line 0

PHP Warning: PHP Startup: ldap: Unable to initialize module

Module compiled with module API=20060613, debug=0, thread-safety=0

PHP compiled with module API=20050922, debug=0, thread-safety=0

These options need to match

in Unknown on line 0

PHP Warning: PHP Startup: mbstring: Unable to initialize module

Module compiled with module API=20060613, debug=0, thread-safety=0

PHP compiled with module API=20050922, debug=0, thread-safety=0

These options need to match

in Unknown on line 0

PHP Warning: PHP Startup: mysql: Unable to initialize module

Module compiled with module API=20060613, debug=0, thread-safety=0

PHP compiled with module API=20050922, debug=0, thread-safety=0

These options need to match

in Unknown on line 0

PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/lib/20060613/mysqli.so’ - /usr/lib/20060613/mysqli.so: undefined symbol: zend_std_get_constructor in Unknown on line 0

PHP Warning: PHP Startup: ncurses: Unable to initialize module

Module compiled with module API=20060613, debug=0, thread-safety=0

PHP compiled with module API=20050922, debug=0, thread-safety=0

These options need to match

in Unknown on line 0

PHP Warning: PHP Startup: odbc: Unable to initialize module

Module compiled with module API=20060613, debug=0, thread-safety=0

PHP compiled with module API=20050922, debug=0, thread-safety=0

These options need to match

in Unknown on line 0

PHP Warning: PHP Startup: PDO: Unable to initialize module

Module compiled with module API=20060613, debug=0, thread-safety=0

PHP compiled with module API=20050922, debug=0, thread-safety=0

These options need to match

in Unknown on line 0

PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/lib/20060613/pdo_mysql.so’ - /usr/lib/20060613/pdo_mysql.so: undefined symbol: php_pdo_register_driver in Unknown on line 0

PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/lib/20060613/pdo_odbc.so’ - /usr/lib/20060613/pdo_odbc.so: undefined symbol: php_pdo_register_driver in Unknown on line 0

PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/lib/20060613/pdo_pgsql.so’ - /usr/lib/20060613/pdo_pgsql.so: undefined symbol: php_pdo_register_driver in Unknown on line 0

PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/lib/20060613/pdo_sqlite.so’ - /usr/lib/20060613/pdo_sqlite.so: undefined symbol: php_pdo_register_driver in Unknown on line 0

PHP Warning: PHP Startup: pgsql: Unable to initialize module

Module compiled with module API=20060613, debug=0, thread-safety=0

PHP compiled with module API=20050922, debug=0, thread-safety=0

These options need to match

in Unknown on line 0

PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/lib/20060613/soap.so’ - /usr/lib/20060613/soap.so: undefined symbol: php_gcvt in Unknown on line 0

PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/lib/20060613/xmlreader.so’ - /usr/lib/20060613/xmlreader.so: undefined symbol: php_dom_create_object in Unknown on line 0

PHP Warning: PHP Startup: xmlrpc: Unable to initialize module

Module compiled with module API=20060613, debug=0, thread-safety=0

PHP compiled with module API=20050922, debug=0, thread-safety=0

These options need to match

in Unknown on line 0

PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/lib/20060613/xmlwriter.so’ - /usr/lib/20060613/xmlwriter.so: undefined symbol: tsrm_realpath in Unknown on line 0

PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/lib/20060613/xsl.so’ - /usr/lib/20060613/xsl.so: undefined symbol: dom_node_class_entry in Unknown on line 0

Create a Web application under ‘/var/www/html/parts’? [Yes|No] PHP Startup: Unable to load dynamic library ‘/usr/lib/20060613/bcmath.so’

I have continued to research this and see that it is now nothing to do with Yii. Rather a problem with the PHP installation on the server. I would post the link related to that here for anyone who is interested but cannot as I dont have those permissions on this forum yet. Strange.

Anyway, sorry for posting this here then.

Hmmm - now my hosting provider is saying the following …

"The older version is kept as its apart of the control panel we run. Up

the top of the yiic script in /var/www/html/yii/framework change the

following line from:

#!/usr/bin/env php

to:

!#/usr/local/php5/bin/php"

Of course yiic is not a script, so what can I do to get yiic running?

Check the content of file in <yii dir>/framework/yiic

It’s content is the following:




#!/usr/bin/env php

<?php

/**

 * Yii command line script for Unix/Linux.

 *

 * This is the bootstrap script for running yiic on Unix/Linux.

 *

 * @author Qiang Xue <qiang.xue@gmail.com>

 * @link [url="http://www.yiiframework.com/"]http://www.yiiframework.com/[/url]

 * @copyright Copyright &copy; 2008 Yii Software LLC

 * @license [url="http://www.yiiframework.com/license/"]http://www.yiiframework.com/license/[/url]

 * @version $Id: yiic 702 2009-02-18 19:29:48Z qiang.xue $

 */


require_once(dirname(__FILE__).'/yiic.php');



So try to change the first line as they suggested