Jump to content

Best way to get PHP 7.1+?


Recommended Posts

Posted

My site is hosted on Debian Stretch, partly because I like its reputation for being rock-solid. Only thing is its packages lack the newest features. For example, it doesn't have packages for PHP 7.1 or higher; only PHP 7.0. This is normally not a problem, but with Invision Community 4.4 requiring at least PHP 7.1, it's suddenly started to be one.

For now, I've imported the sury.org repository as recommended by several articles, but it feels bad having to import a repository that's neither owned by the distro nor the app author. So here I am, looking to see what other people are doing to help decide how to move forward. Does anyone else here use Debian to host their Invision Community install? If so, are you doing anything different? If not, what are you using?

My actual server runs Proxmox, so I have the ability to switch to something completely different if it makes sense to do so, but I'd rather not reinstall completely if I can help it.

Posted

I used to hate the feeling of using third-party PPA's as well, but as long as you're careful, do your research and don't go overboard with them, they're completely fine to use.

Compiling PHP manually is a horrendous pain and not at all worth the trouble. Even the PHP devs themselves advise against this (I've had the liberty of discussing this subject with them once years ago.)

Posted

Also, just to maybe put your mind more at ease, Ondřej Surý is the main Debian package maintainer for PHP. The packages available in the official Debian and Ubuntu repos were assembled by him. His PPA is probably as “secure” as you will get in terms of PPAs, and is pretty much the gold standard for using a PPA to have access to versions of software not part of the official repo. There’s very few that would make my list as suitable for a production environment, but it’s one of them. 

Posted

I too am having the same issue. On the latest stable Debian which only supports PHP 7.0. I rather feel like this is a messup on Invision's part by not supporting what Debian had. 😕

Posted

My recommendation is to use an OS that is more for server usage like Centos as many developers work on it for there scripts e.t.c

Debian is the most stable system by using well tested for a long time software but web is moving a lot faster as technologies updated almost daily....

Requiring Ipb to use some old versions and not get the latest technologies in my opinion is not what they should do....

Flexibility is one of the many things that you must have in mind when you build your server.

Ipb on latest version 4.4 supports php 7.3.x and on my setup on Centos i need a minute to get it up and running. If something goes wrong i can go back to any version in a minute..

 

Posted
14 hours ago, Tarun said:

I too am having the same issue. On the latest stable Debian which only supports PHP 7.0. I rather feel like this is a messup on Invision's part by not supporting what Debian had. 😕

Use a PPA as discussed above. Stable Debian != specifically set up for modern web apps. It’s just stable Debian. This is the recommendation of the guy who is effectively in charge of Debian PHP builds. 

Posted

I took the repository from https://deb.sury.org

apt-get install ca-certificates apt-transport-https 
wget -q https://packages.sury.org/php/apt.gpg -O- | apt-key add -
echo "deb https://packages.sury.org/php/ stretch main" >> /etc/apt/sources.list.d/php.list
apt-get update
apt-get install php7.1 php7.1-curl php7.1-xml php7.1-readline php7.1-mysql php7.1-mcrypt php7.1-mbstring php7.1-json php7.1-gd php7.1-zip
apt-get upgrade
a2dismod php7.0
a2enmod php7.1
service apache2 restart

 

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...