L
L
leksoQA2017-07-09 14:38:56
PHP
leksoQA, 2017-07-09 14:38:56

How to switch PHP version in Apache2?

Good afternoon.
php -v gives:
PHP 7.0.21-1~ubuntu14.04.1+deb.sury.org+1 (cli) (built: Jul 6 2017 09:38:10) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies And in Apache2 after executing phpinfo
() shows that the version used is
5.5.9
folder etc.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Oleg, 2017-07-09
@leksoQA

a2dismod php5
a2enmod php7.0
service apache2 restart

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question