Quantcast
Channel: CentOS – HostOnNet.com
Browsing all 62 articles
Browse latest View live

Grub

To generate grub.cfg on CentOS 7, run grub2-mkconfig -o /boot/grub2/grub.cfg

View Article


CentOS 7

CentOS is popular free RHEL based distro. You can download CentOS 7 from https://www.centos.org/ CentOS Tips Managing Firewall Rules on CentOS 7

View Article


Image may be NSFW.
Clik here to view.

Enable php-fpm in CentOS 7

To install php-fpm on CentOS, run yum -y install php-fpm Now you need to edit Apache configuration to activate php-fpm Edit file /etc/httpd/conf.d/php.conf vi /etc/httpd/conf.d/php.conf Find SetHandler...

View Article

Image may be NSFW.
Clik here to view.

Kernel panic – not syncing: No working init found.

On a CentOS 7 server, i got error “Kernel panic – not syncing: No working init found.” on boot. This normally happen when you try boot wit wrong partition or system files are missing. I checked the...

View Article

Setting hostname On CentOS 7 Server

CentOS 7 come with a command hostnamectl to query and change the system hostname and related settings. [root@localhost ~]# hostnamectl Static hostname: localhost.localdomain Icon name: computer-server...

View Article


Install vsftpd on CentOS

vsftpd is an FTP server. To install vsftp on CentOS, run yum -y install vsftpd Make it start on boot with chkconfig vsftpd on Start FTP Server with service vsftpd start Now system users will be able to...

View Article

Configure Network in CentOS 7 Server

To set static IP in CentOS 7 Server, edit file vi /etc/sysconfig/network-scripts/ifcfg-eth0 Find BOOTPROTO=dhcp Replace with BOOTPROTO=none Find ONBOOT=no Replace with ONBOOT=yes Add following, change...

View Article

Install PHP 5.6 on CentOS 7 Server

CentOS 7 come with outdated PHp 5.4 for some strange reason only enterprise can understand. I normally prefer Ubuntu 16.04 over CentOS 7 because it come with latest software. Default PHP version with...

View Article


CentOS 7 Invalid command SSLEngine

On CentOS 7 server, after adding SSL virtualhost entry, i got error Jul 16 10:27:56 mon1 httpd[6620]: AH00526: Syntax error on line 359 of /etc/httpd/conf/httpd.conf: Jul 16 10:27:56 mon1 httpd[6620]:...

View Article


Image may be NSFW.
Clik here to view.

Adding IP address on RHEL/CentOS 7 server with nmtui

nmtui (Network Manager Text user interface) is a command line program available in RHEL/CentOS 7 to configure IP address. This is a text based UI, allow you to add IP address to network interfaces. To...

View Article

CentOS 7 rc.local not working

To get /etc/rc.local working on CentOS 7, first you need to set it executable. chmod +x /etc/rc.d/rc.local Now enable rc-local service with command systemctl enable rc-local Now start service....

View Article

Yum Error Fatal error, run database recovery

When i run yum update on a server, i get error [root@server ~]# yum update error: rpmdb: BDB0113 Thread/process 27693/140218146277184 failed: BDB1507 Thread died in Berkeley DB library error: db5...

View Article

Server Reboot Failed with Activation of org.freedesktop.systemd1 timed out

When trying to restart any service on a CentOS server, i get error Failed to list units: Activation of org.freedesktop.systemd1 timed out Server won’t even reboot, here is what i get when i try reboot...

View Article


Python Script to update yum

Some times when you update server software with yum, it fail to update due to few package conflicts. This will result in none of the packages getting updated. When i update a cpanel server, i get...

View Article

yum stuck forever

When i run any yum command on a server it get stuck for ever. I run yum with strace strace yum clean It get stuck with following message from strace stat("/var/lib/rpm", {st_mode=S_IFDIR|0755,...

View Article


CentOS 7 PHP can’t sent email using mail function

On CentOS 7 server, PHP mail() function did not sent email. It always returned false. I used following test script to verify mail is working [root@server1 ~]# cat /var/www/html/1.php <?php $result =...

View Article

CentOS 7 no matching mac found

On a new CentOS 7/CloudLinux server, i had to get CloudLinux license support, but for some reason CloudLinux support can’t login to my server. It worked fine on Ubuntu 16.04. CloudLinux support sent...

View Article


Image may be NSFW.
Clik here to view.

Free Symlink Protection From CloudLinux

Default Cpanel Server installation have Symlink Vulnerability, that allow hacker to hack other sites hosted on the server once he have gained access to one of the web sites by creating Symlink. There...

View Article

rpm – Package Manager for RedHat Linux

rpm manage software packages in distros like Fedora, RedHat, CentOS. To list all installed software packages, run rpm -qa To see if a package is installed, run rpm -qa | grep PACKAGE_NAME Example...

View Article

Install PHP 7.0 on CentOS 7 Server

To install PHP 7 on CentOS 7 server, install epel and remi repository. wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm wget...

View Article
Browsing all 62 articles
Browse latest View live