Kategorie: VestaCP

PHP Installation 7 CENTOS and the panel VESTACP

I was looking for a long time the possibility of installing php 7.X for Centosa7 and panel vestacp.

Us alone installer installs PHP version 5.6 because that is the default repositories.

I was able to run without invasive php7 on a server with CentOS and the whole comes down to perform several commands.

We can replace php with this method 5.6 version 7.0.X or 7.1.X

We start by updating:

yum update

Then we check the currently installed version of php:

php -v

Installing the necessary package:

sudo yum install yum-utils

Then we add a dependent repository which version of php we want to install:

Dla PHP 7.1

yum-config-manager --enable remi-php71

dla PHP 7.0.X

yum-config-manager --enable remi-php70

Then we update:

yum update

When everything went well, we restart the services: php, httpd oraz nginx:

HTTPD:

sudo service httpd restart

PHP i Nginx:

sudo service php-fpm restart && sudo service nginx restart

Again, we can check the php version with the command

php -v

Instead of the version 5.6 we should see the chosen version of php:

PHP 7.1.8 (cli) (built: Aug 2 2017 12:13:05) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies

Linux

Udostępnij
Opublikowane przez
Linux

Recent posts

KeePass2 2.52 w Ubuntu 22.04

The guide below describes how to install KeePass on Ubuntu. Całość wykonamy za pomocą kilku poleceń

2 years temu

Installing Master PDF editor in Ubuntu 22.04

Master PDF Editor is a comprehensive PDF program, which includes many features. Oprócz tworzenia i edycji

2 years temu

iotop - memory monitoring

Iotop jest prostym narzędziem dla systemów Uniksowych umożliwiającym monitorowanie użycia dowolnego nośnika pamięci flash/hdd/ssd w

2 years temu

Run multiple commands in one cron job

You can separate two or more commands with semicolons (;), Semicolon (;): służy do oddzielania

2 years temu

Changing the exif data of a photo in the Linux terminal

Poniższy poradnik opisuje w jaki sposób za pomocą konsoli możemy dokonać edycji danych zdjęcia exif.

2 years temu

Installing Rocket.Chat Server on Rocky Linux 8

The following guide describes how to install Rocket.Chat on Rocky Linux 8 Całość bardzo prosto zainstalujemy

2 years temu