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