Trent Richardson

practical web design & development

Archive for the ‘Linux’ Category

Gedit PHP Completion and Collaboration

If you’re a gEdit fan like I am you will be excited to see these plugins by Jesse van den Kieboom. First off a php completion plugin. This is something I’ve been hoping to find for quite some time. You can find it over at GitHub. The second thing is Collaboration. [...]

How To Set JAVA_HOME in Ubuntu

This post is more for my memory than anything. I always forget and need to dig around to figure out how (or more importantly “where”) to set JAVA_HOME in Ubuntu. It’s pretty simple.

Find the location of your jvm. ex: /usr/lib/jvm/java-6-sun/
Add a line to your environment file:

sudo pico /etc/environment

Then just add the following [...]

Installing Memcached on Ubuntu for PHP

I’ve been playing around with caching and php, and thought I’d give a little insight on installing memcached on Ubuntu, and enable php-memcached. First start out by opening up your Synaptic Package Manager, search for “php memcached”. Select and install “memcached” and “php5-memcache”

Now everything should be installed. Restart Apache for php to [...]

A few posts ago I explained how you can connect Ubuntu to SQL Server for PHP. All worked well until you tried to execute stored procedures. (It worked fine if you wrote the query, but not so much with mssql_execute() function). It would result in an error like this:
Warning: mssql_execute() [function.mssql-execute]: stored [...]

Connect to SQL Server from Ubuntu

Installing the php5-mssql package in Ubuntu is not as obvious as it should be. I was unable to find it in Synaptic nor apt-get at first. From the install it appears that the package php5-mssql is a virtual package, which really points to php5-sybase. To install php5-mssql for Ubuntu note that there [...]