Http is not working even after restarting. I was getting following error in error log
=========
suEXEC mechanism enabled (wrapper: /usr/local/apache/bin/suexec)
No space left on device: mod_rewrite: Parent could not create RewriteLock file /usr/local/apache/logs/rewrite_lock
Configuration Failed
[Wed Jan 26 14:39:11 2011] [notice] suEXEC mechanism enabled (wrapper: /usr/local/apache/bin/suexec)
[Wed Jan 26 14:39:11 2011] [crit] (28)No space left on device: mod_rewrite: Parent could not create RewriteLock file /usr/local/apache/logs/rewrite_lock
=========
Solution
Fire this command on the server
fuser 443/tcp
It will show the process IDs which is currently running on port 443. Kill all pid’s using following commad.
kill -9
after killing all the procss
run this command now
ipcs -s | grep nobody
Removing these semaphores immediately should solve the problem and allow apache to start
ipcs -s | grep nobody | perl -e 'while (<STDIN>) { @a=split(/\s+/); print `ipcrm sem $a[1]`}'
Now restart the apache
service httpd restart
Reff: http://www.linuxgo.net/tag/apache-not-working/
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
*************************************************************************
Create custome php.ini
vi php.ini
[suhosin]
; Misc Options
suhosin.simulation = On [On is for disable suhosin and off means enabled]
Save the file and exit
# You also can disable it using .htaccess
create .htaccess file under /home/username/public_html
and past this line
php_flag suhosin.simulation On
save and exit the editor.
##########################################################
ERROR:
There was an error sending your message: Failed to add recipient: email@domain.com [SMTP: Invalid response code received from server (code: 451, response: Temporary local problem - please try later)]
Solution:
1. Login into server using SSH
2. cd /usr/local/cpanel/base/3rdparty/squirrelmail/config/
3. vi config.php
in this configuration file search $useSendmail = false; and replace false to true
then restart exim
and courier-imap
/etc/init.d/exim restart
/etc/init.d/courier-imap restart
If still problem exist then please make sure that domain name is exist in /etc/localdomains if domain is not there please add it and save the file.
and then restart exim and imap now your emails should start to work fine.
###########################################################
If you are able to send emails but facing problem for receiving check your logs.
tail -f /var/log/exim_mainlog |grep username or domain name
if you get this error
2011-03-12 06:04:36 H=mail-ew0-f46.google.com [209.85.215.46] F=<account@gmail.com> temporarily rejected RCPT <contact@yourdomain.com>: lowest numbered MX record points to local host
Check file vi /etc/localdomains domain name must be missing from this file. Add your domain name, save the file and exit after that restart exim.
If you receive following error in the error logs
” PHP Parse error: syntax error, unexpected T_STRING”
Then you can add following line in the .htaccess file
php_flag short_open_tag X
Or
If your server is SuExec enabled then you can use following code in php.ini file
short_open_tag = X
############################################################################################
ERROR: Could not complete request. Query: SELECT “INBOX
July 31st, 2011Amit HonraoNo comments
==============================================
If you are getting following error while accessing squirrel mail
ERROR: Could not complete request.
Query: SELECT “INBOX”
Reason Given: Unable to open this mailbox.
You just need to follow this steps.
cd /home/UserName/mail/Domainname.com/emailIDUsername/
mkdir new; mkdir cur; mkdir tmp
chown username.username*
Now try to access your email ID you will be able to access it without any problem.
###############################################################################
How to Catch spammer
-----------------------------
Check mail stats
exim -bp | exiqsumm | more
Following command will show you the maximum no of email currently in the mail queue have from or to the email address in the mail queue with exact figure.
exim -bpr | grep “<*@*>” | awk ‘{print $4}’|grep -v “<>” | sort | uniq -c | sort -n
That will show you the maximum no of email currently in the mail queue have for the domain or from the domain with number.
exim -bpr | grep “<*@*>” | awk ‘{print $4}’|grep -v “<>” |awk -F “@” ‘{ print $2}’ | sort | uniq -c | sort -n
Check if any php script is causing the mass mailing with
cd /var/spool/exim/input
egrep “X-PHP-Script” * -R
Just cat the ID that you get and you will be able to check which script is here causing problem for you.
To Remove particular email account email
exim -bpr |grep “ragnarockradio.org”|awk {‘print $3′}|xargs exim -Mrm
################################################################################################
Roundcube error :: SERVICE CURRENTLY NOT AVAILABLE! Error No. [500] on cpanel server
-----------------------------------------------------------------------------------------------------------------
This error occurred when roundcube database not update properly you can use following steps to resolve this issue.
1. login in your server using SSH
2. and fire this command
[root@server~]# /usr/local/cpanel/bin/update-roundcube-sqlite –force
Your roundcube error will be resolve.
##################################################################################################
How to enable viewing HTML content in Horde.
-----------------------------------------------------------
By default it is not possible for us to view the emails in HTML format using Horde webmail interface. All the html content will be displayed at the top of the page and will be requested to download.
To fix this issue, you have to enable “Inline HTML message viewing” for Horde in the server.
To enable “Inline html message viewing” you can perform the following steps:
1. Goto the horde imp configuration folder at /usr/local/cpanel/base/horde/imp/config
2. Edit the file mime_drivers.php using your favorite editor.
3. Change the following line
————————————————————
$mime_drivers['imp']['plain']['inline'] = false;
————————————————————
To
————————————————————
$mime_drivers['imp']['plain']['inline'] = true;
————————————————————
4. Restart the cpanel service in the server.
Now you will be able to view the html content using Horde webmail interface