Quantcast
Channel: cPanel Forums
Viewing all 5759 articles
Browse latest View live

Starting Dovecot Imap: Warning: fd limit (ulimit -n) is lower than required under max

$
0
0
Hi Friends,

One of our client getting these types of LFD messages :-

Quote:

------------------
Starting Dovecot Imap: Warning: fd limit (ulimit -n) is lower than required under max. load (100 [ 1000), because of default_client_limit
[ OK ]
Starting Dovecot Imap: Warning: fd limit (ulimit -n) is lower than required under max. load (100 [ 1000), because of default_client_limit
Last died with error (see error log for more information): fcntl(F_GETFD, -1) failed: Bad file descriptor
[ OK ]
Starting Dovecot Imap: Warning: fd limit (ulimit -n) is lower than required under max. load (100 [ 1000), because of default_client_limit
Last died with error (see error log for more information): fcntl(F_GETFD, -1) failed: Bad file descriptor
[ OK ]
Starting Dovecot Imap: Warning: fd limit (ulimit -n) is lower than required under max. load (100 [ 1000), because of default_client_limit
Last died with error (see error log for more information): fcntl(F_GETFD, -1) failed: Bad file descriptor
[ OK ]

------------------
I have gone through different forums and post but couldn't get exact solutions on this.

While restart dovecot at first time I got an error like this :-
Quote:

-----
-bash-4.1# service dovecot restart
Stopping Dovecot Imap: [FAILED]
Starting Dovecot Imap: Last died with error (see error log for more information): fcntl(F_GETFD, -1) failed: Bad file descriptor
[ OK ]
-----
After executing this command again it started ok.

Can you please let us know why such errors occurs?

P.S. At the file /etc/security/limits.conf there is an line for dovecot soft limit and hard limit which was set to 40000.

Please assist !!

Trial License Question

$
0
0
dear all,

can any one advise me how i get some additional days of licence cpanel as we are preparing the payment process.


thank you

Cannot access WHM after installation

$
0
0
So this is my first crack at CPanel and CentOS and I'm having issues.
First off, I've loaded CentOS onto a VM in Windows Server 2012 Hyper-V.
I got CentOS loaded and downloaded and installed CPanel per the instructions. When I go to http://192.168.5.72:2087 it tells me the web page can't be displayed. I checked the error_log and I posted the output of it on the attachment.
Can anyone please help me get past this???
Attached Images

WHM & IPv6

$
0
0
ok, let me try and get some help here. I understand that IPv6 is to help alleviate the finite number of IPv4s in use. I have also heard that we should make sure our websites are IPv6 ready using a tester like this: IPv6 test - web site reachability

Now the question. Our data center can provide 1 IPv6 to us. Do we just get our server management company to set this up inside WHM?

Would we bind all websites to this 1 IPv6 or we do need a dedicated one for each domain?

In addition to WHM setup of IPv6, do we need to do anything to the server or domain content to make sure we are IPv6 ready?

A little new at this. Any info you care to share would be great!

root access via WHM denied

$
0
0
I just setup a new CPanel WHM server within the last 24 hours. everything was working fine until I shutdown the server and transferred it into the Server rack. After powering it everything works except I can't log in to WHM with root account. I am very sure of the password because the same credentials is able to give me ssh access over the same IP. The server sits behind a firewall so it is configured with a private IP address which is NAT to an assigned public IP address.

I followed some past threads and disabled cphulk but still did not get access. Before shutting down however, I created two hosting accounts. I am able to log in to the accounts with the account usernames and passwords but can't get access with the root account.

How do I resolve this in time as this is suppose to be a proof of concept to get my office to invest in licensing our new servers and I am very sure I have only 15 days before the license the expires.

Mail Delivery Reports

$
0
0
Hi,

I need to get all the emails sent and received for a domain for a period of time.

I could get all the data via the Mail Delivery Reports from WHM, but I need to send those stats to the client.

I could do a huge copy paste, but I would lost formatting and it would be a pain to sort everything out.

I checked in cPanel and there's no module to get the same data from there.

So, I am wondering if I could do some command line to get results of the Mail Delivery Reports in plaintext?

I did try

cat /var/log/exim_mainlog | grep @domain.com > domain.com.txt

But it didn't load as many results as I can have in the Mail Delivery Report.

Please help,

Thanks,
Julien

Demo API account

$
0
0
Hi all,

I have following question;
I need to develop a rather simple API call against cPanel. Docs and everything is OK and I believe I will find my way around.

However what I am looking for is a demo API account / server. I only need domain (single user) access.

It would be a bit overkill to take VPS with unlimited cPanel license which would be at cheapest +/- 20 euro's a month.

cPanel offers demo accounts, to be more specific the 'Domain owners' demo. However I am not sure API access is enabled on that one? If not, any other suggestions?! :)

Also, another question; API ACL works just like GUI does, yes? If I provide single user / domain owner credentials I will be able to access API functions related to that ACL?

Thanx!

Newsletter Blast sending duplicates to subscribers using mailman

$
0
0
Hi,

We've been using mailman for quite a long time now, and suddenly the last newsletter we sent out sent duplicates to random users as far as I can tell.

All the people that have e-mailed us about this issue were specifically yahoo addresses. Reports of 4-50 duplicates per user were sent to them. We only have one list of users we send users to, and this is the first time this has ever happened.

I have a few accounts added to the list myself, and my aol account did not recieve the email at all. Previously the aol account received the messages, I had a couple of the newsletters in my account still unread.

So, my question specifically... does anybody have advice in what I should look for as to why this happened? I read a post from 2002 that was somewhat similar to this issue, but it had to do with not haveing enough memory... and currently my server has 53gigs free, so that couldn't be the issue... unless of course you have to 'allocate' memory to mailman in some config file. We have about 12k users on our list.

Thank you in advance, and let me know if I lacked some details to help solve my issue.

Thanks,
Doug

Mod_Security Broke My Wordpress!

$
0
0
I really want to say something rude, but I'm going to try to be constructive. My server auto-updated to WHM 11.40.1 last night, and I have been unable to login to ANY Wordpress site on my server since.

After 4 hours beating my head against a wall trying everything (you can read the whole saga here on Wordpress.org), I finally figured that the SERVER was blocking wp-login.php at every turn. I tried disabling plugins, tried the default theme, tried increasing PHP's memory, tried disabling .htaccess for that account, tried everything.

I was only able to determine that something at the server level was causing problems after DELETING the wp-login.php file, resubmitting the cached form, and still getting a "." result rather than a 404.


I went into Mod Security and found a page full of these reported entries:

Code:

2014-01-08        12:00:11        208.104.55.77        /wp-login.php HTTP/1.1        ******.com        Access denied with code 402 (phase 2). Operator EQ matched 0 at ARGS. [file "/usr/local/apache/conf/modsec2.user.conf"] [line "1852"] [id "10124455"]        402

2014-01-08        11:57:22        66.90.168.63        /wp-login.php HTTP/1.1        ******.com        Access denied with code 402 (phase 2). Operator EQ matched 0 at ARGS. [file "/usr/local/apache/conf/modsec2.user.conf"] [line "1858"] [id "10124455"]        402


After I commented out two following mod_security rules, I was immediately able to login to Wordpress again:

Code:

#Wordpress brute force signature, different variant  ~JoeB 2013-05-14
#Added valid actions to @pm part ~ArielP 2013-06-09
SecRule REQUEST_FILENAME "wp-login\.php" "phase:2,deny,log,status:402,t:lowercase,chain,id:10124454"
SecRule REQUEST_METHOD "^post$" chain,t:lowercase
SecRule &ARGS:wp-submit "@eq 0" chain,t:urlDecodeUni,t:lowercase
SecRule ARGS:action "!@pm logout lostpassword postpass register resetpass rp" t:urlDecodeUni,t:lowercase

#This is needed for the protection when action is not specificed during login
#Wordpress brute force signature, different variant part 2 ~JoeB 2013-05-14
SecRule REQUEST_FILENAME "wp-login\.php" "phase:2,deny,log,status:402,t:lowercase,chain,id:10124455"
SecRule REQUEST_METHOD "^post$" chain,t:lowercase
SecRule &ARGS:wp-submit "@eq 0" chain,t:urlDecodeUni,t:lowercase
SecRule &ARGS:action "@eq 0" t:urlDecodeUni,t:lowercase

Again, I'm trying to be constructive, but if you guys are going to force 2,000 lines of security rules on people, please make sure they don't break the innocent login of the #1 blog platform on the web. And maybe the first time a rule is tripped, an e-mail should be sent to the accountholder?

Turns out these mod_security rules were added by my webhost. :( :(

Wildcard SSL installation

$
0
0
Hi All,

As Subject, How do I install Wildcard SSL...

I have tried many times, still cant install it... Please HELP...

Wildcard SSL Domain...: *.abcd.com
WHM........................: https://whm.abcd.com:2087 <<< Wildcard SSL Installed

CPanel......................: cpanel.abcd.com << My Problem is I don't know how to install on this..

Please HELP, Thanks...

Mail delivery failed: returning message to sender

$
0
0
Dear Members,

I'm not able to receive all emails, i have no problems for receiving emails from yahoo, gmail....etc. can't receive emails from some of my customers, i have no issues for sending emails. i can send it to everyone. i have copied return email below. (i received it from one of my customer). my email address is test@loesche.ae.
Code:

------------------------------------------------------------------------

This message was created automatically by mail delivery software.

A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:

  test@loesche.ae
    retry timeout exceeded

------ This is a copy of the message, including all the headers. ------

Return-path: <riyas@nazmuae.com>
Received: from ns1.siteground270.com ([184.154.229.7] helo=serv01.siteground270.com)
        by se1.mailspamprotection.com with esmtps (TLSv1:DHE-RSA-AES256-SHA:256)
        (Exim 4.82)
        (envelope-from <riyas@nazmuae.com>)
        id 1W0aGQ-0007nJ-NQ
        for test@loesche.ae; Tue, 07 Jan 2014 11:16:28 -0600
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=nazmuae.com; s=dkim;
        h=Message-ID:Subject:To:From:Date:Content-Transfer-Encoding:Content-Type:MIME-Version; bh=d5ARCw2kCxQb4WySpU8ltOdSRUJ8E/vwWgIo90oy8LQ=;
        b=1UI2lXhfIKujheB+wdIMXudcVe+51tYK8XehoMHdHGaS3V5QBtFeasvURFQQY9NenqbPpgGVk6i7Eu6zWfoFO+PBovem4KZKgj2ZKWSkGYOVstv73HtS41BCpnrFl/GJEX/9shdgfRD3jr4WiHKd2eZJaBBLZ2n/ziTD3pqHk04=;
Received: from [127.0.0.1] (port=52040 helo=secure270.sgcpanel.com)
        by serv01.siteground270.com with esmtpa (Exim 4.80.1)
        (envelope-from <riyas@nazmuae.com>)
        id 1W0aGP-0005Jj-Fa
        for test@loesche.ae; Tue, 07 Jan 2014 11:16:25 -0600
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8;
 format=flowed
Content-Transfer-Encoding: 7bit
Date: Tue, 07 Jan 2014 11:16:25 -0600
From: Riyasudheen Mohammed <riyas@nazmuae.com>
To: <test@loesche.ae>
Subject: A
Message-ID: <3a1de609d9e60ac0f7f2e4c58fc42748@nazmuae.com>
X-Sender: riyas@nazmuae.com
User-Agent: Roundcube Webmail/0.8.5
X-AntiAbuse: This header was added to track abuse, please include it with any abuse report
X-AntiAbuse: Primary Hostname - serv01.siteground270.com
X-AntiAbuse: Original Domain - loesche.ae
X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12]
X-AntiAbuse: Sender Address Domain - nazmuae.com
X-Get-Message-Sender-Via: serv01.siteground270.com: none
X-Filter-ID: XtLePq6GTMn8G68F0EmQvUOm89wzusE77OHE3gGS+f9gUW/yh7mNprVkV+syb9a+IbhkXDlBdoRY
 5FE+hIOONYpGPQkXMAI1RDPhXGYX9YBfjxfh5O9pXIInUfqfS0o/IRvHEsrdAQ2MyVScbPZOzyQM
 QzAA7jA+lQmCRgpgJBEQvj32ud+UdZ5MQIguqx5CrMqcDukU7ou8T1Z4Ja7l2angpKWktHwD4KDO
 NX+gnNy8Ksk+aedMfNWSnJswrtlNP2q0UB2KE5EhUWLcuud29LTk7ArQmsz2DCrFH9D2pcZf2vEO
 CCTVt1ypWOTHOQnLMO/N40Z+4i6mmIsBQABuyTJ6cy4aZ6cMD+I/bMgb4BnUjVQzAeF2aUD5oSAL
 3WLKSbFAIf9m4MUTm2oJ7mORJFmpXRyQh8NowEJCwQdn0K0i1JJeD6z14tojCghj5HaChUFRmH/Q
 XSvvF7uL9sLLu7rjISvfi00X4FvL3Gbtv75UQNC1iP2xNqSDrxB1RZBPKdvTyBjtn1YZtaf24ZD2
 cbkp+CtvBKpwoAy/BY2IUGPonV+E7OMXRvgtdyMlnmWirHOoceisuv7pEMen6relzQzwFi9JahG5
 hoiEyQ+RmYcPSpSr7+2uMY2Z3vnJ2pFFqB4Zfazc8t/jUmJE5tBTkQ==
X-Originating-IP: 184.154.229.7
X-SpamExperts-Domain: siteground270.com
X-SpamExperts-Username: 184.154.229.7
Authentication-Results: mailspamprotection.com; auth=pass smtp.auth=184.154.229.7
X-SpamExperts-Outgoing-Class: unsure
X-SpamExperts-Outgoing-Evidence: Combined (0.39)
X-Recommended-Action: accept

Excessive processes running under user mysite

$
0
0
I am getting Excessive processes running under user test message a lot:-
Code:

User:testuser  PID:10553 PPID:8579 Run Time:29(secs) Memory:139704(kb) exe:/usr/bin/php cmd:/usr/bin/php /home/testuser/public_html/listeners.php
User:testuser PID:10564 PPID:3100 Run Time:29(secs) Memory:139704(kb) exe:/usr/bin/php cmd:/usr/bin/php /home/testuser/public_html/listeners.php

The code inside listeners.php is:-
PHP Code:

<?php
//-----------------------------------------------------------------------------------------------------------------
// Icecast2/Shoutcast Station Status 2.0  Php Module  - Dards, WhooshStream.com
// Description: this module use to grab the icecast server status and generate an xml data for AAC+ Flash player
// Note: the fsockopen php function must be enabled on your server for this script to work
//-----------------------------------------------------------------------------------------------------------------



$host         =    "192.168.1.2";         // ip or url of shoutcast server
$port         =    "8014";                  // port of shoutcast server 
$servertype    =    "shoutcast";            // shoutcast / icecast



// no do not edit the code below----------------------------------------------------------------------------------- 
$fp = @fsockopen($host$port$errno$errstr30);
if(
$fp)
{
    
$servertype=strtolower($servertype);
    switch(
$servertype){
        case 
"shoutcast":
            
fputs($fp,"GET /7.html HTTP/1.0\r\nUser-Agent: GET SEVEN (Mozilla Compatible)\r\n\r\n");
        break;    
        case 
"icecast":
        
fputs($fp,"GET /status2.xsl HTTP/1.0\r\nUser-Agent: GET SEVEN (Mozilla Compatible)\r\n\r\n");
        break;
    }
    
$data="";
    while(!
feof($fp))
    {
        
$data .= fgets($fp1000);
    }
    
fclose($fp);
    
$data              ereg_replace(".*<body>"""$data);
    
$data              ereg_replace("</body>.*"","$data);
    
$data_array        explode(",",$data);
    
    
//print_r($data_array);
 
    
switch($servertype){
        case 
"shoutcast":
            
$listeners         $data_array[0];
            
$status            $data_array[1];
            
$peak_listeners    $data_array[2];
            
$maximum_listeners $data_array[3];
            
$unique_listeners  $data_array[4];
            
$bitrate           $data_array[5];
            
$track             $data_array[6];
        break;    
        case 
"icecast":
            
$bitrate           "128k";
            
$unique_listeners  $data_array[14];
            
$track             $data_array[16];        
        break;
    }

 
    
$title  chop($track);
    
$select explode(" - ",$title);
    
$artist chop($select[0]);
    
    if(
count($select)<2){
        
$title  chop($select[0]);
    }else{
        
$title  chop($select[1]);    
    }
    
    
header ("content-type: text/xml");
    echo 
"<?xml version=\"1.0\" standalone=\"yes\"?>\n";
    echo 
"<status>\n";
    echo 
"    <status>on</status>\n";
    echo 
"    <listeners>$unique_listeners</listeners>\n";
    echo 
"    <peaklisteners>0</peaklisteners>\n";
    echo 
"    <bitrate>$bitrate</bitrate>\n";
    echo 
"    <artist><![CDATA[$artist]]></artist>\n";
    echo 
"    <title><![CDATA[$title]]></title>\n";
    echo 
"</status>\n"
}else{
    
header ("content-type: text/xml");
    echo 
"<?xml version=\"1.0\" standalone=\"yes\"?>\n";
    echo 
"<status>\n";
    echo 
"    <status>off</status>\n";
    echo 
"    <listeners>0</listeners>\n";
    echo 
"    <peaklisteners>0</peaklisteners>\n";
    echo 
"    <bitrate>0</bitrate>\n";
    echo 
"    <artist><![CDATA[]]></artist>\n";
    echo 
"    <title><![CDATA[]]></title>\n";
    echo 
"</status>\n"
}
?>

Note: I have changed the $host = "192.168.1.2"; here on forum for security reasons.
Any one know why this small script eating all process on my server?

MySQL 5.1 to 5.5 upgrade command-line

$
0
0
Is there any way to upgrade MySQL from version 5.1 to version 5.5 from the command-line?

I realize I would have to run easyapache to recompile PHP after doing this, but is there a way to do this? Or do you have to do the upgrade through the WHM interface for every server?

ngnix acl registration issue

$
0
0
Afetr installinh ngnix on a cpanel server i get the error

Please tell me the solution:

error accessing the Nginx Plugin

WHM is configured to disallow execution of applications unregistered When logged in to the root or reseller with the "all" ACL. To enable this functionality you must do one of the Following: Register this addon using / usr / local / cpanel / bin / register_appconfig (AppConfig) Enable the "Allow apps que have not registered with AppConfig to be run When logged in to the root or reseller with the" all "ACL in WHM" option in "Tweak Settings", or add permit_unregistered_apps_as_root = 1 to / var / cpanel / cpanel.config , and run / usr / local / cpanel / etc / init / startcpsrvd

Webmail Login Theme Change

$
0
0
It appears the option to change default webmail login theme is no longer available under tweak settings. I've checked modify package and account and do not see an option to change the webmail login theme attached to a custom cPanel theme. How does one change this now?

Thank you!

create private dns cpanel acounts

$
0
0
Hi

How do you create private dns servers for a few domains hosted under the same cpanel server.

Please help?

Internal Server Error 500 No response from subprocess (php): subprocess was killed with signal 11

$
0
0
Trying to view the INBOX in horde webmail app I'm getting this error:

Code:

Internal Server Error

500

No response from subprocess (php): subprocess was killed with signal 11

Al the other mailboxes including a rather full spam box work, its only affection this one inbox on this one specific user.

Fixed mailbox permissions, restarted cpsrvd and forced an cPanel update - still getting error..

UPDATE: adding error logs from Roundcube;
Code:

root@tcsm01 [/var/cpanel/roundcube/log]# tail -100 errors
[08-Jan-2014 22:19:10 UTC] Unexpected condition from IMAP server, closed or corrupt connection to IMAP. Possible mailbox corruption.
[08-Jan-2014 22:19:10 UTC] PHP Warning:  fclose() expects parameter 1 to be resource, null given in /usr/local/cpanel/base/3rdparty/roundcube/program/lib/Roundcube/rcube_imap_generic.php on line 201
[08-Jan-2014 22:19:18 UTC] Unexpected condition from IMAP server, closed or corrupt connection to IMAP. Possible mailbox corruption.
[08-Jan-2014 22:19:18 UTC] PHP Warning:  fclose() expects parameter 1 to be resource, null given in /usr/local/cpanel/base/3rdparty/roundcube/program/lib/Roundcube/rcube_imap_generic.php on line 201
[08-Jan-2014 22:19:25 UTC] Unexpected condition from IMAP server, closed or corrupt connection to IMAP. Possible mailbox corruption.
[08-Jan-2014 22:19:25 UTC] PHP Warning:  fclose() expects parameter 1 to be resource, null given in /usr/local/cpanel/base/3rdparty/roundcube/program/lib/Roundcube/rcube_imap_generic.php on line 201

Any suggestions on a fix???

Anacron job cron.daily

$
0
0
I notice I just started getting these notices after the last Cpanel Stable update 11.40.01-9 when the daily cron runs:
Code:

/usr/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'root'@'localhost' (using password: NO)'
error: error running non-shared postrotate script for /var/lib/mysql/mysql_slowquery.log of '/var/lib/mysql/mysql_slowquery.log '

I don't have any problems connecting at the command line w/mysqladmin and the root my.cnf file is configured properly too. Any suggestion would be appreciated as how to fix this.

Thanks,

How can I stop default accounts from sending mail?

$
0
0
Hi all,

I have just had a quick check of my mail server logs and have discovered that one of my accounts is sending a whole lot of mail and I was wondering if there is anyway to block a specific account from sending mail on the server?

The email address they are using is in the format: accountname@mailserver.co.uk

I have suspended the account for now and am going to check through to remove any scripts that are in their folder but I would really like these accounts to be stopped from sending anything in the future.

Cannot send email to Hotmail, only reply.

$
0
0
Ive got this strange problem where I cannot send mail to Hotmail from my server.

I dont get an error mail reporting a problem and in whm i see this in delivery event details:

Code:

Event: success success
User: xxx
Domain: xxx.be
Sender: xxx@xxx.be
Sent Time: Jan 9, 2014 12:00:12 PM
Sender Host: d8d878b14.access.telenet.be
Sender IP: xxx.xxx.xxx.xxx
Authentication: courier_login
Spam Score:
Recipient: xxx@hotmail.com
Delivered To: xxx@hotmail.com
Delivery User: -remote-
Delivery Domain:
Router: lookuphost
Transport: remote_smtp
Out Time: Jan 9, 2014 12:00:12 PM
ID: 1W1DLj-00058Q-MB
Delivery Host: mx2.hotmail.com
Delivery IP: 65.55.92.184
Size: 2.6 KB
Result: Message accepted

However the mail never ends up at the hotmail address, not in spam , nowhere.

IF the hotmailaddress sends me a mail, i can reply and it will arrive though !!

Any help with this problem ? I tried alot from this forum but i cant get it to work
Viewing all 5759 articles
Browse latest View live