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




Share on Google Plus

About Md. Shahzad Alam

I am a passionate cloud and DevOps professional specializing in Linux and open-source solutions. Through this blog, I share my knowledge and experience with the community, offering tips and insights on cloud technologies and DevOps practices.
    Blogger Comment

0 comments:

Post a Comment