Monday, May 4, 2009

Installing PHP on Ubuntu

To install PHP on Ubuntu 8.10, issue the following command:

#apt-get install php5
#apt-get install libapache2-mod-php5

Friday, May 1, 2009

Disallow Root Login on SSHD

To disallow root login access on ssh, open the file "/etc/ssh/sshd_config" and edit or add the line:

PermitRootLogin no

Then restart your sshd server:

#/etc/rc.d/init.d/sshd restart

Installing Dovecot on CentOS

To install the Dovecot on your CentOS 5.2 server, issue the command:

#yum install dovecot

If you are installing the RPM package that comes with the CD, the command to install dovecot is:

#rpm -Uvh dovecot-1.0.7-2.el5.i386.rpm

What is port 111 on my CentOS box?

Port 111 on my CentOS 5.2 box is the "portmap" service. You can turn this off by issuing the following command:

#/etc/rc.d/init.d/portmap stop

By default, this is turned on my machine. So upon reboot of your machine, expect that is again turned on. If you want to set the default execution to off, issue the command:

#chkconfig --levels 2345 portmap off