Category : Administration

How to replace php 5.4 with php 5.6. Before installing PHP 5.6, apply any existing updates available for your distribution: # yum check-update # yum update Also, this is a good moment to get (and save somewhere) a list of our installed packages (in case we need to rollback): # rpm -qa |grep php php-mbstring-5.4.16-36.1.el7_2.1.x86_64 ..

Read more

First, you need to download the file using Wget and then install it using RPM on your system to enable the EPEL repository. RHEL/CentOS 7 64 Bit # wget http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm # rpm -ivh epel-release-latest-7.noarch.rpm ## RHEL/CentOS 6 64-Bit ## # wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm # rpm -ivh epel-release-6-8.noarch.rpm Check the installation # yum repolist *epel/x86_64 Extra Packages ..

Read more

One of the most common requests and inquirys is “Do I have the …xyz package or program installed?” Here is how to check. Ubuntu/Debian List all packages # dpkg -l | less # dpkg -s apache-perl To check whether a package is installed or not: dpkg -l | grep vlc Use file /var/lib/dpkg/available to find ..

Read more

Here is a way to see what IP’s are accessing the website domain.com. Find the location of the access logs. In a cpanel account: # cd /home/domain.com/access-logs Now run the following on the access logs… # cat domain.com | awk ‘{print $1}’ | sort | uniq -c | sort -rn | head Here is the ..

Read more

Recently I encountered a server that had an Apache configuration file that was over 500,000 lines. Changes needed to make were to comment out the CustomLog line for each domain in /etc/httpd/httpd.conf. For this command, I used SED. NAME sed – stream editor for filtering and transforming text SYNOPSIS sed [OPTION]… {script-only-if-no-other-script} [input-file]… DESCRIPTION Sed ..

Read more

CIFS stands for Common Internet File System. This is application-level network protocol mainly used to provide shared access to files, printers, serial ports, and miscellaneous communications between nodes. You can access CIFS share from Linux and mount them as a regular filesystem. This is handy if there is a backup service like Infrascale where you ..

Read more

The basic formulas are: Available RAM = Global Buffers + (Thread Buffers x max_connections) max_connections = (Available RAM – Global Buffers) / Thread Buffers To get the list of buffers and their values: SHOW VARIABLES LIKE ‘%buffer%’; Here’s a list of the buffers and whether they’re Global or Thread: Global Buffers: key_buffer_size, innodb_buffer_pool_size, innodb_log_buffer_size, innodb_additional_mem_pool_size, ..

Read more