Solved Trouble with upgrading from php53-extension to 55-extensions

I was told that php53 was not secure and asked to upgrade to 54 or higher. I could find only Php5.5.

I used ports to deinstall php53 and install php55, no problem. But installing php55-extensions i encountered this error:

Code:
php55-curl-5.5.11 conflicts with php53-curl-5.3.28 (installs files into the same place). Problematic file: /usr/local/include/php/ext/curl/config.h

I could not find solutions to this problem via google. I tried portmaster later and got the same exact error.

Without complete php55-extensions, it seems my apache24 would work correctly -- it would ask me to download any *.php files.

My system is running FreeBSD 10.0 (FreeBSD 10.0-RELEASE #0 r260789:).

Thanks for any hint and happy holidays.
 
I tried to use php5.6 instead today and got similar errors. So I tried to deinstall each port that caused error and then reinstalled again...

did this for more than 10 different things:

Code:
  759  11:30  cd /usr/ports/textproc/php53-dom
  760  11:30  make deinstall
  761  11:30  cd /usr/ports/lang/php56-extensions
  762  11:30  make reinstall
  763  11:31  cd /usr/ports/security/php53-filter
  764  11:31  make deinstall
  765  11:31  cd /usr/ports/lang/php56-extensions
  766  11:31  make reinstall
  767  11:32  cd /usr/ports/graphics/php53-gd
  768  11:32  make deinstall
  769  11:32  cd /usr/ports/lang/php56-extensions
  770  11:32  make reinstall
  771  11:33  cd /usr/ports/security/php53-hash
  772  11:33  make deinstall
  773  11:33  cd /usr/ports/lang/php56-extensions
  774  11:33  make reinstall
  775  11:33  cd /usr/ports/converters/php53-iconv
  776  11:33  make deinstall
  777  11:33  cd /usr/ports/lang/php56-extensions
  778  11:33  make reinstall
  779  11:34  cd /usr/ports/devel/php53-json
  780  11:34  make deinstall
  781  11:34  cd /usr/ports/lang/php56-extensions
  782  11:34  make reinstall
  783  11:35  cd /usr/ports/databases/php53-mysql
  784  11:35  make deinstall
  785  11:35  cd /usr/ports/lang/php56-extensions
  786  11:35  make reinstall
  787  11:35  cd /usr/ports/databases/php53-pdo
  788  11:35  make deinstall
  789  11:36  cd /usr/ports/lang/php56-extensions
  790  11:36  make reinstall
  791  11:36  cd /usr/ports/databases/php53-pdo_sqlite
  795  11:37  make deinstall
  796  11:37  cd /usr/ports/lang/php56-extensions
  797  11:37  make reinstall
  798  11:38  cd /usr/ports/archivers/php53-phar
  799  11:38  make deinstall
  800  11:38  cd /usr/ports/lang/php56-extensions
  801  11:38  make reinstall
  803  11:39  cd /usr/ports/sysutils/php53-posix
  804  11:39  make deinstall
  805  11:39  cd /usr/ports/lang/php56-extensions
  806  11:39  make reinstall
  807  11:39  cd /usr/ports/www/php53-session
  808  11:39  make deinstall
  809  11:39  cd /usr/ports/lang/php56-extensions
  810  11:39  make reinstall
  811  11:40  cd /usr/ports/textproc/php53-simplexml
  812  11:40  make deinstall
  813  11:40  cd /usr/ports/lang/php56-extensions
  814  11:40  make reinstall
  816  11:41  cd /usr/ports/databases/php53-sqlite3
  817  11:41  make deinstall
  818  11:41  cd /usr/ports/lang/php56-extensions
  819  11:41  make reinstall
  820  11:41  cd /usr/ports/devel/php53-tokenizer
  821  11:41  make deinstall
  822  11:41  cd /usr/ports/lang/php56-extensions
  823  11:41  make reinstall
  825  11:42  cd /usr/ports/textproc/php53-xml
  826  11:42  make deinstall
  827  11:42  cd /usr/ports/lang/php56-extensions
  828  11:42  make reinstall
  829  11:42  cd /usr/ports/textproc/php53-xmlreader
  830  11:43  make deinstall
  831  11:43  cd /usr/ports/lang/php56-extensions
  832  11:43  make reinstall
  833  11:43  cd /usr/ports/textproc/php53-xmlwriter
  834  11:43  make deinstall
  835  11:43  cd /usr/ports/lang/php56-extensions

Then finally i seems to have all php5.6 extensions done correctly....but php shows the following errors:

Code:
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20131226/ftp.so' - Cannot open "/usr/local/lib/php/20131226/ftp.so" in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20131226/mysqli.so' - Cannot open "/usr/local/lib/php/20131226/mysqli.so" in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20131226/sqlite.so' - Cannot open "/usr/local/lib/php/20131226/sqlite.so" in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20131226/mbstring.so' - Cannot open "/usr/local/lib/php/20131226/mbstring.so" in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20131226/apc.so' - Cannot open "/usr/local/lib/php/20131226/apc.so" in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20131226/bz2.so' - Cannot open "/usr/local/lib/php/20131226/bz2.so" in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20131226/mcrypt.so' - Cannot open "/usr/local/lib/php/20131226/mcrypt.so" in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20131226/openssl.so' - Cannot open "/usr/local/lib/php/20131226/openssl.so" in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20131226/pdf.so' - Cannot open "/usr/local/lib/php/20131226/pdf.so" in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20131226/zip.so' - Cannot open "/usr/local/lib/php/20131226/zip.so" in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20131226/zlib.so' - Cannot open "/usr/local/lib/php/20131226/zlib.so" in Unknown on line 0

Indeed, these file are not in the /usr/local/lib/php/20131226 location.....now what do I do?
 
I successfully did make config in /usr/ports/lang/php56-extensions and installed most extensions required....However I cannot find apc.so. It is not listed anywhere.
 
I tried
Code:
 /usr/ports/www/pecl-APC/ Make Install
but got:

Code:
> pecl-APC-3.1.14_1 cannot be installed: doesn't work with> lang/php55 port (doesn't support PHP 5.5).

so now I am in a deadend....There is no php54 in the ports.
 
So I package deleted php56 and installed php54 through ports. But now website does not work correctly -- php codes are not interpreted correctly. Yet PHP seems to be working. Strange.


Code:
php -v
PHP 5.4.35 (cli) (built: Dec 21 2014 12:59:42)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies

The make configure for /usr/ports/lang/php5 does not give the "build with Apache" option.
 
Back
Top