Archive for June, 2009

If you receive such error in the error logs or in the browser please follow the steps below.

For non suexec/suphp servers

Create a .htaccess file under the diretcory and add the code below

php_flag short_open_tag X

For suexec/suphp servers

Copy the server’s php.ini file under the diretcory and find for short_open_tag. Open the php.ini file and change it to

short_open_tag = X

Note :: The solution is valid only if you find the error due to line in your php/html file.
HTML Code:

<?xml version=”1.0″ encoding=”iso-8859-1″?>
OR
<?xml version=”1.0″ encoding=”UTF-8″?>

mail troubleshooting

Go through this post to troubleshoot mail issues on your server..

Check emails in mail queue

root@server [~]# exim -bp

Count number of emails in mail queue

root@server [~]# exim -bpc

Count number of frozen emails in mail queue

root@server [~]# exim -bp | grep frozen | wc -l

Delete forzen emails from the mail queue

exim -bp | awk ‘$6~”frozen” { print $3 }’ | xargs exim -Mrm

Count emails for an email account/domain

exim -bp | grep  username@domain.com | wc -l

Delete emails for an email account

exim -bp | grep  username@domain.com  | awk ‘{print $3}’ | xargs exim -Mrm ;

Delete emails sent through scripts

exim -bp | grep “<>” | awk {‘print $3}’ | xargs exim -Mrm

Count number of emails in queue for a domain/email account

exim -bp | tr ‘\n’ + | sed -e “s/++/=/g” | tr -d + | tr = ‘\n’ | awk ‘{print $5}’ | sort -n | uniq -c | sort -n

Delete emails for root

exim -bp | grep  root@server.hostname.com  | awk ‘{print $3}’ | xargs exim -Mrm ;

Hope this helps to troubleshoot mail issues on the server ;-)

eUKhost

100% Customer Satisfaction