Search
 
SCRIPT & CODE EXAMPLE
 

PHP

switch between php version ubuntu nginx

sudo update-alternatives --config php
Comment

switch between php version ubuntu nginx

sudo service nginx restart
sudo service php7.1-fpm or php7.2-fpm  restart
Comment

switch between php version ubuntu

  alias setphp="sudo update-alternatives --config php;sudo update-alternatives --config phar; update-alternatives --config phar.phar; a2dismod php*.*;systemctl restart apache2"

  Put the above alias in the

  sudo nano ~/.bashrc
  
  #After the above command just run this command
  
  a2enmod php<Your Desired Version> # like, a2enmod php7.4
  
  Now you can run command "setphp" from your terminal.
Comment

PREVIOUS NEXT
Code Example
Php :: php exit foreach 
Php :: iconify cdn 
Php :: get all pages list from specific template 
Php :: php is variable a number 
Php :: Deleting all files inside a directory laravel 8 
Php :: print date in php 
Php :: only alphabets and space is allowed validation laravel 
Php :: php remove bom 
Php :: php utf 8 sqlsrv 
Php :: laravel change column type 
Php :: Wordpress hook for newly published post 
Php :: change laravel mix to run on different port 
Php :: php truncate string 
Php :: select in php mysql 
Php :: carbon time ago laravel 
Php :: laravel get last 5 records 
Php :: wordpress update post php 
Php :: validate audio file in laravel 
Php :: get count of results based on groupBy laravel 
Php :: laravel php short if 
Php :: laravel dropIndex 
Php :: php validate phone number 
Php :: php auto scoll page with output 
Php :: php append file 
Php :: php string replace space 
Php :: post thumbnail 
Php :: stack once laravel 
Php :: laravel tinker factory 
Php :: InvalidArgumentException Unknown format "sentence" 
Php :: Morocco 
ADD CONTENT
Topic
Content
Source link
Name
9+6 =