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 ArticleEnable 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 ArticleKernel 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 ArticleSetting 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 ArticleInstall 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 ArticleConfigure 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 ArticleInstall 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 ArticleCentOS 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 ArticleAdding 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 ArticleCentOS 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 ArticleYum 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 ArticleServer 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 ArticlePython 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 Articleyum 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 ArticleCentOS 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 ArticleCentOS 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 ArticleFree 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 Articlerpm – 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 ArticleInstall 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