How can I tell if PHP is running on Linux?

Julipkq

New member
How can I tell if PHP is running on Linux?
Answer
Checking and printing PHP version installed on your Linux and Unix server
  1. Open the terminal prompt and then type the following commands.
  2. Login to the server using the ssh command. …
  3. Display PHP version, run: php –version OR php-cgi –version.
  4. To print PHP 7 version, type: php7 –version OR php7-cgi –version.
 

Tìm kiếm

Back
Top