sendmail: Not running with correct effective GID. Is sendmail binary setgid mailtrap?

ARUN Post in MAIL, WHM BACKEND
0

root@server [/]# sendmail
sendmail: Not running with correct effective GID. Is sendmail binary setgid mailtrap?
sendmail: Not running with correct effective GID. Is sendmail binary setgid mailtrap?
root@server [/]#

Solution :

which sendmail

chown root:mailtrap /usr/sbin/sendmail

chmod 2755 /usr/sbin/sendmail

ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’ (2) + cpanel jailed shell

ARUN Post in ERROR, MYSQL
0

Getting the error “ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’ (2)” while I try to connect to mysql via a jailed shell enabled user.

[email protected] [~]# mysql
ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’ (2)
[email protected] [~]#

Solution :

http://admin.webhostingdevelopment.com/viewtopic.php?f=84&t=74
You need to specify the hostname so you can connect.
mysql -h=127.0.0.1 -u user_name -p
or
mysql -h=localhost -u user_name -p

BFD conf file path

ARUN Post in FILE PATH ( conf, logs etc)
0

Default is

vi /usr/local/bfd/conf.bfd

But Any values in

vi  /usr/local/bfd/rules/cpanel   will override the default file.

To check the trigger value grep the file with key word  “TRIG”

Check : http://admin.webhostingdevelopment.com/viewtopic.php?f=22&t=9&p=85#p85

Simple .htaccess rewrite rule

ARUN Post in HTACCESS
0

A simple .htaccess rule to test the redirect

Solution :  http://admin.webhostingdevelopment.com/viewtopic.php?f=83&t=72#p83

How to rewrite all the .htm requests to .php

RewriteEngine onRewriteCond %{THE_REQUEST} ^GET\s(.+)\.php [NC]
RewriteRule ^ %1.htm [R=301,L]RewriteRule ^(.*)\.htm$ /$1.php [L,NC]

How to rewrite a domain to another domain using .htaccess

ARUN Post in HTACCESS
0

How to rewrite a domain to another domain using .htaccess

Solution : http://admin.webhostingdevelopment.com/viewtopic.php?f=83&t=73

Redirect arunp.in to google.com
[

RewriteEngine on
RewriteCond %{HTTP_HOST} ^arunp\.in$ [OR]
RewriteCond %{HTTP_HOST} ^www\.arunp\.in$
RewriteRule ^/?$ “http\:\/\/www\.google\.com\/” [R=301,L]
]

ERROR: This RRD was created on another architecture cpanel migration

ARUN Post in WHM FRONTEND
0

Get the error  “ERROR: This RRD was created on another architecture” while trying to do a WHM-WHM transfer

Solution :

http://admin.webhostingdevelopment.com/viewtopic.php?f=39&t=71

While WHM-WHM transfer check “Skip Bandwidth data” for the domain that you get this error.

Account Creation Status: failed (Sorry, a mysql user with the name + already exists

ARUN Post in MYSQL, WHM BACKEND, WHM FRONTEND
0

This mainly happens if you terminated a cpanel account and somehow the MySQL user was not deleted properly.

Solution :  Try deleting the mentioned user.

Delete the user :

mysql

mysql > use mysql;

mysql > drop user testusr7@localhost;

OR

mysql> delete from mysql.user where user=’testusr7′;

You can aslo check this using :

select User, Host from user where User like ‘%testusr7%';

 

Now try restoring/recreating whatever you were trying to do and see if you still receive the error.

If yes do

grep testusr7 /var/cpanel/databases/users.db

grep testusr7 /etc/dbowners

If the user exist in the above files, delete that and try again.

OR

create a cpanel user with name “testusr7777″.

Modify account and rename that to “testusr7″

Terminate the account from WHM

It fixed for me!!!

Fatal error: Incompatible file format: The encoded file has format major ID 3, whereas the Loader expects 4 in /home/username/public_html/index_enc_zend.php on line 0 for cubecart

ARUN Post in ERROR
0

Got the above error in cubecart website

This mainly happens when you upgrade php to 5.3.X

Solution :

http://admin.webhostingdevelopment.com/viewtopic.php?f=81&t=69

1 ) Upgrade cube cart

2)

vi  includes/global.inc.php

change the line below

glob[‘encoder’] = ‘zend';

to

glob[‘encoder’] = ‘ioncube';

 

How to disable ssl for wordpress admin panel — wp-admin

ARUN Post in WORDPRESS
0

Solution :

http://admin.webhostingdevelopment.com/viewtopic.php?f=65&t=68

Open wp-config.php and add the below line

define(‘FORCE_SSL_ADMIN’, false);

NOTE : make sure that there is no similar lines

grep -i force_ssl wp-config.php

Warning: Parameter 1 to modMainMenuHelper::buildXML() expected to be a reference, value

ARUN Post in JOOMLA
0

Joomla donot show the menu after upgrading php and mysql to 5.3 and 5.1 resply.

Solution :

http://admin.webhostingdevelopment.com/viewtopic.php?f=64&t=67

Open

vi  modules/mod_mainmenu/helper.php

from within the installation directory

Replace

function buildXML(&$params)   with
function buildXML($params)

du and df reporting incorrect details

ARUN Post in DISK RELATED
0

Solution here :

http://admin.webhostingdevelopment.com/viewtopic.php?f=79&t=65

Cannot allocate memory: couldn’t create child process: /opt/suphp/sbin/suphp for /home/xxxxx/xxxx/index.php

ARUN Post in WHM BACKEND
0

First check if the server has cloudlinux installed

If yes, check the limit set serverwide, if its low increase that and see

Next check the individual user limit from within the lve manager for the particular domain. increase that and try

How to create a custom recursive php.ini file?

ARUN Post in HTACCESS, PHP
0

SOLUTION :

http://admin.webhostingdevelopment.com/viewtopic.php?f=9&t=4&p=4&hilit=IfModule+mod_suphp.c#p4

How to find joomla version from backend

ARUN Post in JOOMLA
0

Solution here :

http://admin.webhostingdevelopment.com/viewtopic.php?f=29&t=14&p=15&hilit=joomla#p15

Login to the directory where joomls is installed say :  /home/user/public_html

root@server [/home/user/public_html]# grep version language/en-GB/en-GB.xml
<?xml version=”1.0″ encoding=”utf-8″?>
<metafile version=”1.5″ client=”site” >
<version>1.5.15</version>
root@server  [/home/user/public_html]#

 

Error “Can’t locate Time/HiRes.pm in @INC” when installing csf

ARUN Post in FIREWALL, INSTALLATION
0

[root@server csf]# ./install.sh

Configuring for OS

Running csf generic installer

Installing generic csf and lfd

Check we’re running as root

Checking Perl modules…
Can’t locate Time/HiRes.pm in @INC (@INC contains: /etc/csf /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at (eval 30) line 2.
BEGIN failed–compilation aborted at (eval 30) line 2.
Using configuration defaults

You need to install the missing perl modules and then install cxs

Solution :

yum install perl-Time-HiRes