Archive for December, 2009

Changing font size in Xterm

December 23, 2009

To change default settings for Xterm, a file called .Xdefaults needs to be in the home directory for the logged in user (root for admin) . Generally the default font size in xterm is always too small to be used, specially in high resolution screens. This can be changed in .Xdefaults.
A sample .Xdefaults is given [...]

Posted in FreeBSD Unix No Comments »

Installing PHP 5 on FreeBSD

December 23, 2009

A tutorial on installing PHP from the FreeBSD ports for Apache and MySQL.
What you need to add to the httpd.conf file and which of the PHP5 ports to choose.
Choosing which port to use
In the past there were several ports for PHP such as /www/mod-php5, /lang/php5-cli, and /lang/php5. Since the release of PHP 5.1.14 there is [...]

Posted in Misc No Comments »

Getting Apache installed

December 23, 2009

Installing Apache2.2
Make sure you update ports and then run the following commands:
# cd /usr/ports/www/apache22
# make install clean
That will install apache2.2
Configuring apache2
Lets edit the httpd.conf file:
# vi /usr/local/etc/apache22/httpd.conf
Scroll down and change the following settings. The optional settings I will put OPTIONAL before the setting:
OPTIONAL: Listen 80 - You can change this default option if you have [...]

Posted in Misc No Comments »