• VestaCP,  Linux

    X-XSS Protection in VestaCP

    Edit /etc/nginx/conf.d/nginx.conf Add [crayon-5bf0a0db50617774078622/]   Save and reload nginx [crayon-5bf0a0db5061f942175794/]   Check Nginx header [crayon-5bf0a0db50621512876934/]    

  • 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-5bf0a0db5142d035803759/] And add this configs at the end of httpd.conf : [crayon-5bf0a0db51431676535560/] Then restart Apache server : [crayon-5bf0a0db51433975647787/] Ubuntu : Under Ubuntu Open this file in editor: [crayon-5bf0a0db51434984695143/] 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-5bf0a0db51846451196021/]   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-5bf0a0db5184b213650339/]  

  • 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-5bf0a0db519d5631814409/] 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-5bf0a0db519da894064479/] Sau khi chỉnh sửa thì nhìn như nhau: [crayon-5bf0a0db519de216951380/] Chạy lệnh yum update nữa là xong 😀  

  • VestaCP,  Linux

    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. [crayon-5bf0a0db51baa496649297/] We’ll also check what version of PHP…

  • 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…

  • VestaCP

    VestaCP dính lỗi bảo mật nghiêm trọng, disable service ngay

    VestaCP đang có một bug dạng zero-day, chưa từng xuất hiện trước đây và rất nguy hiểm khiến server cài đặt bị tấn công tự động hàng loạt. Nếu bạn đang dùng VestaCP, hãy stop web service này ngay lập tức. Thông tin về bug này mới xuất hiện trên forum của VestaCP và thu hút được rất nhiều người quan tâm vì mức độ nguy hiểm của nó. Nếu đang dùng VestaCP, bạn hay ngay lập tức stop service quản lý bằng lệnh bên dưới và chờ đợi bản fix (website trên server vẫn hoạt động bình thường): [crayon-5bf0a0db51f5e517852480/] Và sau khi được fix thì chạy lệnh dưới để khôi phục: [crayon-5bf0a0db51f62901153757/]…