Skip to Content

Linux

PHP GD

Issues were found with GD in my PHP installation - basically it was installed, but not linked properly
This is the error that I kept receiving - mainly noticed after doing a system update.
error while loading shared libraries: libgd.so.2: cannot open shared object file: No such file or directory

Doing the following solved the issue for me.

cd /usr/local/lib
sudo cp libgd.so.2.0.0 libgd.so.2.0.0.broken
sudo ln -f /usr/lib/libgd.so.2.0.0 libgd.so.2.0.0
sudo apache2ctl restart

Also found that I needed to create another link.
sudo ln /usr/lib/libgd.so.2.0.0 /usr/lib/libgd.so

Link to UbuntuForums for the help
http://ubuntuforums.org/archive/index.php/t-252842.html

HP LaserJet 1020 USB Printer

Back a few years ago I got this great deal on a laser printer, an entry level one, but better than an old failing ink jet.

Getting this setup on a server is really simple. Just have to run this from the terminal.
sudo hp-setup -a -i
Follow the prompts, essentially pressing Enter a few times
If you're running a GUI then running sudo hp-setup starts the setup wizard and prompts you for additional information.

Happy Printing

Apache2 Bandwidth Limit

Download and install the Bandwidth Module from the links below or the attached file.

Unpack
tar -zxf mod_bw-0.8_0.tgz
cd mod_bw
sudo apxs2 -i -a -c mod_bw.c

Then add this to your apache2.conf
LoadModule bw_module mod_bw.so
and this to your VirtualHost / enabled site

BandwidthModule On
ForceBandWidthModule On
LargeFileLimit .mp3 1 15000

I did mine to limit the speed of MP3 downloads to reduce the total server connection speed, but you can limit everything if you're needing to.
Bandwidth all 10240
MinBandwidth all -1

Note - you must have apxs2 installed to make this work, installed with this:
sudo apt-get install apache2-threaded-dev

Found at either location, or attached here
http://www.ivn.cl/apache/
http://bwmod.sourceforge.net/

What Makes SSarge.net Tick?

So I've recently rebuilt my server after loosing a 500GB backup drive; which after trying to recover the data somehow destroyed the ability to mount or even format any other drives... Yes I know having a single backup drive isn't the smartest.

Now I've got things setup in a nice mirror, with another backup drive ready and another that I will be using as an image drive.
I'm also setting up another server to be used as data/media storage. Nothing special, and not much space, but secure. I've got 4 80GB drives installed with a RAID 5 setup.

Main server is running a standard LAMP (Linux,Apache,MySQL,PHP) setup, along with mail and print. Configured as the internet gateway/firewall, along with everything else, its back up running stable... Now there's just some reconfiguring to do to make it more secure.