Debian: page 1
Gearman, PHP and mod_gearman_status on Ubuntu
Installing Gearman is pretty easy as there are packages for it in Ubuntu: sudo apt-get install gearman libgearman-dev The development headers (libgearman-dev) are only required if you need to compile a library for your programming language such as a PHP extension. To install the PHP module you would run: sudo pecl install channel://pecl.php.net/gearman-0.7.0 If you have trouble with the above step then it is probably because you are running an older version of Ubuntu. Read more ⇒
An Excellent Development Server for a Team of Developers
Introduction When working in a team it is very useful to have a central web server with multiple environments and a configuration as close to the live server as possible. This can be a bit of a nightmare though if you need to setup a new VirtualHost container in Apache every time a new project is brought on or when a developer wants to work on a version of the site in their own environment. Read more ⇒
A PHP wrapper for the unix at command
A project I am working on at the moment requires time delayed job queues and having found nothing yet that can manage it properly so I decided to wrap up `at` into a PHP class. This gives you simple methods to add, list and remove jobs from the `at` queue using object oriented code. The code is very simple and I have documented it reasonably well so along with the examples you should get on your way quickly. Read more ⇒
Moving to git and setting up InDefero as a web frontend
Most of our development is done on Vista desktops (although I also run Ubuntu of course) and we wanted a web interface for easy browsing of code so I needed to use a pervasive and well supported VCS. After much hunting around and looking at Bazaar, Mercurial and git I decided to go with the latter due to its support in the community. There are still some reservations I have against git, which work well for Linux kernal development but not our day to day web development – the major one being that subversion would allow you to commit and update on a file by file basis where as git versions the entire repository at once as far as I am aware. Read more ⇒
I use most of these commands every day to simplify my terminal interactions with an Ubuntu development box. This is more of a personal reference but thought I would share incase you find it useful. Task Command Get all users on the system for user in `getent passwd | cut -d: -f1`; do id $user; done Delete all .svn or any file name by replacing .svn in the command with your filename Read more ⇒
Memcached and APC: Two Simple Techniques to Speed up your PHP Webpages
Memcached and APC are two tools that you can install on your server and gain almost instant gratification! APC basically caches executions that you send to a PHP process so that the next time you ask the parser to run your script it only has to look for some pre-chewed opcode in memory rather than parsing your PHP from the disk. APC also has another feature up its sleeve, memory object caching, which allows you to store objects such as results from a database table in memory. Read more ⇒
Installing APC and Memcached for PHP Sessions on Ubuntu and Debi…
Installing APC on Debian or Ubuntu is as simple as: **user@server:/directory/$** sudo apt-get install php-apc Now let us reboot the Apache process to enable our new cache: **user@server:/directory/$** sudo /etc/init.d/apache2 restart APC should now be ready to run on your server. Try running the following command to verify it is setup; you should get something in response like mine: **user@server:/directory/$** php -r ‘phpinfo();’ | grep ‘apc’ apc MMAP File Mask => /tmp/apc. Read more ⇒
CrunchBang Linux on the Eee Pc
So far I have tried out Ubuntu, eeeBuntu, EasyPeasy Linux and CrunchBang Linux (all of which are Debian based) on the Asus Eee PC. Ubuntu was a bit of an annoyance to get setup and it was troublesome trying to get all the buttons or the sound and microphone to work so I then tried EasyPeasy. It was easy to install (it already contains the Array.org kernal) and I liked the NBR interface with its easy to use tabbed system not to mention that after using Ubuntu it was nice to be able to see most of the system dialogues on screen (Ubuntu’s dialogues were so long they fell off screen! Read more ⇒
A Good Windows Development Environment and Ubuntu Virtualbox
Often Linux just does it better! Often I find myself developing a Windows machine without access to a Linux development server, but I still need to access to some of the Linux binaries and features such as cron jobs, the at command and binaries such as imagemagick, pdftotext, etc. Some things can be emulated with ported binaries or through Cygwin, but I feel a lot more comfortable developing on a platform that is representative of the live server the web site will run on. Read more ⇒
Enabling sites and modules in Apache on Ubuntu or Debian
I really like the way the Apache modules and virtualhosts are seperated out on Debian into folders containing those, which are available and those which are enabled. There is one small problem with this – it is more work than before! Luckily there are some helper scripts. The Apache configuration files are layed out in the following way: mods-available – the actual text files containing the modules configuration sites-available – the vhosts text file for the site Read more ⇒