Archive for the ‘hosting’ Category

Character problems after WordPress upgrade on Bluehost

Saturday, November 17th, 2007

seal_on_rockI recently upgraded the WordPress install on BlueHost at Kargs.net. The install and upgrade were done using the Fanstastico user interface. After the install, I found that some of the characters in the older postings (mostly the quote character) were shown as unusual characters. After a number of searches, I found the solution.

1. Modify the wp-config.php by commenting out

//define('DB_CHARSET', 'utf8');
//define('DB_COLLATE', '');

2. Modify the wp-config-sample.php by commenting out

//define('DB_CHARSET', 'utf8');
//define('DB_COLLATE', '');

The second file, wp-config-sample.php, is used to prevent breakage in future upgrades.

Create favicon.ico with Ubuntu Linux

Saturday, January 6th, 2007

I was interested in creating a favicon.ico file in Ubuntu Linux for a new website that I helped create. I recalled having used KIconEdit to do it before. I installed KIconEdit and used that to create the icon. However, KIconEdit did not have any options to save as favicon.ico. I turned to the internet for help.

Most of the information gleened by Google search said to save the file as a 16×16 pixel PNG file, and use one of the icon command line tools to convert it to the favicon.ico format. So I looked in apt-get cache to see if any icon tools were available.

$ apt-cache search favicon
icoutils - Create and extract MS Windows icons and cursors

Yeah! That looked promising. So I install icoutils using apt-get.

$ sudo apt-get install icoutils

Wow! That was easy! Now how do I use this tool? Well, man pages usually help.

$ man icoutils
No manual entry for icoutils

Bummer! Well, maybe the package will give me some clues.

$ apt-cache show icoutils
Package: icoutils
Status: install ok installed
Priority: optional
Section: graphics
Installed-Size: 172
Maintainer: Colin Watson
Architecture: i386
Version: 0.25.0-1
Depends: libc6 (>= 2.3.4-1), libpng12-0 (>= 1.2.8rel), zlib1g (>= 1:1.2.1), perl, libwww-perl
Suggests: libterm-readline-gnu-perl | libterm-readline-perl-perl
Description: Create and extract MS Windows icons and cursors
Icoutils is a set of programs that deal with MS Windows icons and cursors. Resources such as icons and cursors can be extracted from MS Windows executable and library files with "wrestool". Conversion of these files to and from PNG images is done with "icotool". "extresso" automates these tasks with the help of special resource scripts.
.
This package can be used to create "favicon.ico" files for web sites.

Aha! I could potentially use icotool to convert the PNG icon to a favicon. icotool had both a man page and a --help option. I used icotool on the command line to convert my PNG file.

$ icotool -o favicon.ico -c favicon.png

maryfeet.jpgI also used The GIMP image tool to convert a JPEG scan of my daughter Mary Elizabeth’s footprints to a PNG. I opened the image, scaled it to 16×16 pixels, and saved it as favicon.png. I used icotool to convert the PNG file to a favicon.ico file. I uploaded the favicon.ico file to her memorial website anencephaly.net.

Website backup using Linux Command Line

Friday, December 15th, 2006

easy buttonI needed to backup a website that I run onto a Linux server in my garage, and wondered what the easy button tool for Linux on the command line would be. Just try searching Google for “Website backup using Linux Command Line” and you don’t get what I was looking for. What I should have searched for was “Website Mirroring With wget” but I didn’t know what tool I was looking for, remember? As you may have guessed, I finally found a page full of ads and some outdated command line options for Windows describing how to website mirror with wget.

wget is a great tool for website backup, offline browsing, or mirroring as it is known in the server realm. A simple one line command gets you all the files and images that are accessable from the website index and puts them in a directory it creates named after the domain name:

$ wget -mp http://anencephaly.net/

Yeah! Job accomplished. That was easy, and I didn’t even have to ask the reindeer.

Creating a website

Monday, March 27th, 2006

I created a website the other day for a local parental support group called GeorgiaFaces.info. First, I registered the domain with GoDaddy. Then, I pointed the domains nameservers at the bluehost.com nameservers instead of the parked pages. Then, after waiting a couple of hours for propagation to occur, I installed PHPWebsite at that domain using the Fantastico installer.

PHPWebsite has great documentation. It doesn’t have WYSIWYG article editing. However, I was able to setup and configure the site, install themes, add events to the calendar, add menu items, create a links list, and get the site looking great in a very short time (a couple of evenings and an afternoon). All thanks to the great documentation. It makes me want to go and write great documentation for the projects I have worked on.

Jigsaw Puzzle

I needed to add some character to the site, and some clipart or photos would do the trick. I prefer to use open source content, so I went to OpenClipart and Burning Well. I found some nice Springtime clipart and adorned the site. I also found some clipart that wasn’t quite what I wanted, but after a few hours with Inkscape, I transformed the jigsaw puzzle piece into a mini jigsaw puzzle.

Kargs.net – new hosting

Thursday, February 2nd, 2006

I switched hosting for kargs.net to Bluehost.com – so I get to play with a bunch of Fantastico automatic installation applications for the site – including WordPress.
tree-blue