The following provides a brief outline of the procedure for getting FastCGI (with SuExec and PHP) working on an EC2 instance running Amazon’s Linux distribution (AMI) under Apache 2.2… Compile the Module: (dependencies include the httpd-devel package) sudo -i yum install httpd-devel cd /usr/local/src wget http://www.fastcgi.com/dist/mod_fastcgi-current.tar.gz tar -xzvf mod_fastcgi-2.4.6.tar.gz cd mod_fastcgi-2.4.6 cp Makefile.AP2 Makefile make… Continue reading FastCGI on AWS
Category: Computers
Things dealing with the wonderful world of IT – software, hardware, cloud computing, or anything else that might fit.
WinAmp UAC
I am quite fond of WinAmp, but ever since I started using Windows 7, WinAmp would bring up a User Account Control dialog each time it was started. The cause of this was the ‘Restore file associations at WinAmp start-up’ setting, which requires registry access. Disabling this setting stops displaying the UAC dialog. Steps: Open… Continue reading WinAmp UAC
Website Optimizations, Part 1
I have recently been working on a few optimizations for this site. While there are many more to go, I thought I would note a few while they were still fresh. While I prefer Chrome as my daily browser, because of a few addon’s, Firefox is my testing browser of choice. A few must have… Continue reading Website Optimizations, Part 1
Invalid MS DOS Function
I came across an interesting oddity today. When I went to play a video file, after copying it between two partitions on the same hard drive, the first part played fine, but it reached a particular point where it almost completely froze the machine. At this point, the hard drive light was consistently on (not… Continue reading Invalid MS DOS Function
Bundle Error on AWS
On servers running certain forms of chroot, a file system loop is created (in /var/named/chroot), causing errors when attempting to bundle the volume. This occurs in particular when running BIND (named). To successfully bundle the volume, simply stop named: sudo service named stop ec2-bundle-vol {options}
Setting the timezone on PHP
Versions of PHP after 5.10 include the date.timezone directive in php.ini. Many applications which reference time need this directive to be set. A list of accepted values can be found at: http://www.php.net/manual/en/timezones.php The timezone is set as a quoted string, with no delimiter at the end, for example: date.timezone = “Continent/City” The location of the… Continue reading Setting the timezone on PHP
A Procedural Methodology for Diagnosing (Home) Internet Issues
I recently had some internet problems, most pages wouldn’t load, my connections to servers (e.g. FTP, SSH) would quickly drop, but, yet, I was able to download a file at a reasonable rate. There are different approaches to narrowing down the problem. For some problems, the symptoms will direct one’s focus to likely causes, but… Continue reading A Procedural Methodology for Diagnosing (Home) Internet Issues
Considerations When Shopping for Laptops
I have never been a big proponent of laptops – historically, their performance has been dwarfed by that of lower priced desktops, and the advantage of portability was often offset by poor performance and short battery life. Recent processor generations, and advances in mobile computing have, however, made laptops a viable competitor for today’s applications.… Continue reading Considerations When Shopping for Laptops
The Shortcut to Resolving an IRQ Conflict
During my hard drive adventures earlier in the day, I removed a PCI IDE-SATA card from an older computer, and replaced it with the PCI sound card that was previously in that slot. Computer started, and all was good – however, the audio was routed through the integrated sound instead of through the discrete sound… Continue reading The Shortcut to Resolving an IRQ Conflict
Using a SATA hard drive through IDE – Part 2
Continued from: Using a SATA hard drive through IDE – Part 1 Finally got a functioning IDE-SATA card, and it was exceedingly easy to use. Took perhaps a minute to install – plug into IDE slot on motherboard, plug SATA cable into SATA plug on card, and things work. No drivers needed, and it is… Continue reading Using a SATA hard drive through IDE – Part 2
Time on AWS Linux AMI
The time on the Amazon Linux AMI is set, by default to UTC. To change this, symlink one of the timezone files from /usr/share/zoneinfo/ to /etc/localtime. The change takes effect immediately (and will also affect most logs, etc). For example: ln -sf /usr/share/zoneinfo/EST5EDT /etc/localtime To make the change persist through updates, it is necessary to… Continue reading Time on AWS Linux AMI
Using a SATA hard drive through IDE – Part 1
One of the older computers I have around is from before the SATA era – it only supports IDE. Unfortunately, most new hard-drives are SATA, especially those of reasonable sizes (250GB, 500GB, etc). This machine previously had only about 60GB, which was insufficient for its purposes. I find external hard-drives to be impractical for day-to-day… Continue reading Using a SATA hard drive through IDE – Part 1
Virtualmin on AWS Linux AMI
I have been playing with the AWS Linux AMI for the past few days, and have been setting up a new server based on it. I decided to go with Webmin/Virtualmin on this server, but ran into a couple of problems along the way. The one I wish to mention at the moment, is that… Continue reading Virtualmin on AWS Linux AMI
PuTTY SSH
Having used PuTTY a lot over the past few years, I have often found it to have a few default settings that are rather annoying: Firstly, the colours – I never seem to be able to make out dark blue on black Change ‘ANSI Blue’ and ‘ANSI Bold Blue’ under Window > Colours Secondly, the… Continue reading PuTTY SSH