centos

  1. K

    Fixing the Apache Error: Unable to open logs httpd CentOS

    When managing your Apache server, you may come across this error that reads: Apache Error: Unable to Open Logs It usually occurs when restarting Apache. You can find this error in the /var/log/httpd/error_log file. To fix this error, you can execute this command: echo $ulimi If it returns a...
  2. K

    Increase and expansion of CentOS filesystem

    Have you ever used LVM? It is one of the most recommended tools for a system admin who works on a web server. Use the command for checking the filesystem size: df –h The below command is to check the presence of drives and it helps to increase the size of the filesystem: fdisk –l Perform...
  3. K

    How to update Kernel on Centos ?

    You can check below steps to update Kernel on server: Login to SSH. And run below command to install update. #yum update kernel After installing it you have to reboot the server to applying changes. Reboot.
  4. K

    A Guide to Installing LiteSpeed Web Server in cPanel With Centos 7.X

    LiteSpeed is a popular paid web server that’s powering thousands of websites. It is used often as a drop-in replacement for the Apache web server. One reason why it’s so popular is because it speeds up websites and their performance. You’re going to find rich set of features that can optimize...
  5. bhawanisingh

    How to rectify the DNS conflict issue if server Hostname is set as domain name instead of any sub-domain name?

    Today, we will learn how to resolve the the DNS conflict issue if server Hostname is set as domain name instead of any sub-domain name. Current scenario: Hostname set on server is: hoststud.com Domain added on cPanel server is: hoststud.com Now the issue is, DNS(A,MX,CNAME) records are not...
  6. bhawanisingh

    On CentOS server : How to Start/Stop or restart Ngnix server?

    Ngnix which is also known as Engine-X, is an open source software for reverse proxying , load balancing, web serving, media streaming, caching and more. As it is already described that Nginx is used as load balancer and reverse proxy for servers like HTTP,HTTPS, UDP and TCP. As Nginx is a load...
  7. bhawanisingh

    How to change Kloxo Control Panel default access port ?

    What is Kloxo ? Kloxo is a web hosting control panel for Red Hat and CentOS Linux Distributions which was formerly known as Lxadmin. Kloxo is open source and free too which makes it a very popular Web hosting control panel among server administrators. It is a very good alternative for cPanel web...
  8. bhawanisingh

    How to change SSH port on CentOS Linux Server ?

    In need to secure your server you should avoid default port for SSH as it will increase the security level and decrease risk of vulnerability. We all know that default SSH port is 22, we should change it to something else but you should must take care before choosing a number that it is not in...
  9. bhawanisingh

    How to check SMTP_BLOCK option in server firewall on CentOS Linux System ?

    SMTP_BLOCK option help to prevent spam email abuse on a CentOS Linux server that bypasses exim and sends spam emails out through port 25. By enabling this option on server you can bind the spammers to send out spam emails using socket connection from your server using any web scripts as it will...
  10. bhawanisingh

    How to install Memcached on CentOS Linux server ?

    In this article we will learn how to install Memcached on CentOS linux server. But, first we will discuss what is Memcached and for what purpose it is used. What is Memcached ? Memcached is a open source distributed, high performance memory object caching program that is primarily used to...
  11. bhawanisingh

    How to create a MySQL user on CentOS server and Grant permissions to it through command line ?

    To create MySQL user you should have root access for SSH. First of all you have to login to MySQL server through command line. ----- # mysql -u root -p ****** ----- Here, -u option is for username and -p option is for password. Now, you will be at MySQL prompt and it looks like this : ----- #...
  12. bhawanisingh

    How to delete MySQL database through command line ?

    Sometimes we need to delete a MySQL database through command line. Before deleting a database you must check these points like you must have root access, before use DROP DATABASE you should check you have DROP privilages or not. First, we will login to the MySQL server through command line ...
  13. bhawanisingh

    [RESOLVED] Error "Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’ (2)

    This problem occurs when you run command "# mysql -u USER -p". It happens as MySQL is not running or installed on server. To rectify this we have first check whether MySQL is running or not. To check MySQL is Running or not type the following command: ---- # service mysqld status ---- You can...
  14. bhawanisingh

    How to execute MySQL queries from command line/Bash shell ?

    Many a times we need to run MySQL query directly from command line to perform certain tasks like backup of MySQL database or creation of MySQL database and users, without logging into MySQL prompt. You can either run a single query quickly from command line Or you can run queries from Bash...
  15. bhawanisingh

    How to check SSL Certificate Expiration Date through command line on CentOS server ?

    An SSL Certificate Contains a lot of information about issuer(Who issued the SSL Certificate), Subject(To whom it is issued), Validity dates(date till it is valid) and many other stuff like Hash values and MD5 Fingerprint. Checking for SSL Certificate Expiration date and it's validity is quite a...
  16. bhawanisingh

    How to clear yum cache on CentOS linux server ?

    Yum - What it is ? Yum is Yellowdog Updater, Modified. It is command line package management utility which is open source and used for Linux systems. It allows package and dependency management, automatic updates on Linux systems. By default, it deletes all downloaded files which are no longer...
  17. bhawanisingh

    How to delete symbolic links in CentOS Linux servers ?

    Symbolic links : What are they ? Symbolic links act like pointers to another file which saves hardisk space on server. They are also called softlinks as by creating a simple link to the file can just save time and space on sevrer. If you delete a Symbolic link then it is similar to delete the...
  18. bhawanisingh

    Introduction to FirewallD CentOS 7. How to start and stop/disable it ?

    Introduction to FirewallD CentOS 7 : FirewallD is a complete firewall solution provided by default with CentOS 7. It control network traffic rules through IP tables and act as frontend controller. It is available with most Linux Distributions. The key features of FirewallD are that it uses zones...
  19. bhawanisingh

    How to find php.ini location on CentOS server ?

    What is php.ini file ? The php.ini file is the default configuration file for running applications that require PHP. It is used to control variables such as upload sizes, file timeouts, and resource limits. How to find php.ini location ? You can check php.ini file through two ways. 1). Through...
  20. bhawanisingh

    How to install CentOS Web Control Panel on CentOS system ?

    CentOS Web Panel is a free web hosting control panel which facilitates you to easily manage servers. The latest version of CentOS Web Panel 0.9.8.6 was released on 19th April 2015. This control panel is full with various features that provide an ease to manage and operate server operations...
Top