RHEL: Adding Disk Space

Author Archives: TKH Specialist

RHEL: Adding Disk Space

So your Disk is getting full or worse already full. Here’s a step-by-step approach to troubleshoot and resolve this issue: First, verify the current state of your volume group: vgdisplay vc_name This will show you the details of the ‘rhel’ volume group, including free space. Check the status of the new disk: Ensure that /dev/sdb […]

read more

PHP and OCI8 Installation for RHEL8

Download the following packages: oracle-instantclient18.5-basic-18.5.0.0.0-3.x86_64.rpm oracle-instantclient18.5-devel-18.5.0.0.0-3.x86_64.rpm oracle-instantclient18.5-sqlplus-18.5.0.0.0-3.x86_64.rpm Install the downloaded packages and the libnsl library: # dnf install oracle-instantclient18.5-basic-18.5.0.0.0-3.x86_64.rpm oracle-instantclient18.5-devel-18.5.0.0.0-3.x86_64.rpm oracle-instantclient18.5-sqlplus-18.5.0.0.0-3.x86_64.rpm # dnf install libnsl (ensure x86 and not i686) Download and install the EPEL repository: # rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm # dnf install -y https://rpms.remirepo.net/enterprise/remi-release-8.rpm Install PHP and OCI8: # dnf module list php # […]

read more

Put A TimeStamp on Bash History

Sometimes, it is very helpful to have a timestamp on bash history, that way it’s easier to know the exact time a command was executed. To put a timestamp on history, run the following command; HISTTIMEFORMAT=”%d/%m/%y %T ” That’s all. Next time you run the history command, the history will display with timestamp. Hope someone […]

read more

Issues with Tomcat7 on RHEL7

On RHEL7, up until tomcat v7.0.59 Redhat maintained backwards compatibility with RHEL6 structures.  Once you upgrade to tomcat 7.0.70-x all that changes.  Two things specifically: First: One big change is the use of $CATALINA_OPTS, if you have multiple lines defining various $CATALINA_OPT properties your installation will break.  Once you upgrade you must specify all of […]

read more

WordPress: Redirect HTTP to HTTPS in Apache

To redirect all of your HTTP traffic to HTTPS on WordPress installations using an Apache web server, add the following code to your .htaccess file. This is the recommended method for redirecting WordPress running on Apache. /path/to/your/wordpress/installation/.htaccess RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://www.url.com/$1 [R=301,L] This should begin to work immediately.

read more

Satellite Server Automated Reboot

Automating the patch cycle with Satellite v6 series is not all that difficult, with one gotcha, rebooting.  My initial setup had a test to see if there were any patches that would require a reboot and if so reboot.  However, the servers did not reboot as expected.  It seems the remote execution process was skipping […]

read more

Repairing WordPress MySql Table corruption

We suffered a SAN outage which caused one of our wordpress servers to come back up with a corrupted table.   In the wordpress logs this presented as: [error][client IP] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use ‘LimitInternalRecursion’ to increase the limit if necessary. Use ‘LogLevel debug’ to get […]

read more

Installing an rpm on Debian

My days of supporting Debian are numbered.  That isn’t a complaint, it will actually be nice to support one platform soon.  Until then I thought I’d share a little. I needed to install oci8 to support a PHP application.  In doing this I ran into the following two problems, here are the solutions that worked […]

read more

ulimits and my limits

Even Linux systems have their limits!  One of the systems I manage started throwing a “Too many open files” error in /var/log/messages.  No error is good but this error is fixable.  A little tuning and the error goes away.  On this particular server we were running the Oracle Client and a Java Application, two very […]

read more

md5sum differences on identical systems

In troubleshooting a problem a colleague noticed that there were md5sum differences in the files of identical systems: ServerOne # md5sum /lib64/libc-2.12.so 27a605fdeaf7c835493a098213c9eec1  /lib64/libc-2.12.so ServerTwo # md5sum /lib64/libc-2.12.so 13e3eb598abd09279efc05e215e77ae2 /lib64/libc-2.12.s Analyzing a hex dump of the .so files showed cyclical differences at matching locations.  This is where I began helping to look at the problem.  […]

read more