This discussion is archived
7 Replies Latest reply: Aug 26, 2013 7:51 AM by cindys RSS

Solaris 11.1 i386, PHP 5.3's php-cgi is broken

RaiderOfTheLostSparc Newbie
Currently Being Moderated

Hi,

 

it seems it's impossible to run Apache in worker mode (instead of prefork) with PHP, php-cgi seems to be broken:

 

# /usr/php/5.3/bin/php-cgi -i > /dev/null

ld.so.1: php-cgi: fatal: relocation error: file

/usr/php/5.3/modules/pdo_sqlite.so: symbol sqlite3_libversion:

referenced symbol not found

Killed

# /usr/php/5.3/bin/php-cgi -c /etc/php/5.3/nsapi/php.ini -i > /dev/null

PHP Warning: PHP Startup: Unable to load dynamic library

'/usr/php/5.3/zts-modules/bz2.so' - ld.so.1: php-cgi: fatal:

relocation error: file /usr/php/5.3/zts-modules/bz2.so: symbol

core_globals_id: referenced symbol not found in Unknown on line 0

PHP Warning: PHP Startup: Unable to load dynamic library

'/usr/php/5.3/zts-modules/curl.so' - ld.so.1: php-cgi: fatal:

relocation error: file /usr/php/5.3/zts-modules/curl.so: symbol

executor_globals_id: referenced symbol not found in Unknown on line 0

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

Module compiled with build ID=API20090626,TS

PHP compiled with build ID=API20090626,NTS

These options need to match

in Unknown on line 0

PHP Warning: PHP Startup: Unable to load dynamic library

'/usr/php/5.3/zts-modules/gd.so' - ld.so.1: php-cgi: fatal: relocation

error: file /usr/php/5.3/zts-modules/gd.so: symbol core_globals_id:

referenced symbol not found in Unknown on line 0

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

Module compiled with build ID=API20090626,TS

PHP compiled with build ID=API20090626,NTS

These options need to match

in Unknown on line 0

etc.

 

Also:

 

# ls /usr/php/5.3/*modu*/sqlit*

/usr/php/5.3/modules/sqlite.so

/usr/php/5.3/zts-modules/sqlite3.so

# grep '.' /etc/php/5.3/*conf.d/sqlite*

/etc/php/5.3/conf.d/sqlite.ini:extension=sqlite.so

/etc/php/5.3/zts-conf.d/sqlite.ini:extension=sqlite.so

 

Shouldn't that be sqlite3.so in zts's sqlite.ini?

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points