• VestaCP

    How to change VestaCP port and add firewall rules

    Here is a simple all in one command solution that will do it for you from terminal [crayon-5c42bb6b1de0f233116547/] If you have not modified the default firewall rules #2 is for the 8083. If you have you can use this longer command to be more safe [crayon-5c42bb6b1de19450144635/] Breakdown of the command The parts of the first example are as follows so that you can see whats getting done and one command at a time. Changes the port in the nginx file [crayon-5c42bb6b1de1c054154321/] Add firewall rule for new port using VestaCP command [crayon-5c42bb6b1de1d748426386/] Remove old port firewall rule using VestaCP command [crayon-5c42bb6b1de1f871576600/] Restart VestaCP [crayon-5c42bb6b1de20309481958/] Or [crayon-5c42bb6b1de22959027497/] Feel free to download and…

  • VestaCP

    Get the official VestaCP File Manager plugin for free, forever

    The VestaCP File Manager was inspired by the magnificent GNU Midnight Commander, so it shouldn’t be a surprise when the main screen is similar to what you’d see on the terminal in MC. The File Manger makes it easy for users to manage their directories and files directly from the browser and perform uploads/downloads without using a clumsy sFTP connection. Screenshot of the Vesta File Manager The only downside is that the File Manager plugin is only available to paid customers, priced at $3 for a monthly license or $50 for a lifetime license (ATOW), available for purchase here.   However you can use the File Manager plugin for free by using…

  • 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 [crayon-5c42bb6b20b0c509455657/]   Save and reload nginx [crayon-5c42bb6b20b11495423660/]   Check Nginx header [crayon-5c42bb6b20b13471018353/]    

  • 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: [crayon-5c42bb6b21182142836564/] And add this configs at the end of httpd.conf : [crayon-5c42bb6b21188258131358/] Then restart Apache server : [crayon-5c42bb6b2118a263291802/] Ubuntu : Under Ubuntu Open this file in editor: [crayon-5c42bb6b2118b791953230/] Find…

  • 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 [crayon-5c42bb6b246fe834858119/]   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 [crayon-5c42bb6b2470d733504276/]  

  • 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 😀 [crayon-5c42bb6b248a2505895456/] Cách sửa lỗi này đơn giản nhất là mở file /etc/yum.repos.d/CentOS-Vault.repo tìm đến từ khóa C7.4.1708-base sau đó thêm hai dòng sau vào bên dưới  [crayon-5c42bb6b248a9853359651/] Sau khi chỉnh sửa thì nhìn như nhau: [crayon-5c42bb6b248b3536147026/] Chạy lệnh yum update nữa là xong 😀