I built php like this: # USE="soap -recode curlwrappers sasl" emerge -vp dev-lang/php These are the packages that I would merge, in order: Calculating dependencies ...done! [ebuild R ] dev-lang/php-5.0.5-r4 -adabas -apache +apache2 -bcmath +berkdb -birdstep +bzip2 -calendar -cdb -cgi -cjk +cli +crypt -ctype +curl +curlwrappers -db2 +dba -dbase -dbmaker -debug -discard-path -doc -empress -empress-bcs -esoob +exif -fdftk -filepro -firebird -flatfile -force-cgi-redirect -frontbase -ftp+gd -gd-external +gdbm -gmp -hardenedphp -hyperwave-api -iconv -imap -informix -inifile -interbase -iodbc +ipv6 -java-external -kerberos +ldap -libedit -mcve -memlimit +mhash -ming -mnogosearch -msql -mssql +mysql -mysqli +ncurses +nls -oci8 -oci8-instant-client +odbc -oracle7 -ovrimos +pcntl +pcre -pdo-external +pear-pfpro -pic +posix +postgres -qdbm +readline -recode -sapdb +sasl +session -sharedext -sharedmem -simplexml -snmp +soap +sockets -solid +spell -spl -sqlite +ssl -sybase -sybase-ct -sysvipc +threads -tidy +tiff -tokenizer +truetype -wddx +xml2 +xmlrpc -xpm -xsl -yaz +zip +zlib 0 kB When I try to run my script, I get the following: $ ./test.php PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/lib/php/extensions/no-debug-non-zts-20041030/bz2.so' - /usr/lib/php5/lib/php/extensions/no-debug-non-zts-20041030/bz2.so: cannot open shared object file: No such file or directory in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/lib/php/extensions/no-debug-non-zts-20041030/curl.so' - /usr/lib/php5/lib/php/extensions/no-debug-non-zts-20041030/curl.so: cannot open shared object file: No such file or directory in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/lib/php/extensions/no-debug-non-zts-20041030/dba.so' - /usr/lib/php5/lib/php/extensions/no-debug-non-zts-20041030/dba.so: cannot open shared object file: No such file or directory in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/lib/php/extensions/no-debug-non-zts-20041030/exif.so' - /usr/lib/php5/lib/php/extensions/no-debug-non-zts-20041030/exif.so: cannot open shared object file: No such file or directory in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/lib/php/extensions/no-debug-non-zts-20041030/gettext.so' - /usr/lib/php5/lib/php/extensions/no-debug-non-zts-20041030/gettext.so: cannot open shared object file: No such file or directory in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/lib/php/extensions/no-debug-non-zts-20041030/ldap.so' - /usr/lib/php5/lib/php/extensions/no-debug-non-zts-20041030/ldap.so: cannot open shared object file: No such file or directory in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/lib/php/extensions/no-debug-non-zts-20041030/mbstring.so' - /usr/lib/php5/lib/php/extensions/no-debug-non-zts-20041030/mbstring.so: cannot open shared object file: No such file or directory in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/lib/php/extensions/no-debug-non-zts-20041030/mcrypt.so' - /usr/lib/php5/lib/php/extensions/no-debug-non-zts-20041030/mcrypt.so: cannot open shared object file: No such file or directory in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/lib/php/extensions/no-debug-non-zts-20041030/mhash.so' - /usr/lib/php5/lib/php/extensions/no-debug-non-zts-20041030/mhash.so: cannot open shared object file: No such file or directory in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/lib/php/extensions/no-debug-non-zts-20041030/mysql.so' - /usr/lib/php5/lib/php/extensions/no-debug-non-zts-20041030/mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/lib/php/extensions/no-debug-non-zts-20041030/ncurses.so' - /usr/lib/php5/lib/php/extensions/no-debug-non-zts-20041030/ncurses.so: cannot open shared object file: No such file or directory in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/lib/php/extensions/no-debug-non-zts-20041030/odbc.so' - /usr/lib/php5/lib/php/extensions/no-debug-non-zts-20041030/odbc.so: cannot open shared object file: No such file or directory in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/lib/php/extensions/no-debug-non-zts-20041030/openssl.so' - /usr/lib/php5/lib/php/extensions/no-debug-non-zts-20041030/openssl.so: cannot open shared object file: No such file or directory in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/lib/php/extensions/no-debug-non-zts-20041030/pcntl.so' - /usr/lib/php5/lib/php/extensions/no-debug-non-zts-20041030/pcntl.so: cannot open shared object file: No such file or directory in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/lib/php/extensions/no-debug-non-zts-20041030/pgsql.so' - /usr/lib/php5/lib/php/extensions/no-debug-non-zts-20041030/pgsql.so: cannot open shared object file: No such file or directory in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/lib/php/extensions/no-debug-non-zts-20041030/pspell.so' - /usr/lib/php5/lib/php/extensions/no-debug-non-zts-20041030/pspell.so: cannot open shared object file: No such file or directory in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/lib/php/extensions/no-debug-non-zts-20041030/soap.so' - /usr/lib/php5/lib/php/extensions/no-debug-non-zts-20041030/soap.so: cannot open shared object file: No such file or directory in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/lib/php/extensions/no-debug-non-zts-20041030/sockets.so' - /usr/lib/php5/lib/php/extensions/no-debug-non-zts-20041030/sockets.so: cannot open shared object file: No such file or directory in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/lib/php/extensions/no-debug-non-zts-20041030/xmlrpc.so' - /usr/lib/php5/lib/php/extensions/no-debug-non-zts-20041030/xmlrpc.so: cannot open shared object file: No such file or directory in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/lib/php/extensions/no-debug-non-zts-20041030/zlib.so' - /usr/lib/php5/lib/php/extensions/no-debug-non-zts-20041030/zlib.so: cannot open shared object file: No such file or directory in Unknown on line 0 Then my script's down output, which is just print_r()s on a few variables: SoapClient Object ( [_local_cert] => [snip].pfx [_passphrase] => [snip] [_soap_version] => 1 [sdl] => Resource id #4 ) Fatal error: Uncaught SoapFault exception: [HTTP] SSL support not available in this build in /home/timr/test.php:7 Stack trace: #0 [internal function]: SoapClient->__doRequest('<?xml version="...', 'https://prototy...', 'http://schemas....', 1) #1 [internal function]: SoapClient->__call('QueryAli', Array) #2 /home/timr/src/dash911c/test.php(7): SoapClient->QueryAli('123') #3 {main} Note that my php is built with ssl, so I don't know what other USE flag I might need for the soap part to have SSL support.
OK, this looks like you had USE=sharedext flag set, then removed it and re-emerged php. Since portage never removes files under CONFIG_PROTECT, you need to delete them yourself. So, you need to delete all *.ini files and symlinks related to the extensions that php complains about (located in /etc/php/apache2-php5/ and /etc/php/cli-php5 and subdirectories), then restart apache... HTH.