Create testing PHP file
Aus HS Syswiki
bkp001.hr19:~ # cat phptest.sh #!/bin/bash WEBPATH=/home/www/web0/html PHPFILES=( "test.php" "test.php5" "test.php52" "test.php52gd" "test.php52-spez" "test.php53" "test.php53gd" "test.php53-spez" "test.php54" "test.php54gd" "test.php54-spez" "test.php55" "test.php55gd" ) for f in "${PHPFILES[@]}" do if [ ! -f $WEBPATH/$f ] then printf "File $WEBPATH/%s NOT exist - to create it\n" "${f[@]}" cat >> $WEBPATH/$f << EOF <? phpinfo(); ?> EOF fi chown web0:web0 $WEBPATH/test.php* done