Hello, please could somebody help how to install php5 on the OpenSuSe Tumbleweed. php7 is not supported for my site.
which repository should I add to system?
Did you try https://software.opensuse.org/search?
It lies. When searching for php5 it returns repository that contains only php7. If you know where php5 is available, why not just post link here?
I wondered if the OP knew the next step (after one sees that it is not on the standard repos) to take in the searching process.
I did a short try myself and got entries that I thought would answer the OPs whish. I did not investigate further to check if there is any “lying” there (why should I), but took it as for what I read.
So, as far as I thought, I was
- provioding a rather direct link to what was searched for;
- as an extra showing how to use the openSUSE software search site for the future.
And no, I do not know another, not lying, link to a PHP5 repo.
http://download.opensuse.org/repositories/devel:/languages:/php:/
Pick the version you want. But IMHO you should update your website software.
Thank you for help. But there are only repos for php 5.6 and Leap. Not for tumbleweed. I’ve tried to add following repo http://download.opensuse.org/repositories/devel:/languages:/php:/php56/openSUSE_Leap_42.3/
and when install php modules php5-mcrypt catched error
Problem: nothing provides libmcrypt.so.4()(64bit) needed by php5-mcrypt-5.6.39-1.3.x86_64
Solution 1: do not install php5-mcrypt-5.6.39-1.3.x86_64
Solution 2: break php5-mcrypt-5.6.39-1.3.x86_64 by ignoring some of its dependencies
so looks like version of leap repo mismatch.
Never ever mix repos of various openSUSE versions, this may seriously bork your system.
Ok, how to install php5 on tumbleweed if there are not php5 repo for that? only way is compile from source?
You could, at own risk, try that, or try one of the home: repos. But, like said, you will need to upgrade your website anyway from using php5 to using php7. Of run in off a VM with some older LTS linux version that does serve and maintain php5.