To enable the Ioncube loader for PHP (For example, PHP 7), follow the steps below.
- Log into Plesk.
- Go to Tools & Settings > PHP settings > 7.1.33 FastCGI application > Extensions.
- Tick the ioncube_loader option:
That’s all!
by dev
To enable the Ioncube loader for PHP (For example, PHP 7), follow the steps below.
That’s all!
by dev
Problem:
Solution:
::class is only available from PHP 5.5 onward, So updating php version of the SERVER will solve the problem.
First check php version of your server with command line.
php -v
Note that phpinfo() may give different version that with the php -v
by dev
Adding RTL option
Just add the following css
.slick-slider .slick-track, .slick-slider .slick-list {
direction: ltr;
}
Responsive Slick
Add following lines to javascript.
responsive: [
{
breakpoint: 1024,
settings: {
slidesToShow: 3,
slidesToScroll: 1,
}
},
{
breakpoint: 600,
settings: {
slidesToShow: 2,
slidesToScroll: 2
}
},
{
breakpoint: 480,
settings: {
slidesToShow: 1,
slidesToScroll: 1
}
}
// You can unslick at a given breakpoint now by adding:
// settings: "unslick"
// instead of a settings object
]
by dev
by dev
WordPress utilizes XML-RPC to remotely execute functions for example JetPack, WordPress mobile application etc. But XMLRPC Attack made web server jam. In HTTP access log, we saw a lot of requests like this:
61.135.232.103 - - [11/Sep/2020:10:27:20 -0500] "POST /xmlrpc.php HTTP/1.1" 200 401 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:62.0) Gecko/20100101 Firefox/62.0" 91.132.142.57 - - [11/Sep/2020:10:39:03 -0500] "POST /xmlrpc.php HTTP/1.1" 200 401 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:62.0) Gecko/20100101 Firefox/62.0" 5.33.187.36 - - [11/Sep/2020:10:43:28 -0500] "POST /xmlrpc.php HTTP/1.1" 200 401 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:62.0) Gecko/20100101 Firefox/62.0"
You will also get “Error connecting to database” message when your WordPress site is down.
Solutions
We can secure server from XMLRPC attacks in several ways
<files xmlrpc.php> Order allow,deny Deny from all </files>
If don’t have httpd.conf or .htaccess, we can simply rename the filename.
/etc/httpd/conf/httpd.conf