Unable to connect to proftpd ftp server. (Plesk)

Apr16

While trying to connect to FTP server the following error message is shown:

If you run proftpd –configtest and the following errors will shown:

It will shows :-

proftpd[16708]: warning: unable to determine IP address of ‘hostname.com’
proftpd[16708]: error: no valid servers configured
proftpd[16708]: Fatal: error processing configuration file ‘/etc/proftpd.conf’

Reason:-  Your Server hostname in ‘/etc/hosts’ file was not configured properly.

Sol:-
Set your hostname correctly as mentioned below :-

127.0.0.1               localhost.localdomain localhost
5.77.37.51              hostname.com  hostname

Then again run :-

[root@server src]# proftpd –configtes
Checking syntax of configuration file

Restart your “xinetd service” thats all 🙂

The Employee does not exist, or the password provided is incorrect (Prestashop)

Dec07

If you are getting below  error message after entering the login details in your Prestashop admin :-

Error:-

The Employee does not exist, or the password provided is incorrect

Do the below steps :-

The reason of this error, perhaps that cookies don’t match in your MD5 hash of password.

Update the employee’s password with matching cookie:

UPDATE employee SET passwd = md5(”<COOKIE_KEY><yourNewPassword>”) WHERE email = “youremailaddress”;

You can find cooking key in the config/settings.inc.php

define(’COOKIE_KEY‘, ‘qs4PAdILiGj81EQcK4CeF0gMHgFkCJShSICypziaU8XYoJVVTFk0O1Xy’);

E.g

mysql> UPDATE ps_employee SET passwd = md5(“qs4PAdILiGj81EQcK4CeF0gMHgFkCJShSICypziaU8XYoJVVTFk0O1XyRealRtealm“) WHERE email = “administration@alam.co.in”;

Password (new as old) must have at least 8 characters!

Error: There are no domains which have awstats stats to display

Sep25

Awstats

While checking the Awstats from your cPanel >> logs >> Awstats and you are getting below error message.
“There are no domains which have awstats stats to display”

Check the permission and symlink of below files :-

[root@server ~]# ls -lah /usr/local/cpanel/3rdparty/bin/awstats.pl  ====> Should have 755 permissions
[root@server ~]# ls -lah /usr/local/cpanel/base/awstats.pl ====> should be have a symlink to /usr/local/cpanel/3rdparty/bin/awstats.pl

Correct the permission and restart the cPanel service.

[root@server ~]# /scripts/runweblogs cPanel_username

[root@server ~]# /etc/init.d/cpanel restart

Now  check it again and it is working fine. 😀

OUTLOOK CONFIGURATION !!!!!

Sep22

OutLook

Below is the Configuring of Outlook (secure and non-secure)

====================================

In Outlook Tools settings >> E-mail Accounts.

1) Display Name :- abc@yourdomain.com

2) Internet E-mail Address:- abc@yourdomain.com

3) Incoming mail POP/IMAP Server:- mail.yourdomain.com / yourdomain.com /server ip

4) Outgoing mail SMTP Server :- mail.yourdomain.com / yourdomain.com /server ip

5) Account name :– abc@yourdomain.com

6) Password :- Enter the password of the email account

====================================

Non secure port settings:-

Outgoing mail (SMTP):25 OR 26 Or 587 (some ISP’s are blocking port 25)

Incoming mail(POP3):110

Incoming mail(IMAP):143

====================================

Secure port settings:-

Outgoing mail (SMTP): 465

Incoming mail(POP3): 995

Incoming mail(IMAP): 993

NOTE : Make sure you have selected ” My Server Requires Authentication” .

Go to Outlook >> tools >> account >> Properties >>under server tab >> My Server Requires Authentication.

========= ===========================

DATABASE ERROR: CONNECTION FAILED!(cPanel)

Jul04

If you are getting below error message while login into to Roundcube.

DATABASE ERROR: CONNECTION FAILED!

Unable to connect to the database!
Please contact your server-administrator. Do the below steps:-

[root@mail~]# mysql -e “drop database roundcube”;
[root@mail ~]# /usr/local/cpanel/bin/update-roundcube –force

OutLook asking For Password again and again

Dec10

You are able to login successfully through your web-mail, but not from Outlook. Outlook is asking Password again and again, then what to do?

1) If you have facing the above issue, then it is a problem of pop3 service, just do the simple tick to resolve issue.

Open the below file  in your favorite editor.

[root@pop ~]# vi /etc/xinetd.d/popa3d

Then just change disable = yes in this file.

2) you have to do the same changes into the below file as well.

[root@pop ~]# vi /etc/xinetd.d/popa3ds

3) And restart the service of mail and cPanel.

[root@office1 ~]#/etc/init.d/xinetd restart

OR

[root@office1 ~]#/scripts/courierup

[root@office1 ~]# /etc/init.d/cpanel restart

[root@office1 ~]# /etc/init.d/courier-authlib restart

Now, it is not asking for password. 😛 B|

Password protect not working (WordPress)

Dec09

When you have installed WordPress under your main domain and you wish to set any Directory as password protected which is present under your domain’s public_html Directory but after setting the directory as a password protected
You are getting 404 error or not found error while browsing/accessing the URL.

Just do the below simple step 🙂

1) Open the .htaccess files in which your password protect code is inserted and the below line.

ErrorDocument 401 default

save it and you have done it 🙂

wordpress error Cheatin’ uh?

Dec09

When you try to upload an image/logo from your “theme” or “media library” yo will get the below error

Error: “Cheatin’ uh?”

Use the following steps to resolved the issue.
1) Open the file media-upload.php via WordPress dashboard or in your Favorited editor.

[root@vps~]# vi wp-admin/media-upload.php

and go to  line number 126 or find word Cheatin.
and Just comment  the code 

 

From

wp_die( __( ‘Cheatin’ uh?’ ) );

To

// wp_die( __( ‘Cheatin’ uh?’ ) );

Save the file :wq!

That’s it you have Done 😀

You do not have sufficient permissions to access this page

Dec09

When you activate the plugin form your WordPress Dashboard and then some time it shows the error

Error : You do not have sufficient permissions to access this page

Then what to do?

Just go through the following steps :-

1) Open wp-config.php file using your favorite editor and

find the below content and replace it with the keys as below mentioned :-

define(‘AUTH_KEY’, ‘put your unique phrase here’);define(‘SECURE_AUTH_KEY’, ‘put your unique phrase here’);

define(‘LOGGED_IN_KEY’, ‘put your unique phrase here’);

define(‘NONCE_KEY’, ‘put your unique phrase here’);

2) It looks like as

define(‘AUTH_KEY’, ‘xzjop11ocq4p25xgp4zy3g2c8zpnrvosvpq6zgethmcjs2xfr 0dhc8qnwzqaie3s’);define(‘SECURE_AUTH_KEY’, ‘slsklt2pnzem3xuqnhxtdqmb6qaofqz1myvuztkynorhijoak occ27vbgmbr6lj3’);

define(‘LOGGED_IN_KEY’, ‘zsixqmsi1xrfuuyzqxnqxccf5lmdvcozyqho9ut6c8j4yeq2r eh07nhjsatzglyx’);

define(‘NONCE_KEY’, ‘qglsgzmyywgnfgf8svlye2rdlp42aeyh599hkyjcl7bekfw6o uwirxtiabp57mfs’);

define(‘AUTH_SALT’, ‘wyc0fbiwzkwqljfyngcfx8w7k1wjis8tgpe8ypqzyc88zoy2l uyqekpyro689qgl’);

define(‘SECURE_AUTH_SALT’, ‘aum1i4ubnamlxnq7mwbbzgydlcywre8rb39pp7x5qw7ujsaj5 enc6cegictqv6qz’);

define(‘LOGGED_IN_SALT’, ‘grqghuz8jhct4ytofzfxqyhqn5kfaka5cbi1qoq5hq3gy8vwc kflu1afeyv3ls98’);

define(‘NONCE_SALT’, ‘z5qo3qdimktw0kucvhcepw52zrdpwlile9cmh3ral9orwcvv5 vhvmrufnefao2hk’);

Save the file and that’s it.

3) You think how to get this unique codes?

4) You can generate your new auth code via below URL:-

https://api.wordpress.org/secret-key/1.1/salt/

How to check the load of dcpumon(cPanel) logs

Dec07

You can check it from the below simple script.

[root@alam ~]# for i in `find /var/log/dcpumon/ -name *.gz` ; do echo $i; zgrep load $i; done

Sidebar