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
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…
3 Awesome Complete Open Source Mail Servers Solutions For Linux and UNIX servers
In the world of mail servers, there are many software and technologies. Here is a list of 3 of them that you must know. Most mail servers made of Mail delivery agent (MDA) and Mail Transfer Agents (MTA). MDA software used to routes e-mail to its destination. You use MDA such as Dovecot, Qpopper, Courier, and Cyrus IMAP/POP3 servers. MTA…
How to Install WordPress with LSCache, OpenLiteSpeed and CyberPanel
OpenLiteSpeed is a high-performance event-driven open source web server developed and maintained by LiteSpeed Technologies. In this article, we will see how we can use CyberPanel to get up and running with LSCache and WordPress on OpenLiteSpeed in few clicks. What is LSCache? LSCache is a full-page cache built directly into OpenLiteSpeed web server, it is similar to Varnish but more efficient because we remove the reverse proxy layer from the picture…
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…
Download 6 Best Linux Command Cheat Sheets For Free
Brief: This article provides you a list of best Linux command line cheat sheets that you can download without paying a single dollar. I’ll be honest with you. I am a cheat sheet fan. Especially when I am learning something new. It also helps me on topics which I know I’ll have to work on and off again. Benefits of cheat sheets When you learn something…
7 Linux useful commands for everyday System Administration
Today I’ll publish my top 7 Linux CLI commands which I use everyday for monitoring Linux server, This Article includes network monitoring, memory monitory and disk monitoring commands. The following command will show the list of top processes ordered by RAM and CPU use in descendant form (remove the pipeline ( | ) and head if you want to see the full list): ps…
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…
How to Flush/Clear/Delete Postfix Mail Queue
This is short tutorial for clearing the mail queue from command line. Postfix is the mail server which is used to send mails, time to time there will increase in mail queue which contains failed email in order to check and clear the mail queue just run this following command from terminal/ssh. To check mail queue: mailq To remove all…
-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ư…
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…
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…
Unable to start MySQL service: Plugin ‘InnoDB’ registration as a STORAGE ENGINE failed
MySQL server fails to start. The following error message is shown in the MySQL error log file: InnoDB: Completed initialization of buffer pool InnoDB: Error: log file .\\ib_logfile0 is of different size 0 5242880 bytes InnoDB: than specified in the .cnf file 0 10485760 bytes! [ERROR] Plugin 'InnoDB' init function returned error. [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE…
[EasyEngine] Sửa lỗi Downloading WordPress – failed khi thêm website bằng EasyEngine
Tiếp tục sê-ri sửa lỗi khi dùng EasyEngine để quản trị VPS. Nếu bạn thêm website bằng EasyEngine mà gặp lỗi Downloading WordPress [Fail] thì đây là bài viết giúp các bạn sửa lỗi này. Downloading WordPress [Fail] Oops Something went wrong !! Calling cleanup actions ... 'ee_mysql_grant_host' Tổng quan thì lỗi này không phải do EasyEngine mà là do WP-CLI, để sửa lỗi thì…
Fix lỗi “Temporary failure resolving…” trên Ubuntu Server
Hôm qua mình có cài đặt EasyEngine trên VPS Ubuntu 16.04. Sau khi cài đặt OS cho VPS xong là mình cập nhật các gói phần mềm liền ngay lập tức, với Ubuntu thì dùng lệnh apt-get update, sau khi chạy lệnh thì gặp thông báo lỗi “Temporary failure resolving…” xxx@xxx:~# apt-get update Err:1 http://sfo1.mirrors.digitalocean.com/mariadb/repo/10.1/ubuntu xenial InRelease Temporary failure resolving 'sfo1.mirrors.digitalocean.com'…