How to install PHP 8 to 64-bit Arm architecture(aarch64)? - php

I use Oracle Linux with 64-bit Arm architecture in Oracle Cloud Ampere A1 Compute.
Since official Oracle Linux only support up to 7.4 and Remi repo also doesn't support aarch64 , how to install PHP 8 to aarch64/arm64 especially oracle Linux or other RHEL base Linux?
I don't want to build from source, but if it's the only way to install please give me steps by steps. Because I tried to build from the source but failed with so many errors (I tried with some different configs).
I think Oracle Ampere A1 is similar to AWS Graviton2, but I don't see any reference also how to install PHP 8 to AWS EC2 Graviton2. Is PHP8 really not supported on arm64?

To list available Module Streams for PHP:
$ dnf module list php
To install PHP 7.4 :
$ sudo dnf install #php:8.0

Related

How to download PHP -thread safe now that Homebrew no longer support --with-thread-safety?

I need to use PHP pthreads on Mac OS High Sierra, but Homebrew is no longer supporting downloads of PHP --with-thread-safety.
How do I get and install a thread safe version of PHP for Mac OS, Php v7.1.16 without homebrew?
If it is going to have to be some sort of manual install - does anyone have step by step directions for the mac or know where I can get instructions?
I have been looking on the internet for instructions for 5 hours now. I'm tired and can't believe that no one has any posted info on this.
I was able to get PHP 7.2.5 installed on Mac OS HighSierra with ZTS/Thread safety by using phpbrew.
Install Steps I took:
Downloaded phpbrew from http://phpbrew.github.io/phpbrew/ and installed with their directions. Please note at the end of the installation, they give you further instructions for setting up your ~/.bashrc to load phpbrew, look for them at the terminal.
Once you have phpbrew running you are ready to install php with zts by using the command below (of course you can install all of the extensions that you like by checking the installation for extension instruction)
phpbrew install php-7.2.5 +openssl='/usr/local/opt/openssl/' -- --enable-maintainer-zts --with-curl=/usr/local/
It is important to have openssl and curl already installed before installing php and you must point to their location on your computer at the install line as I have done above. You can add all the extensions you need, but you must have the openssl and curl because I had a ton of problems with installation without them. But you could try omitting.
For those of you who are using PHP ZTS so that you can go on to install pthreads --ONLY PHP 7.2 and above works with Krakjoes pthread-master which you can download and follow the installation at https://github.com/krakjoe/pthreads

PHP 5.6 Mcrypt x64 and MIT Scheme not compatible?

I have PHP 5.6 PHP 5.6.17-1+deb.sury.org~trusty+2 (cli) installed currently, on Mint 17.2 x64 (Cinnamon). If I try to install mit-scheme, I get:
sudo apt-get install mit-scheme
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
dbconfig-common libjs-codemirror libjs-jquery-cookie libjs-jquery-event-drag
libjs-jquery-metadata libjs-jquery-mousewheel libjs-jquery-tablesorter
libjs-jquery-ui php-gettext
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
libmcrypt4:i386 libmhash2:i386 libpq5:i386
Suggested packages:
libmcrypt-dev:i386 mcrypt:i386 mit-scheme-dbg:i386
The following packages will be REMOVED:
libmcrypt-dev libmcrypt4 mcrypt php5-mcrypt phpmyadmin
The following NEW packages will be installed:
libmcrypt4:i386 libmhash2:i386 libpq5:i386 mit-scheme:i386
0 upgraded, 4 newly installed, 5 to remove and 38 not upgraded.
Need to get 6,668 kB of archives.
After this operation, 5,040 kB disk space will be freed.
Seems the problem is between libmcrypt4 and libmcrypt4:i386. Is there not an x64 version of Scheme, or a way to keep those two mcrypt versions from interfering with each other? Best (of poor) options looks like installing Scheme in a 32bit virtual machine. Another option is compiling PHP from a 32 bit source, if that is possible on a 64bit machine. Anyone else run into this issue?
I actually ended up building mit-scheme from source outside my package manager on gentoo two years ago and it's still working. I would suggest you install mit-scheme from the source (https://www.gnu.org/software/mit-scheme/liarc-build.html) or update to jessie, as jessie includes an amd64 version, whereas wheezy does not. https://packages.debian.org/jessie/mit-scheme
So within wheezy the answer is not. However I know for sure you can compile 9.0.1 and later to a 64-bit target.
file /usr/local/bin/mit-scheme-x86-64
/usr/local/bin/mit-scheme-x86-64: ELF 64-bit LSB executable, x86-64, version 1 (GNU/Linux), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.9, not stripped

Is PHP Tidy still available in Centos 7

I'm currently trying to install PHP Tidy on a CentOS 7 server (I'm running PHP Version 5.4.16 if that helps as well), but am having problems with the install.
I've been running (as per the documentation)
yum install php-tidy
but get the following error:
No package php-tidy available.
Error: Nothing to do
I've found someone having the same problem here, and the answer is listed as
When I installed via CentOS tidy.x86_64 and php-tidy.x86_64 were installed but Red Hat could not find the php-tidy.x86_64 rpm and I had to add the EPEL repository, then I managed to install php-tidy.x86_64 and it worked
...but I'm not sure what to make of that.
I've also found via the official Tidy documentation:
On Redhat-ish linux, you must install both libtidy and libtidy-devel (PHP 5.x):
sudo yum install libtidy libtidy-devel
...however I also get the same "No package..." error.
My only lead is that it doesn't appear that any of the documentation has to do with CentOS 7 (I believe they use CentOS 6 or 5, or an older version of PHP) and some of the suggestions are that some systems require yum install php5-tidy instead. So hence my original question on if Tidy is supported on CentOS 7, or if there is something else I might be doing incorrectly.
Use the webtatic repo ... PHP 5.6 on CentOS/RHEL 7.1 and 6.7 via Yum
https://webtatic.com/packages/php56/
php56w-tidy

Laravel Is php-mcrypt necessary for https and Auth?

Everything is in the title : can I use https and the Auth:: class whithout having installed php mcrypt ? (I'm on a redhat enterprise linux 6.1 on architecture s390x, it's just impossible to find pre-compiled packages).
If it's possible then I would just use Laravel whithout Mcrypt...
mcrypt is a requirement of Laravel, you simply cannot run a laravel app without having mcrypt installed.
The following link may help with installing mcrypt:
http://injustfiveminutes.com/2012/11/23/install-php-mcrypt-extension-on-rhel-6/
Excerpt:
The php-mcrypt extension is not available on Redhat Enterprise Linux 6
although some applications such as Magento or phpMyAdmin require it to
work properly. We can easily install it though from the Fedora Project
repositories.
1) Download the following RPM pacakges:
wget http://dl.fedoraproject.org/pub/epel/6/x86_64/php-mcrypt-5.3.3-1.el6.x86_64.rpm
wget http://dl.fedoraproject.org/pub/epel/6/x86_64/libmcrypt-2.5.8-9.el6.x86_64.rpm
2) Install them using YUM:
$ yum localinstall php-mcrypt-5.3.3-1.el6.x86_64.rpm
$ libmcrypt-2.5.8-9.el6.x86_64.rpm
3) Reload Apache server to load the extension up:
$ service httpd restart

MongoDB PHP driver can't installed Centos 6 cloud server

I have installed MongoDB service in my Centos 6 cloud server. Now i need to install in my server php-pecl-mongo-1.2.10-1.el6.remi.x86_64.rpm... but it gives "packages not found". Can anyone fix this problem? My php version is PHP 5.3.3.
I am using putty for configuring Centos 6 server. I have admin privilege to configure php.ini.
You could:
try RPM installing php-pecl-mongo without a specific version
point to a specific RPM url for installation, eg. using rpmfind.net => php-pecl-mongo
install using sudo pecl install mongo per the Unix installation instructions

Categories