skip to Main Content

Bash get php versions available for apache

I want to get a list of all versions of PHP that have the apache module installed. This is my function : availableVersions () { available_versions=""; for php_version in `ls -d /etc/php/*/apache2` do available_versions="${available_versions}| ${php_version} "; done echo $available_versions; }…

VIEW QUESTION
Back To Top
Search