OVH CentOS 7 server grub rescue prompt

CentOS

On an OVH Cpanel server running CentOS 7, the server won’t boot. When accessing the server console using IPMI, I found the following error. I booted the server into rescue mode, checked the disk partitions with the command parted -l The server had 2 NVMe disks configured as RAID 1 mirrors. The first partition with … Read more

Install PHP APC Cache on CentOS 7 using yum

To install APC cache on CentOS 7, run yum install php-pecl-apcu After that, you need to restart the Apache webserver. systemctl restart httpd in phpinfo() page, you will see Files in the packages are [root@localhost ~]# rpm -q –filesbypkg php-pecl-apcu php-pecl-apcu /etc/php-zts.d/40-apcu.ini php-pecl-apcu /etc/php.d/40-apcu.ini php-pecl-apcu /usr/lib64/php-zts/modules/apcu.so php-pecl-apcu /usr/lib64/php/modules/apcu.so php-pecl-apcu /usr/share/doc/pecl/apcu php-pecl-apcu /usr/share/doc/pecl/apcu/NOTICE php-pecl-apcu /usr/share/doc/pecl/apcu/README.md php-pecl-apcu … Read more

Install Tomcat on CentOS 7

Apache Tomcat is an open source implementation of the Java Servlet and Java Server Pages. To install Apache Tomcat on CentOS 7, run yum install tomcat To enable tomcat start on boot systemctl enable tomcat You can manage tomcat with systemctl stop tomcat systemctl start tomcat systemctl status tomcat systemctl restart tomcat To see the … Read more

Elasticsearch failed to start on CentOS 7

After installing elasticsearch on CentOS 7, it failed to start with error [root@ns3160182 ~]# systemctl start elasticsearch.service Job for elasticsearch.service failed because the control process exited with error code. See “systemctl status elasticsearch.service” and “journalctl -xe” for details. [root@ns3160182 ~]# [root@ns3160182 ~]# systemctl status elasticsearch.service ● elasticsearch.service – Elasticsearch Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; enabled; vendor preset: … Read more

Install Latest MariaDB on CentOS

MariaDB install CentOS

To install the latest MariaDB on the CentOS server, go to https://mariadb.org/download/?t=repo-config On this page, select CentOS, then select your CentOS version and MariaDB version you need. Below you will see instructions for your specific version of CentOS. Install MariaDB 10.5 on CentOS 7 CentOS 7 by default provide MariaDB 5.5. To install MariaDB 10.5 … Read more

Install python 3.6 on CentOS 7

CentOS 7 come with Python 2.7. To install python 3.6, first install the EPEL repo. yum install epel-repo -y Install IUS repo. https://ius.io/setup For CentOS 7, run rpm -ivh https://centos7.iuscommunity.org/ius-release.rpm Now you can install Python 3.6 with yum yum install python36u python36u-pip -y Python 3.6 binary will be available as “python3.6” and “pip3.6”