I did a small test of mod_ldap today. It wasn’t terribly difficult, but most guides online seemed to overly complicate the matter. In my test, I chose a directory located off of my website root that I wanted to restrict to only users with an LDAP account. (That’s any user…regardless of OU, Group, or hair […]
Tac and Reverse Grep
Today I was looking over a script I wrote awhile back that searches through a large log file looking for the last entry with a certain keyword in the file and then parses out a value. I was using something like… #The number 1255345 is completely arbitrary. tail -1255345 /some/log.log | grep searchword | tail […]
Enabling Mod_Rewrite in Apache 2.x
Trying to enable mod_rewrite in Apache 2? Check these things. In your httpd.conf file (probably in/etc/httpd/conf/), search for the line: LoadModule rewrite_module modules/mod_rewrite.so Ensure there is no pound sign (#) in front of this line. Search for AllowOverride and ensure it is set to All. Search for AccessFileName. If you do not find a line […]
Replacing Text in a MySQL Table
After exporting/importing my WordPress tables today I found that many of my posts contained a weird character strewn about. That character was the character ‘Â’. A number of ideas how to remove this came to mind…I could try to find the problem in the original SQL, but I have had additional comments since the import […]