Cheat Sheets

PHP - Modules Load

Description

Checks if all modules do load. Fuzzy check that uses the "php" from path. This might not always be the one you want.

Check Script: php-modules-load.sh

#!/bin/bash

php=$(which php) if [ -f "$php" ]; then fails=$($php -m 2>&1 >/dev/null) if [ "$fails" != "" ]; then result_failed "$php module load failures: $fails" else result_ok fi fi
Comment on Disqus