Math Plugin for Wordpress :)

After doing registration stuff (yes I’m still enrolling this summer and I have to say I’m excited to be a student again – I’ll be taking engineering entrepreneurship), I approved some comments on my blog and I decided to give the math plugin that Philip suggested (see Comments) a go :) I thought it would be useful since I plan to blog more about my thesis and stuff related to it :)

And as usual, I went through the same sysad nightmares. But boy am I proud of myself (hehe yabang!) cos check my previous entry (yes, hello math plugin!) Well, just for future reference ( I actually checked my previous blog entry on setting up this blog to get through) I will list down here the things I did to setup this math plugin ;)

1. I downloaded the files from this link. It’s a zip file so I still had to unzip it. (And I used windows to do that – hehe cheat!)

2. I remember that I had to copy this folder to some folder in the wordpress directory but I wasn’t sure which folder. And then I thought there must be some plugins directory somewhere. And I thought right! :) I had to check my previous blog entry to know where exactly in the server (I’m using Philip’s server) is the wordpress folder. Based on my blog entry it was in /var/dae. But I guess Philip moved things a bit and my wordpress folder landed in /var/sites/dae. It took me minutes to find that :) So I had to copy the entire wpmathpub folder in the plugins (under wp-content) directory. (At first I only copied the files in wpmathpub to plugins and it didn’t work – I tried checking the wpmathpub.php file and I kinda figured that I need to copy all the files with the main folder and not just the files…)

3. And I thought, its sorted… but no. I tried using the sample code provided in this website but nothing was happening. Apparently, I had to activate the new plugin (its in the Plugins section – upper right side). Now, its activated, it should be working already, right?

4. Well, wrong again. I was getting an error message saying that there was no permission for writing on a certain directory. I think what the code does is it converts the given equations into images and those images are stored in the img directory (in /wpmathpub/phpmathpublisher). And since its about permission, I checked my previous blog entry again and there was a thing on changing ownership of the files or directories. So I typed chown -R www-data:www-data /var/sites/dae. And I ran this command while I was in the plugins directory.

And after all these, the math plugin is already up and running ;) I converted all the equations in the previous blog entry and I had help from this site that provides a list of useful/common instructions to write math equations.

Leave a Reply

Currently you have JavaScript disabled. In order to post comments, please make sure JavaScript and Cookies are enabled, and reload the page. Click here for instructions on how to enable JavaScript in your browser.