How do I know if PHP is installed on Ubuntu?

Bảo Vy

Member
How do I know if PHP is installed on Ubuntu?
Answer
How to check the PHP version on Linux
  1. Open a bash shell terminal and use the command “php –version” or “php -v” to get the version of PHP installed on the system. …
  2. You can also check for the package versions installed on the system to get the PHP version. …
  3. Let’s create a PHP file with content as shown below.
 

Tìm kiếm

Back
Top