How to check which php version is default enabled in Ubuntu



Check which PHP version is by default enabled
php -i | grep -i '^php'

Check on server webbrowser , create php info file

$ sudo vim /var/www/html/info.php
<?php
phpinfo();
?>

now, check on webbrowser : http://server-ip/info.php




0 Comments