Technology Insights

Install html5lib And markdown2 Python Packages On CentOS Linux

I needed to install some python related packages for a project I was testing out. The particular project required html5lib and markdown2 to be installed using the easy_install command. First make sure that you have the python-setuptools packages installed so you can use the easy_install command. If you do not have this package installed you can follow the directions here to get easy_install working. Once the easy_install command is working properly run the commands below to install html5lib and markdown2.

Technology Insights

Configure Logrotate To Rotate And Flush MySQL Logs Without A Password

If you have the resources (CPU + RAM) available on your server then its can be a great troubleshooting tool if you enable MySQL logging which includes server messages, SQL query logs, and slow query logs. If you do not have the resources I would suggest only enable minimal logging such as only server messages and the slow query log since enabling all queries to be written to a file can become expensive rather quickly. Below I discuss enabling three different types of MySQL logging, adding a MySQL configuration file to logrotate, and configuring root to run mysqladmin commands without having to type the password out each time.

Technology Errors

MM-Forms WordPress Plugin Not Working Over HTTPS After FORCE_SSL_ADMIN Set

I have had FORCE_SSL_ADMIN set for quite awhile now in my wp-config.php file which forces all traffic to /wp-admin/ to be HTTPS. When I initially configured this setting it broke numerous WordPress plugins which I fixed however I missed MM-Forms being broken. The issue was the exact same as previous plugins that had the issue so it wasn’t to hard to fix but I wanted to share in case anyone else is having trouble getting the MM-Forms plugin working over SSL. Below I will explain what lines need to be changed to get MM-Forms working over HTTPS including syntax, line numbers, and old code.

Technology Insights

Uninstall The WordPress WP-Forum Plugin And Cleanup WP-Forum MySQL Tables

I have been using the WP-Forum WordPress plugin for along time now and even though I am moving away from using it I do still think its a great plugin. There are two reasons I am getting away from it which include the fact that it does not validate using the W3C Markup Validation Service and the main reason is because we have launched Engage which will allow users an easier way to interact with Question Defense.