clear

echo "Installing Yamwi ..."
echo ""

echo "  Step 1. Make temporary folder..."
mkdir yamwi/tmp

echo "  Step 2. Make www-data as yamwi owner..."
chown -R www-data:www-data yamwi

echo "  Step 3. Give read and executable permissions to owner, and nobody else..."
chmod -R u=rx,go= yamwi

echo "  Step 4. Give also write permission in temporary folder..."
chmod u+w yamwi/tmp

echo ""
echo "That's all. Enjoy doing maths on-line!"
