• Webmaster,  VestaCP,  Wordpress Themes,  Linux

    How to Fix “Specify a Vary: Accept-Encoding Header” Warning

    Are you seeing the “Specify a Vary: Accept-Encoding Header” warning in Pingdom, GTmetrix, or Google PageSpeed Insights on your WordPress site? This is an HTTP header and should be included on every origin server response, as it tells the browser whether or not the client can handle compressed versions of the content. For example, let’s say you have an old browser without gzip compression and a modern browser with it. If you don’t utilize the Vary: Accept-Encoding header your web server or CDN could cache the uncompressed version and deliver that to the modern browser by mistake, which in turn hurts the performance of your WordPress site. By using the Vary: Accept-Encoding header you can ensure that your web server and or…

  • VestaCP,  Linux

    X-XSS Protection in VestaCP

    Edit /etc/nginx/conf.d/nginx.conf Add add_header X-Frame-Options SAMEORIGIN; add_header X-Content-Type-Options nosniff; add_header X-XSS-Protection "1; mode=block";   Save and reload nginx service nginx restart   Check Nginx header curl -I domain.com    

  • VestaCP,  Linux

    Upgrade Mariadb 5.5 to Mariadb 10.2 on Centos 7 VestaCP

    In this tutorial we’ll upgrade/install to Mariadb 10.2 on Centos 7 running Vesta CP, by default vesta cp will install old base version of Mariadb 5.5 when installing on Centos 7. This tutorial will also work without vestacp installed. MariaDB is designed as a drop-in replacement of MySQL with more features, new storage engines, fewer bugs, and better performance. MariaDB is developed by many of the original developers of MySQL who now work for the MariaDB Foundation and the MariaDB Corporation, and by many people in the community. To upgrade follow this simple steps to upgrade it to latest version. Step 1 Before installing it is recommended to backup your…

  • VestaCP,  Linux

    How to Upgrade MySQL and Install MariaDB 10.2 on Ubuntu 18.04 LTS and 16.04 LTS

    In this tutorial we’ll upgrade/install to Mariadb 10.2 on Ubuntu 18.04 LTS, 16.04 LTS and with vestacp when you install MySQL version 5.7 will be install on Ubuntu 16 and 18. This tutorial will also work with vestacp installed soon 18.04 will be supported by vestacp. MariaDB is designed as a drop-in replacement of MySQL with more features, new storage engines, fewer bugs, and better performance. MariaDB is developed by many of the original developers of MySQL who now work for the MariaDB Foundation and the MariaDB Corporation, and by many people in the community. To upgrade follow this simple steps to upgrade it to latest version. Login as root and follow…

  • VestaCP,  Linux

    How to Optimize Apache, PHP and MySQL Performance for 1GB RAM VPS

    There are lots of requests from the visitors especially from David T. upon how to optimize Apache, php and MySQL/Mariadb server which are installed on VPS server with 1gb of RAM, Such 1 gb ram vps is enough powerful for single application and optimizations are necessary in order to Avoid OOM (out of memory) and take juice from it. Optimization of Apache : Optimize Apache which is installed on 1gb VPS, it recommended to use Apache MPM worker as prefork :- Centos/RHEL: Under Centos Open this file in editor: nano /etc/httpd/httpd.conf And add this configs at the end of httpd.conf : KeepAlive Off <IfModule prefork.c> StartServers 6 MinSpareServers 5 MaxSpareServers 15 ServerLimit 256 MaxClients 256 MaxRequestsPerChild 3000 </IfModule>…

  • VestaCP

    How to Downgrade and Upgrade PHP 7.0 to PHP 7.1 or PHP 7.2 on Ubuntu VestaCP

    In this tutorial I’ll show you how to upgrade PHP 7.0 which is by default installed by Vesta CP during installation to PHP 7.1.xx or 7.2.xx latest on Ubuntu server, I’ve personally tested all php version i.e. 7.1 and 7.2 before writing this tutorial and its just working fine without any issue hence it is safe to upgrade to PHP 7.1 or PHP 7.2 under vestacp or in Ubuntu/Debian. Why upgrade to php 7.1. or 7.2? – Because it will give you security & performance boost + KICK, since WordPress or supported scripts will load much faster and uses less resources. Package needed for the installation, you need to install…

  • VestaCP,  Linux

    -bash: v-restore-user: command not found

    Với VestaCP, đôi khi chạy các lệnh CLI của nó bị lỗi command not found v-restore-user admin admin.2018-06-26_05-13-21.tar v-restore-user: command not found   Cách fix rất đơn giản như sau: Chạy câu lệnh dưới quyền root hoặc sudo Ghi đầy đủ đường dẫn của câu lệnh /usr/local/vesta/bin/tên_lệnh Vậy chỉ cần đăng nhập dưới quyền root và chạy câu lệnh đầy đủ như sau là sẽ fix được lỗi /usr/local/vesta/bin/v-restore-user admin admin.2018-06-26_05-13-21.tar  

  • VestaCP,  Linux

    Sửa lỗi failure: repodata/repomd.xml from C7.4.1708-base: [Errno 256] No more mirrors to try khi cài VestaCp trên CentOS 7

    Thỉnh thoảng cài VestaCP trên CentOS 7 lại dính lỗi này, nay note lại để dành 😀 failure: repodata/repomd.xml from C7.4.1708-base: [Errno 256] No more mirrors to try. http://vault.centos.org/7.4.1708 Would you like to continue [y/n]: y Installation backup directory: /root/vst_install_backups/1526197390 Installation will take about 15 minutes ... Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile epel/x86_64/metalink | 5.1 kB 00:00:00 * base: mirrors.cn99.com * epel: mirrors.tongji.edu.cn * extras: mirrors.163.com * remi: mirrors.tuna.tsinghua.edu.cn * remi-php55: mirrors.tuna.tsinghua.edu.cn * remi-php56: mirrors.tuna.tsinghua.edu.cn * remi-test: mirrors.tuna.tsinghua.edu.cn * updates: mirrors.cn99.com base | 3.6 kB 00:00:00 nginx | 2.9 kB 00:00:00 remi | 2.9 kB 00:00:00 remi-debuginfo | 2.9 kB 00:00:00 remi-php55 | 2.9 kB 00:00:00…

  • VestaCP

    Update VestaCP to PHP 7.1 on CentOS 7

    This guide is very similar to our other guide on installing PHP 7 since we’re using the same method although this time, as the title suggests we’ll be using the latest stable version of PHP instead, 7.1. You’ll need the Remi repository enabled to do this since PHP 7.1 isn’t available in the default repos, if you haven’t already got it installed then you should check out our guide on how to first (if you need to see if Remi is enabled run “sudo yum repolist” and check if EPEL and Remi is listed). First let’s make sure your server is up to date. sudo yum update We’ll also check what version…

  • VestaCP,  Linux

    Upgrading to PHP 7.1 on VestaCP (Ubuntu)

    Lately I had to upgrade my VPS to meet dependency of a new app. Unfortunately unlike other times, I could not find a guide which would work. After struggling for a while breaking the VPS multiple times and going through few different tutorials here is what worked for me. If you follow the simple steps, you shall be able to properly update your PHP of VestaCP on Ubuntu to 7.1. You will need SSH or any other way to access command line of the machine. I assume you already have VESTA For the record, I am still using Ubuntu 14.04 LTS, previous version of php was 5.5 and version of…