dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
dnf install https://rpms.remirepo.net/enterprise/remi-release-8.rpm
dnf module install php:remi-7.2
dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
dnf install https://rpms.remirepo.net/enterprise/remi-release-8.rpm
dnf module install php:remi-7.2
if(!in_array($_SERVER['REMOTE_ADDR'],array('xx.xx.xx.xx'))){
die();
}
vi /etc/php-fpm.conf
Replace the comment symbol # with semicolons ;
service php-fpm restart
yum install php-soap
If you had something like this:
ProxyPassMatch “^/(.*\.php(/.*)?)$” “unix:/var/run/php-fpm/php.sock|fcgi://localhost/some/path” enablereuse=on
Advice is to change to SetHandler:
<Directory "/some/path"> <FilesMatch \.php$> ProxyErrorOverride on SetHandler "proxy:unix:/path/to/sock/php.sock|fcgi://localhost" </FilesMatch> </Directory>
apt-get install apt-transport-https lsb-release ca-certificates
wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg
echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list
apt-get update
apt-get install php7.1
apt-get install php7.1-cli php7.1-common php7.1-curl php7.1-gd php7.1-json php7.1-mbstring php7.1-mysql php7.1-opcache php7.1-readline php7.1-xml
[allowmethods:error] [pid 688212:tid 139871391713024] [client xx.xx.xx.xx:41682] AH01623: client method denied by server configuration: ‘PATCH’
this means server do not support PATCH, if this id directadmin server:
cd /usr/local/directadmin/custombuild
./build set http_methods GET:HEAD:POST:PUT:DELETE:PATCH
./build rewrite_confs
php -r 'echo date("H:i:sa") . "\n";'
error_reporting = E_ALL & ~E_NOTICE & ~E_WARNING
Laravel auth issue using socialite.
https://developers.facebook.com/apps
Valid OAuth redirect URIs should contain full redirect URL from config/services.php
apk add apache2 php5-apache2
rc-service apache2 start
rc-update add apache2
echo ok >> /var/www/localhost/htdocs/index.html
Replacement of default PHP by version 5.6 installation (simplest):
yum-config-manager --enable remi-php56
yum update
Parallel installation of version 5.6 as Software Collection (x86_64 only):
yum --enablerepo=remi install php56
Replacement of default PHP by version 5.5 installation (simplest):
yum-config-manager --enable remi-php55
yum update
Parallel installation of version 5.5 as Software Collection (x86_64 only):
yum --enablerepo=remi install php55
It means you are missing phar extension, you will face this error until php will show:
php -i | grep phar –color=always
Registered PHP Streams => https, ftps, compress.zlib, compress.bzip2, php, file, glob, data, http, ftp, zip, phar
Phar-based phar archives => enabled
Tar-based phar archives => enabled
ZIP-based phar archives => enabled
phar.cache_list => no value => no value
phar.readonly => On => On
phar.require_hash => On => On
cd /usr/local/directadmin/custombuild
./build set opcache yes
./build opcache
cd /var/www/html
wget https://raw.githubusercontent.com/rlerdorf/opcache-status/master/opcache.php