This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if curl --head -sf http://yourdomain.com/some-script.php -o /dev/null; then | |
echo "PHP FPM is up" | |
else | |
service php5-fpm restart && service nginx restart && service mysql restart | |
echo "Opps .. service was down" | mail -s "PHP-FPM Service Down" [email protected] -aFrom:[email protected] | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Setting up permission on Magento 1.9 | |
# set all directories and subdirectories from the application to 775 | |
# set all files to 644 | |
# set directory app/etc/, var/, media/ and all its files and subdirectories to 777 | |
cd <your Magento install dir> | |
find . -type d -exec chmod 775 {} \; | |
find . -type f – exec chmod 644 {} \; | |
chmod 777 -R app/etc/ |