toolkit/func/core/pkg_httpd/50-test-basic-php.sh
2021-07-04 23:50:25 -07:00

8 lines
198 B
Bash
Executable File

#!/bin/bash
r_log "httpd" "Test basic php"
echo "<?php echo phpinfo(); ?>" > /var/www/html/test.php
curl -s http://localhost/test.php | grep -q 'PHP Version' > /dev/null 2>&1
r_checkExitStatus $?