Solved install older php version

Hi,
Curent version of php56 in pkg or port is PHP 5.6.22.
Could anyone please tell me if its possible to install version 5.6.20 without hacking anything?

Thank you
 
Don't know, if you consider the following as 'hacking something', anyway, here we go:

mkdir -p ~/my_old_ports
cd ~/my_old_ports
svn checkout -r r414019 http://svn.freebsd.org/ports/head/lang/php56 php56-20
cd php56-20
pkg delete php56
make install clean

Note, the revision number is the one before PHP 5.6.20 was updated to 5.6.21 -- see: http://svnweb.freebsd.org/ports/head/lang/php56/?view=log
 
Thank you obsigna ,
This look good to me:)
What will hapen to all the php extension that I curently have?
Will they need reinstalling?
 
The command pkg delete php56 should have deinstalled all the extensions right away, and yes you need to repeat the other commands for the PHP extensions each, since I have some doubts, whether the meta port lang/php56-extensions would work outside of the regular ports tree.

For example security/php56-openssl:
cd ~/my_old_ports
svn checkout -r r414019 http://svn.freebsd.org/ports/head/security/php56-openssl php56-20-openssl
cd php56-20-openssl
make install clean
 
Thank you obsigna ,
This look good to me:)
What will hapen to all the php extension that I curently have?
Will they need reinstalling?

It depends on how PHP handles backwards/forwards compatibility between the main interpreter and the add-ons. This is not something FreeBSD ports can have any influence on.
 
Back
Top