toolkit/func/core/pkg_httpd/50-test-basic-php.sh
Louis Abel d42c919b09
Some checks failed
Build empanada images for imagefactory / buildx (push) Failing after 5s
Build empanada container images for lorax / buildx (push) Successful in 1s
func: add restorecon as in some instances httpd fails
2023-12-05 09:34:53 -07:00

10 lines
276 B
Bash
Executable File

#!/bin/bash
r_log "httpd" "Test basic php"
echo "<?php echo phpinfo(); ?>" > /var/www/html/test.php
# This isn't normally needed, it should just work
restorecon -R /var/www/html
curl -s http://localhost/test.php | grep -q 'PHP Version' > /dev/null 2>&1
r_checkExitStatus $?