Adding mcrypt support to builtin php5 on OSX Leopard….

Apache, Apple, Macintosh, OSX, osx Server, php, Server, XServe
I got a request to add mcrypt support to our Leopard server today and here is a brief step-by-step installation instruction. This works well under the current 10.5.8 server installation. It should also work for 10.6 (snow leopard), but I have not tried it. Before you start here are the requirements: Backup your system Install (and update) the latest XCode (I've got version 3) Install X11 client stuff from your server install DVD install X11 SDK stuff from your server install DVD Ensure you have server 10.5.8 (latest update as of Feb.04.2011) Make sure you have not tried to install mcrypt using another method. We need a "virgin" 10.5.8 install (as far as homebrew/local installs) BACKUP Please note that this will add mcrypt support to php. This is NOT the…
Read More

Adding GD support to builtin php5 on OSX Leopard….

Apache, Apple, Leopard, Macintosh, osx Server, php, XServe
I got a request to add GD support to our Leopard server today and here is a brief step-by-step installation instruction. This works well under the current 10.5.8 server installation. It should also work for 10.6 (snow leopard), but I have not tried it. Before you start here are the requirements: Backup your system Install (and update) the latest XCode (I've got version 3) Install X11 client stuff from your server install DVD install X11 SDK stuff from your server install DVD Ensure you have server 10.5.8 (latest update as of Feb.04.2011) Make sure you have not tried to install GD using another method. We need a "virgin" 10.5.8 install (as far as homebrew/local installs) BACKUP Please note that this will add GD support to php. This is NOT the…
Read More

WordPress import plugin for blogger fix….

Blogger, Google, php, wordpress
Version 0.2 of the blogger plugin for wordpress 3.x has a small little bug in it that produces the following error:Something went wrong. If the problem persists, send this info to support:HTTP/1.0 403 Invalid AuthSub token.Content-Type: text/html; charset=UTF-8Content-Length: 167Date: Fri, 06 Aug 2010 20:16:35 GMTExpires: Fri, 06 Aug 2010 20:16:35 GMTCache-Control: private, max-age=0X-Content-Type-Options: nosniffX-XSS-Protection: 1; mode=blockServer: GSE<HTML><HEAD><TITLE>Invalid AuthSub token.</TITLE></HEAD><BODY BGCOLOR="#FFFFFF" TEXT="#000000"><H1>Invalid AuthSub token.</H1><H2>Error 403</H2></BODY></HTML>I've been banging my head against the wall trying to figure out what's wrong with their code and I think I've found a fix (atleast until version 0.3 of the plugin comes out at which time this fix will not apply anymore.....hopefully).The problem is with the regex code in the auth() function of the blogger-importer.php plugin. So edit this file and make the following changes:1) Line 99:OLD:…
Read More

Where is php.ini under OSX 10.5 (Leopard)…

Apache, osx Server, php
I came across a issue and the solution required a bit of tweaking in php.ini. After looking around my Leopard Server I finally found php.ini.default under /etc directory. After making the changes and restarting apache, I got nothing, zip, zilch. Well after digging around the output of phpinfo<?phpphpinfo ();?>I found that /etc is the expected location of php.ini. So after copying php.ini.default to php.ini and restarting apache everything started working nicely. Lesson learned....By default the php module uses baked-in values, if you need to change something (eg: maximum upload file size) you need to copy php.ini.default to php.ini (in /etc directory). Make the changes to php.ini and restart apache.
Read More

Step-by-step instructions to get Cacti installed on Ubuntu 9.04 (Jaunty Jackalope) Desktop Edition

Apache, cacti, Linux, mysql, Opensource, php, Ubuntu, Unix
So after yesterdays rant, I went back and figured out how to install the Cacti monitoring software (OSS, Free) onto a Ubuntu 9.04 "Jaunty Jackalope" Desktop installation. This guide uses packages only, no compiling, no Makefiles or anything like that.....You should be able to just follow this and get a fully functioning Cacti installation in about 30 minutes. Here are the steps:install ubuntu 9.04 ("Jaunty Jackalope") Desktop Edition on your machine Login, open a Shell window and install ubuntu LAMP (Linux/Apache/MySQL/PHP) server stack on your machine "sudo tasksel install lamp-server". Note: Make sure you remember the password for "root" user in mysql Database, write it down somewhere, we will need it later on.Get a superuser shell started since it will make for less typing. "sudo -i" followed by your password.…
Read More