ptc9955
Can you provide me with the error logs of apache and mysql?
apache:
/www/wwwlogs/your-website-name-error_log
mysql:
/www/server/data/your-host-name.err
You can also schedule tasks to automatically start mysql/apache after it stops
pgrep -x mysqld &> /dev/null
if [ $? -ne 0 ]
then
echo "At time: `date` :MySQL is stop ."
/etc/init.d/mysqld start
fi
pgrep -x httpd &> /dev/null
if [ $? -ne 0 ]
then
echo "At time: `date` : Apache is stop ."
/etc/init.d/httpd start
fi
