change php version ubuntu
//In ubunutu
Default PHP 7.1 is set on your system and you need to switch to PHP 5.6
$ sudo a2dismod php7.1
$ sudo a2enmod php5.6
$ sudo service apache2 restart
sudo update-alternatives --set php /usr/bin/php5.6$ sudo update-alternatives --config php
or
$ sudo a2enmod php7.1(version)
update-alternatives --set php /usr/bin/php7.4
update-alternatives --set phar /usr/bin/phar7.4
update-alternatives --set phar.phar /usr/bin/phar.phar7.4
update-alternatives --set phpize /usr/bin/phpize7.4
update-alternatives --set php-config /usr/bin/php-config7.4
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install -y php7.3
Also in PHP:
- ext dom php
- daye in php
- date time function to php date
- create DateTime from timestamp php
- create laravel project version 5.8
- array key is true
- assoc key unique php
- convert string to date php
- add console script in phpcode
- Warning: file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages: error:1416F086:SSL routines:tls_process_server_certificate:cer
- dequeue recaptcha wordpress
- create seed file laravel
- change php version ubuntu
- display errors off php
- check lenght phph
- can i back up mysql database from php code?
- base decode 64 php
- difference entre deux date php
- check text is in string or not php
- clear cache automatically laravel
- date format php l with capital
- CONTAIN PHP
- DATE fromat H:i j M Y
- clear all laravel caches