How to downgrade icinga2 from 2.6 to 2.5?

Last time I upgraded icinga2 to v2.6 accidentally. This lead icinga2 not to start. In /var/log/icinga2/icinga2.log I see following error: 17-05-18 01:05:10 -0400] critical/IdoMysqlConnection: Schema version ‘1.14.1’ does not match the required version ‘1.14.2’ (or newer)! Please check the upgrade documentation. Context: (0) Reconnecting to MySQL IDO database ‘ido-mysql’ Of course this can be fixed […]

How to stop WordPress ddos bot attack in shared cpanel server?

If you have hosted lots of WordPress website in your shared hosting then you may have came across this situation where attacker tries to brute force attack on wp-login.php increasing server load hence doing Ddos attack. You can’t even apply modsec rules or csf rules as attacker uses one ip no more than two times. […]

How can I change/repair my Plesk Admin account if the password got lost?

Symptoms If some of the following messages appear: Unable to connect to database login.php3: Unable to connect to database: Permission denied ERROR 1045: Access denied for user: ‘[email protected]’ (Using password: YES) Then you can use the following solutions in order to solve the issue. The example shown below is for RedHat-like operating systems (RedHat, CentOS, […]

directory index of “/usr/local/psa/admin/htdocs/” is forbidden

After upgrading from php5.4 to php5.6 in plesk panel with centos 6.8. I noticed I have uninstalled plesk core files. I checked in following location and there were either no files at all or some files/folders only: /usr/local/psa/admin/bin/ /etc/sw-cp-server/conf.d/ Error log: # tailf /var/log/sw-cp-server/error_log 2015/12/31 02:53:37 [error] 8788#0: *3 directory index of “/usr/local/psa/admin/htdocs/” is forbidden, […]

vsftpd Error: 500 Illegal PORT command. ftp: bind: Address already in use

ftp 127.0.0.1 21 Connected to 127.0.0.1. 220 (vsFTPd 2.2.2) Name (127.0.0.1:prakash): prakash 331 Please specify the password. Password: 230 Login successful. Remote system type is UNIX. Using binary mode to transfer files. ftp> ls 500 Illegal PORT command. ftp: bind: Address already in use To solve this, Method #1. Change mode to passive by typing […]

Your PHP installation appears to be missing the MySQL extension which is required by WordPress.

You will get above error message if you are using suPHP_ConfigPath inside your .htaccess file in cpanel. This error was encountered in easyapache4 where there are multiple php available. In this post I am referring to php56. Similar config can be done to other versions too. When we use suPHP_ConfigPath inside our .htaccess this tells […]

Securing Your Magento Store Admin with HTTP Basic Auth on Nginx

Make sure to install apache2-utils in your Ubuntu Server. $ sudo apt-get install apache2-utils Then set user and password for HTTP Basic Auth $ htpasswd -c /var/www/.htpasswd username Open your nginx conf file and insert following location ~* ^/(index.php/)?admin { auth_basic “Restricted”; auth_basic_user_file /var/www/.htpasswd; location ~* .(php) { include fastcgi_params; } try_files $uri $uri/ /index.php?$args; […]