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

putting the menu blocks in alpha order

$
0
0
When you first get into WHM the block menu is there for selection, is there a way to put those blocks in alpha order so i dont have to hunt for the one i want?

In other words


| account functions | | account information |
|_________________| |_________________| ... and so on

Remove Mod_Pagespeed

$
0
0
I was install with your suggestion mod page speed on whm But now page speed module giving a warning " ModPagespeed Generated File Prefix is deprecated please remove configuration" and my pagespeed.conf is empty when try to edit it through comand nano /etc/httpd/conf.d/pagespeed.conf it showing error file is not avialable so what can i do in this situation actuuly i have to add filter lazy load for my site through the mod page speed module.is there any option to remove mod page speed module and install with fress module on whm with centos 5 32 bit with apache 2.27.

I have installed mod page speed Customized module from the bellow reference link

http://forums.cpanel.net/f402/instal...he-302431.html

But now page speed module giving a warning " ModPagespeed Generated File Prefix is deprecated please remove configuration"

so i want to remove that configuration of custom module.

if any body have any idea how to remove it let me know.

i was try bellow command but it is not working for me

sudo yum remove mod-pagespeed-stable
sudo yum install mod-pagespeed-beta

so is there any option through command to remove mod page speed module and after remove successfully install fresh module on whm. my configuration is centos 5, apache 2.27

Modsec rule and slow website

$
0
0
Hello :

We used modsec rule (from atomic) but our website load time goes slow !
Is it normal or need change modsec setting ?

Code:


 SecRuleEngine On
 SecRequestBodyAccess On
 SecResponseBodyAccess On
 SecResponseBodyMimeType (null) text/html text/plain text/xml
 SecResponseBodyLimit 2621440
 SecServerSignature Apache
 SecComponentSignature 200911012341
 SecUploadDir /var/asl/data/suspicious
 SecUploadKeepFiles Off
 SecAuditEngine RelevantOnly
 SecAuditLogRelevantStatus "^(?:5|4(?!04))"
 SecAuditLogType Concurrent
 SecAuditLog logs/modsec_audit.log
 SecAuditLogParts ABIFHZ
 SecArgumentSeparator "&"
 SecCookieFormat 0
 SecRequestBodyInMemoryLimit 131072
 SecDataDir /var/asl/data/msa
 SecTmpDir /tmp
 SecAuditLogStorageDir /var/asl/data/audit
 SecResponseBodyLimitAction ProcessPartial
 SecAuditLogDirMode 0770
 SecPcreMatchLimit 250000 
 SecPcreMatchLimitRecursion 250000

Problems after WHM 11.44.1.11 Update

$
0
0
Hello,

I am running a sitebuilder (our custom sitebuilder) on a dedicated server on Hostgator, and cPanel on my server has been updated to WHM 11.44.1.11 three days ago. Since then I have been having problems with subdomain redirection on my server.

The sitebuilder puts all newly created sites to subdomains and logged in users can access their sites under their subdomain. Since the update the subdomains show the default cPanel welcome page.

I would appreciate any help or insight.

Thanks,
Burak

Problem after setup remote mySQL

$
0
0
Hi :

after setup remote mysql server , some website not loaded , after check mysql processlist I see following detail :

Code:



-----------------------------------------------+
| Id  | User          | Host                            | db                | Command | Time | State          | Info
                                              |
+-----+----------------+---------------------------------+-------------------+---------+------+----------------+-------------------------------------------------------
-----------------------------------------------+
| 184 | username_ayeha | server6.domain.net:45217 | username_username | Query  | 3    | Writing to net | SELECT
                        userfield.*, usertextfield.*, user.*, UNIX_TIMESTAMP(passworddate) AS passworddate, user. |
| 185 | username_ayeha | server6.net:45224 | username_username | Sleep  | 36  |                |
                                              |
| 189 | username_ayeha | server6.net:45278 | username_username | Query  | 25  | Writing to net | SELECT *
                        FROM datastore
                        WHERE title IN ('smiliecache','bbcodecache','mailqueue','bookmarksitec |
| 190 | username_ayeha | server6.net:45290 | username_username | Query  | 22  | Writing to net | SELECT *
                        FROM datastore
                        WHERE title IN ('userstats','birthdaycache','maxloggedin','iconcache', |
| 191 | username_ayeha | server6.net:45295 | username_username | Query  | 21  | Writing to net | SELECT *
                        FROM datastore
                        WHERE title IN ('iconcache','mailqueue','prefixcache','options','bitfi |
| 217 | username_ayeha | server6.net:45388 | username_username | Query  | 11  | Writing to net | SELECT *
                        FROM datastore
                        WHERE title IN ('smiliecache','bbcodecache','options','bitfields','att |
| 226 | username_ayeha | server6.net:45424 | username_username | Query  | 8    | Writing to net | SELECT *
                        FROM datastore
                        WHERE title IN ('smiliecache','bbcodecache','mailqueue','bookmarksitec |
| 230 | username_ayeha | server6.net:45430 | username_username | Query  | 7    | Writing to net | SELECT *
                        FROM datastore
                        WHERE title IN ('smiliecache','bbcodecache','mailqueue','bookmarksitec |
| 231 | root          | localhost                      |                  | Query  | 0    |                | show processlist
                                              |
+-----+----------------+---------------------------------+-------------------+---------+------+----------------+-------------------------------------------------------
-----------------------------------------------+

Remote mysql server on same DC , with Ping under 1ms

Regards

"Send mail as" from gmail without keeping copy on server when forwarding the other way

$
0
0
Hello,

As of until recently, it was possible to set up the following:
1) Forward apples@domain.com to oranges@gmail.com
- - not creating any apples@domain.com on my domain, thus only forwarding without taking server capacity.

2) Set gmail default answer adress to apples@domain.com, without requiring password or an existing apples@domain.com account.

During the last few days, gmail has uppgraded their security. Now it no longer accepts to send mail from apples@domain.com from it's own servers, thus requiring the apples@domain.com to be a real email adress with a real password. It sends mail through SMTP servers by TLS or SSL (which I don't really know what is).

This creates a problem for me. Now I can no longer add a forwarder and a reply adress without keeping the e-mail on the server.

I guess it would be possible to create a filter, but filters have been unstable for me so far, not really working as intended. I am not sure whether I want to bet the full communication back and forth for my organisation on several filters that *might* work. Does anyone have any suggestions as to how I can solve this problem?

Thank you in advance!

Confirmação na Entrega de Email

$
0
0
Um cliente meu gostaria de ser notificado quando um email é enviado com sucesso, já realizei as configurações no RoundCube e no Outlook devo configurar algo mais ? No Exim talvez ?

Obs: Não é confirmação de Leitura, é confirmação de Entrega de email.

Obrigado !

Munin Resource Usage?

$
0
0
Hi there, I'm getting a lot of admin emails concerning the following process. Anyone have any ideas that could help?


Time: Fri Aug 8 14:45:11 2014 +0000
Account: munin
Resource: Virtual Memory Size
Exceeded: 201 > 200 (MB)
Executable: /usr/local/cpanel/3rdparty/perl/514/bin/perl
Command Line: /usr/local/cpanel/3rdparty/perl/514/bin/perl /usr/local/cpanel/3rdparty/share/munin/munin-graph --cron
PID: 29086 (Parent PID:29071)
Killed: No

Thanks

PHP memory limit - Unable to set

$
0
0
Hi,

i am unable to set the PHP memory limit via WHM / Service Configuration »PHP Configuration Editor. I enter a value (f.e. 128M), the php.ini file is written properly, restart Apache, but php info reports the previous value.

When i put a php.ini file with another value for PHP memory limit in a folder, then the php info reports the correct value.

Apache 2.2, php 5.4, suphp, Cloudlinux

Any ideas?

Why such a big range

$
0
0
In reference to this thread

http://forums.cpanel.net/f5/ftp-pass...ing-74605.html

I know that is an old thread but its still valid and helped me solve the issue quickly and soooo easily. You just have to remember to reboot ftp on the server as well, i almost forgot... So just make sure after the changes you reboot both configserver firewall and ftp from your vps whm and it should work fine. I did not even have to make any changes to anything locally.

Thanks for making that thread, and thanks to all who contributed with GREAT info, CFS and cPanel both..


However i have two simple questions and maybe its nothing, but why such a huge hole.. 30000:50000 seems like a pretty large hole, is there a reason for that?

and does it have to be those numbers, can we make the range anything we want as long as the ports are available?

thanks

is backup dir created by default

$
0
0
I have seached the threads and read docs but still i cant find my /backup dir.. I want to customize the name but i want to make sure its in the same area were i put my new dir. My backups are not working because i assume it wont make my dir name by itself i have to create it in ssh first. So i just want to find the original so i can put my custom one in the same area, but i cant find any original. So that tells me that its not there and does not get created by default.

In that case does everything custom go in /etc or what?

thanks.. :)

What should iptables config be?

$
0
0
Since a week ago I have not been able to access WHM and cPanel via the usual ports from any location (not ISP blocked). I can access via the whm. and cpanel. urls and via ssh.

It looks like iptables is turned on with a default configuration that does not allow the cPanel ports.

I originally installed cPanel on CentOS with chkconfig iptables off and service iptables stop as recommended and has been working ok for years.

Does the standard cPanel install leave iptables turned off or configure it to allow access?

How have I now got a default iptables configuration active without having made any changes via shell or WHM?

run input in cron jobs

$
0
0
hello dear
i want run this code in cron jobs every 30 minute.please help me how am i send input in cron jobs?:(

PHP Code:

 <tr style="color:black" style="height:20" style="color:white;font-weight: bold;font-size:11pt">
        
        <td align="center" >
        <INPUT TYPE="TEXT" NAME="ushoot" VALUE="<?=$row['ushoot'];?>" style="background:#FFD4AA;direction:ltr"size="10" >
        
        </td>
        <td align="center" >
        <INPUT TYPE="TEXT" NAME="oposs" VALUE="<?=$row['oposs'];?>" style="background:#FFD4AA"size="10" ></td>
            <td align="center" >
        <INPUT TYPE="TEXT" NAME="uposs" VALUE="<?=$row['uposs'];?>" style="background:#FFD4AA"size="10" ></td>
        <td align="center" >
        <INPUT TYPE="TEXT" NAME="1" VALUE="" style="background:#FFD4AA"size="10" ></td>
        <td align="center" >
        <INPUT TYPE="TEXT" NAME="2" VALUE="" style="background:#FFD4AA"size="10" ></td>        
        </tr>
<tr><td colspan="11" align="center" style="height:30px">
id : <INPUT TYPE="text" NAME="id_team" disabled="true" VALUE="<?php echo $id_team ?>" style="background:#FFD4AA;"size="20" >
<input type="submit" value="send"  name="edited" class="btn" style="background-color:#FF7F00;width:100px" />

/usr/bin/test -x /usr/local/cpanel/scripts/update_db_cache

$
0
0
when this cronjob is running:
Cron <root@three> /usr/bin/test -x /usr/local/cpanel/scripts/update_db_cache && /usr/local/cpanel/scripts/update_db_cache

i see this error:
Code:

DBD::mysql::st execute failed: Lost connection to MySQL server during query at /usr/local/cpanel/Cpanel/Exception.pm line 96
Cpanel::Exception::new('Cpanel::Exception::Database::Error', 'Cpanel::ExceptionMessage::Raw=SCALAR(0x1338ea0)', 'HASH(0x243b710)') called at /usr/local/cpanel/Cpanel/Exception.pm line 47
Cpanel::Exception::create('Database::Error', 'Cpanel::ExceptionMessage::Raw=SCALAR(0x1338ea0)', 'HASH(0x243b710)') called at /usr/local/cpanel/Cpanel/Exception.pm line 55
Cpanel::Exception::create_raw('Database::Error', 'DBD::mysql::st execute failed: Lost connection to MySQL server d...', 'HASH(0x243b710)') called at /usr/local/cpanel/Cpanel/DBI.pm line 79
Cpanel::DBI::_create_exception('Cpanel::DBI::Mysql::st=HASH(0x2422810)', 'DBD::mysql::st execute failed: Lost connection to MySQL server d...', undef) called at /usr/local/cpanel/Cpanel/DBI.pm line 70
Cpanel::DBI::_error_handler('DBD::mysql::st execute failed: Lost connection to MySQL server d...', 'Cpanel::DBI::Mysql::st=HASH(0x2422810)', undef) called at bin/update_db_cache line 322
Script::Update::DB::Cache::can_get_mysql_usage('HASH(0x13128f0)', 'HASH(0x13db990)', 'Cpanel::DB::Map::Collection::Index=HASH(0x207a630)') called at bin/update_db_cache line 57
Script::Update::DB::Cache::script('Script::Update::DB::Cache') called at bin/update_db_cache line 32


there is one database that even i terminate it's cpanel account but db doesn't deleted and even i tried to drop it from ssh by below command :
DROP DATABASE dbname;
but i see this error:
Code:

ERROR 2013 (HY000): Lost connection to MySQL server during query
because update_db_cache couldn't run some databases show error after 24 hour.

Could you please help me to solve this problem?

ClamAV Usage High

$
0
0
I am in the process of installing ASSP for spam monitoring. One of their requirements is to install ClamAV through the WHM Plugins. I have not installed ASSP yet, so that is not the issue. I did, however, activate and install ClamAV from the plugin center in WHM.

Over a few hours my swap usage jumped to 100% usage and stays there. If I remove ClamAV, it goes back to normal.

I have a 2GB RAM VPS from Linode.

Any ideas on how to resolve this so I can use ClamAV and ASSP?

Backup Error Message

$
0
0
Every time I generate a backup file, I'm getting these error messages but the creation of backup file is successful despite the errors.

Code:

Fail to backup horde data for user usrnm: DBD::mysql::db do failed: Illegal mix of collations (utf8_general_ci,IMPLICIT) and (utf8_unicode_ci,IMPLICIT) for operation '='
 at /usr/local/cpanel/Cpanel/Exception.pm line 96
        Cpanel::Exception::new('Cpanel::Exception::Database::Error', 'Cpanel::ExceptionMessage::Raw=SCALAR(0xfe34a8)', 'HASH(0x3f6cbd8)') called at /usr/local/cpanel/Cpanel/Exception.pm line 47
        Cpanel::Exception::create('Database::Error', 'Cpanel::ExceptionMessage::Raw=SCALAR(0xfe34a8)', 'HASH(0x3f6cbd8)') called at /usr/local/cpanel/Cpanel/Exception.pm line 55
        Cpanel::Exception::create_raw('Database::Error', 'DBD::mysql::db do failed: Illegal mix of collations (utf8_gen...', 'HASH(0x3f6cbd8)') called at /usr/local/cpanel/Cpanel/DBI.pm line 79
        Cpanel::DBI::_create_exception('Cpanel::DBI::Mysql::db=HASH(0x3f6e9d8)', 'DBD::mysql::db do failed: Illegal mix of collations (utf8_gen...', undef) called at /usr/local/cpanel/Cpanel/DBI.pm line 70
        Cpanel::DBI::_error_handler('DBD::mysql::db do failed: Illegal mix of collations (utf8_gen...', 'Cpanel::DBI::Mysql::db=HASH(0x3f6e9d8)', undef) called at /usr/local/cpanel/Cpanel/Horde/Utils.pm line 56
        Cpanel::Horde::Utils::build_backup('Cpanel::DBI::Mysql::db=HASH(0x3f6e9d8)', 'ARRAY(0x25db618)', '/home/backupfile-122014-010203-usrnm/horde', 5.1.4, 'horde') called at /usr/local/cpanel/Cpanel/Horde/Backup.pm line 44
        Cpanel::Horde::Backup::backup('Cpanel::Horde=HASH(0x3eae1f0)', 'usrnm', '/home/backupfile-122014-010203-usrnm/horde', 0) called at /usr/local/cpanel/scripts/pkgacct line 1092
        eval {...} called at /usr/local/cpanel/scripts/pkgacct line 1092
        Script::Pkgacct::script('Script::Pkgacct', 'usrnm', '/home', 'userbackup') called at /usr/local/cpanel/scripts/pkgacct line 116

I have noticed that these error messages occurred after I updated cPanel software (correct me if I'm wrong on this) and the time in generating backup file has increased. Now it takes more time to generate backup file compared in the past where it takes only few minutes.

Setting up Mail

$
0
0
-Snipped-

Problem solved. My hosting helped me out.

500 Internal Server Error

$
0
0
I have the Internal Server Error , on all customers accounts websites.
The cPanel is installed on VPS - centOS. What can I do to repair this error ? Please help me!


Edit:
We solved. It was the php open_basedir Protection. Thank you!

Problem with exim

$
0
0
Hello there,

I encounter a problem with exim during restart:

Waiting for exim to restart ........................................... .. .................. finished.


exim Has Failed, please Contact the sysadmin.

I did not touch anything and blocking me sending mails.

I did a reset EXIM but not he noticed the error with failled

Loic

System user converted to cpanel users

$
0
0
I installed an app that created it's own system user and I want to use cPanel to created the DB and manage mail and other services.

So is there any way to convert a linux user to be a cPanel user?

I am running WHM 11.44.1 build 11 and CentOS 6.5. I have full root access to the server.
Viewing all 5759 articles
Browse latest View live


Latest Images