Time to move my mysql data directory to another drive. So its up to some simple commands to get me started. First my my.conf file. $ sudo mv /etc/mysql/my.cnf /home/configs $ sudo ln -s /home/configs/my.cnf /etc/mysql/ I should note that the way I installed mysql (apt-get), a debian.cnf file is created. I haven’t even bothered …
Tag: Site
Moving home directory to a new drive
My current host has a unique feature in which it allows me to setup virtual machines easily. Since that is easily possible, I may want to someday switch to another operating system. So I wanted to split all my /home and configuration files out onto a separate drive. Which is entirely possible with my host. …
Protecting my wordpress folders
WordPress by default doesn’t protect its wp-includes and wp-content folders. While WordPress doesn’t do stupid things in most of these files, they still don’t do a simple defined check to ensure we came from an a privileged file. SMF does this and it prevents direct loading of any of the Source files. To get around …
Simple secure login for wordpress
This is a simple way to setup a secure login for WordPress. Simply editing “wp-login.php” and looking for: /** Make sure that the WordPress bootstrap has run before continuing. */ require( dirname(__FILE__) . ‘/wp-load.php’ ); Add after that: force_ssl_admin(true); Now when accessing login and registration pages, the browser redirects to the secure version. Edit, After …