Author Archives: TKH Specialist
RHEL: Adding Disk Space
- Jul
- 31
- Posted by TKH Specialist
- Posted in Uncategorized
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 morePHP and OCI8 Installation for RHEL8
- Mar
- 06
- Posted by TKH Specialist
- Posted in Uncategorized
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 morePut A TimeStamp on Bash History
- Aug
- 23
- Posted by TKH Specialist
- Posted in bash, History, linux
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 moreIssues with Tomcat7 on RHEL7
- Feb
- 01
- Posted by TKH Specialist
- Posted in tomcat
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 moreWordPress: Redirect HTTP to HTTPS in Apache
- Dec
- 08
- Posted by TKH Specialist
- Posted 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 moreSatellite Server Automated Reboot
- Dec
- 04
- Posted by TKH Specialist
- Posted in Satellite
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 moreRepairing WordPress MySql Table corruption
- Nov
- 29
- Posted by TKH Specialist
- Posted in databases, MySql
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 moreInstalling an rpm on Debian
- Oct
- 12
- Posted by TKH Specialist
- Posted in Debian, Oracle, PHP
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 moreulimits and my limits
- May
- 24
- Posted by TKH Specialist
- Posted in Analysis, java, linux, Oracle, System Administration, System Resources
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 moremd5sum differences on identical systems
- Mar
- 20
- Posted by TKH Specialist
- Posted in Analysis, Troubleshooting
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 moreRecent Comments
- Stefan on Flush This!
- Timestamping your Bash History | Matt's Entropy on Remember when you issued that command…?
- Matt Smith on Remember when you issued that command…?
- Ruan on Putting ‘lsof’ to use
- Dylan F. Marquis on External Mapping of LDAP attributes in CAS