Clear suphp logs (Solution for Php internal 500 error)

ARUN Post in ERROR, PHP
0

cd /root/bin    (If no bin flder create one)

vi clear_suphp.sh

cd /usr/local/apache/logs
echo > suphp_log

save and exit

chmod 700 clear_suphp.sh

crontab -e

10 */1 * * * /bin/bash /root/bin/suphp_clear > /dev/null 2>&1                  (Will execute the cron in every 2hrs)

save and exit

service crond restart

« Prev: :Next »

Leave a Reply

You must be logged in to post a comment.