Page MenuHomeDevCentral

Create qa account on Ysul for public_html testing
Closed, ResolvedPublic

Description

generate-qa-public_html
mkdir -p public_html/noautoindex

# Allow to test 200 for ~qa, 403 for ~qa/noautoindex
chmod 755 public_html
chmod 711 public_html/noautoindex

cd public_html

# 200 ALIVE
echo "ALIVE" > status.html

# CGI test
echo "#!/usr/bin/env perl" > test.cgi
echo 'print "Content-type: text/html\n\nALIVE\n";' >> test.cgi
chmod 755 test.cgi

# PHP test, no executable bit, no shebang
echo "<?php echo 'ALIVE';" > test.php
chmod 644 test.php