Difference between revisions of "Tutorial: PhpRunner 9.8 and Photo Display"
Line 44: | Line 44: | ||
echo "rsyncing php dir to hadoop01" | echo "rsyncing php dir to hadoop01" | ||
rsync -azv ~/Documents/PHPRunnerOutput/* dominique@hadoop01.dyndns.org:/var/www/html/photos/ | rsync -azv ~/Documents/PHPRunnerOutput/* dominique@hadoop01.dyndns.org:/var/www/html/photos/ | ||
+ | ssh -tt dominique@hadoop01.dyndns.org <<EOF | ||
+ | chmod g+w /var/www/html/photos/files | ||
+ | exit | ||
+ | EOF | ||
# dump photo database to sql file | # dump photo database to sql file | ||
Line 58: | Line 62: | ||
ssh -tt dominique@hadoop01.dyndns.org <<EOF | ssh -tt dominique@hadoop01.dyndns.org <<EOF | ||
mysql -u root -pvoidfunction < ~/Downloads/NohoSkies.sql | mysql -u root -pvoidfunction < ~/Downloads/NohoSkies.sql | ||
− | |||
exit | exit | ||
EOF | EOF |