Answers for "install php7.1 fpm centos 7"

PHP
0

upgrade php 7.3 centos 7

sudo yum -y install http://rpms.remirepo.net/enterprise/remi-release-7.rpm 
sudo yum -y install epel-release yum-utils

sudo yum-config-manager --disable remi-php54
sudo yum-config-manager --enable remi-php73
  
sudo yum update  

chmod -R 777 vendor
php artisan view:clear
php artisan config:cache

sudo chgrp www-data storage -R (Note: www-data is apache on Centos 7)
sudo chmod g+rwx storage -R


if still doesn't work try:
sudo setfacl -R -d -m g::rwx storage
Posted by: Guest on August-25-2020
1

install php 7.4 fpm

<?php
// Step 1: Setup PHP with Apache2 HTTP Server

sudo apt update
sudo apt install apache2

sudo systemctl stop apache2.service
sudo systemctl start apache2.service
sudo systemctl enable apache2.service

// Step 2: Install PHP 7.4 to Support Apache2

sudo apt-get install software-properties-common
sudo add-apt-repository ppa:ondrej/php

sudo apt update

sudo apt-get install php7.4 libapache2-mod-php7.4 php7.4-cli php7.4-mysql php7.4-gd php7.4-imagick php7.4-recode php7.4-tidy php7.4-xmlrpc

// Step 3: Configure PHP 7.4 for Apache2
  
sudo nano /etc/php/7.4/apache2/php.ini

file_uploads = On
allow_url_fopen = On
memory_limit = 256M
upload_max_filesize = 100M
max_execution_time = 360
date.timezone = America/Chicago
<IfModule mod_dir.c>
     DirectoryIndex index.html index.cgi index.pl index.php index.xhtml index.htm
</IfModule>
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet

sudo systemctl restart apache2.service
?>
Posted by: Guest on March-09-2021

Browse Popular Code Answers by Language