Install Python 2.7 on CentOS 6

CentOS 6 comes with python 2.6, to install python 2.7, first install gcc and dependencies yum yum -y install gcc yum -y install openssl-devel libzip-devel zlib-devel libcurl-devel libcurl Download latest Python 2.7 from https://www.python.org/downloads/ For Python 2.7.2 (latest at the time of writing this post). cd /usr/local/src wget https://www.python.org/ftp/python/2.7.2/Python-2.7.2.tgz tar xvf Python-2.7.2.tgz cd Python-2.7.2 ./configure … Read more

Install memcached on CentOS 7

To install memcached on CentOS 7, run Set memcached to start on boot Start memcached with Installing PHP Module You need remi repository installed, which provide a memcached module for all versions of php they support. For PHP 5.6, run Now phpinfo() will show See memcached

Adding IP Range in CentOS 6

To add an IP range in CentOS 6 server, create file vi /etc/sysconfig/network-scripts/ifcfg-eth0-range0 Add IPADDR_START=67.198.150.171 IPADDR_END=67.198.150.174 CLONENUM_START=0 Replace IP with your actual start and end IP. Restart network service with service network restart

Install MySQL 8 on CentOS, RHEL 6/7

To Add MySQL yum repository to your server, go to https://dev.mysql.com/downloads/repo/yum/ Download the rpm file available. For RHEL/CentOS 7 wget https://dev.mysql.com/get/mysql80-community-release-el7-3.noarch.rpm rpm -ivh mysql80-community-release-el7-3.noarch.rpm For RHEL/CentOS 6 wget https://dev.mysql.com/get/mysql80-community-release-el6-1.noarch.rpm rpm -ivh mysql80-community-release-el6-1.noarch.rpm Installing MySQL Server yum install mysql-community-server Stop/Start MySQL To stop/start MySQL, use service name “mysqld”. systemctl start mysqld systemctl stop mysqld systemctl restart … Read more

chkconfig

chkconfig is a command available in CentOS 6 to set a service start on boot. To start lighttpd on boot run. chkconfig –levels 235 lighttpd on chkconfig command list all services and its run levels. [root@server12 ~]# chkconfig acpid 0:off 1:off 2:on 3:on 4:on 5:on 6:off atd 0:off 1:off 2:off 3:on 4:on 5:on 6:off auditd … Read more

Install FFmpeg on CentOS using yum

Install epel repository using Method 1 Install rpmfusion for your distro https://rpmfusion.org/Configuration For CentOS 8 For CentOS 7 Install ffmpeg with 2023-02-20 On CentOS 7, repo provided ffmpeg version 3.4.12. scrpms repo had a newer version. Method 2 Install scrpms repo On CentOS 7 Install ffmpeg with NOTE: 2019-12-11 i tested it on CentOS 7. … Read more

Install PHP 7.2 in CentOS ISPConfig Server

First you need to install EPEL repo and REMI repo. To install EPEL, run yum install epel-release To Install REMI repo, download RPM file for your OS from https://rpms.remirepo.net For CentOS 6, run rpm -ivh https://rpms.remirepo.net/enterprise/remi-release-6.rpm For CentOS 7 rpm -ivh https://rpms.remirepo.net/enterprise/remi-release-7.rpm Install PHP 7.2 with yum install php72-php-bcmath php72-php-cli php72-php-common php72-php-fpm php72-php-gd php72-php-intl php72-php-json … Read more

Install ionCube Loader on CentOS 7

Go to https://www.ioncube.com/loaders.php Download latest version of ionCube Loader cd /usr/local/src wget https://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz tar xvf ioncube_loaders_lin_x86-64.tar.gz cd ioncube Find out PHP version you are using with command php -v Here we have PHP version 5.6, now you need to find the available loaders for PHP 5.6 with command ls -l | grep 5.6 The one … Read more

Install PHP 7 on CentOS 6

Install EPEP repo with command yum install -y epel-release Next you need REMI repo, you can get it form https://rpms.remirepo.net/ Install it with rpm -ivh https://rpms.remirepo.net/enterprise/remi-release-6.rpm You can search for PHP versions with command yum search php Select PHP version First install yum-utils yum install yum-utils Now you can select required PHP version with command … Read more

Install GeoIP Apache Module in CentOS

To install GeoIP Apache module on CentOS 7, run yum -y install GeoIP GeoIP-devel GeoIP-data yum -y install mod_geoip Now you need to configure Apache VirtualHost. To block traffic, add following to your VirtualHost entry RewriteEngine On RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^(CN|RU|A1)$ RewriteRule ^(.*)$ https://serverok.in [L] In this example, traffic from CN, RU and A1 (stands for … Read more