Archive for February, 2008

Wednesday, February 20th, 2008

AcceptPathInfo Directive

Description:
Resources accept trailing pathname information

Syntax:
AcceptPathInfo On|Off|Default

Default:
AcceptPathInfo Default

Context:
server config, virtual host, directory, .htaccess

Override:
FileInfo

Status:
Core

Module:
core

Compatibility:
Available in Apache 2.0.30 and later

This directive controls whether requests that contain trailing pathname information that follows an actual filename (or non-existent file in an existing directory) will be accepted or rejected. The trailing pathname information can be made available to scripts in […]

Friday, February 15th, 2008

testing your webserver with siege
First, you’ll need to untar the package:
$ tar xvzf siege-latest.tar.gz
Then you’ll need to configure it; the default configuration is a good start:
$ ./configure
Configuration help is available with the -help suffix. The only one that I’ve personally added on is SSL support through the -with-ssl=/usr/local/ssl suffix.
Next, it’s time to compile and install:
$ […]

Friday, February 15th, 2008

Start/Stop and Restart Service
Apache Web Server
#apachectl start/stop/restart
#/etc/rc.d/init.d/httpd start/stop/restart
#service httpd start/stop/restart
Squid Proxy Server
#/etc/rc.d/init.d/squid start/stop/restart
#service squid start/stop/restart
DHCP
#/etc/rc.d/init.d/dhcpd start/stop/restart
#service hdcpd start/stop/restart
DNS
#/etc/rc.d/init.d/named start/stop/restart
#service named start/stop/restart
Sendmail
#/etc/rc.d/init.d/sendmail start/stop/restart
#service sendmail start/stop/restart
NFS
#/etc/rc.d/init.d/nfs start/stop/restart
#service nfs start/stop/restart
Samba
#/etc/rc.d/init.d/smb start/stop/restart
#service smb start/stop/restart
Network
#/etc/rc.d/init.d/network start/stop/restart
#service network start/stop/restart
FTP,imap4,pop3
#/etc/init.d/xinetd start/stop/restart
/etc/xinetd.d/ipop3,imap,ftp
disable =yes
vsftpd
#/etc/rc.d/init.d/vsftpd start/stop/restart
#service vsftpd start/stop/restart

Friday, February 15th, 2008

MySQL is a relational database management system (RDBMS) based on SQL (Structured Query Language). First released in January, 1998, MySQL is now one component of parent company MySQL ABโ€™s product line of database servers and development tools. Yes, it really is this easy.run the following command to change the mysql root password
sudo /etc/init.d/mysql reset-password
New MySQL […]

Friday, February 15th, 2008

Sometimes you want to restart your Apache server after changing some configuration in your virutual hosts,sites etc, but you have few hundred clients currently downloading files from your server and you dont want to disconnect them.You need to use the following command
sudo /etc/init.d/apache2 graceful
This will gracefully restart your Apache with new configuration without affecting your […]

Friday, February 15th, 2008

Some time you might find some applications are having only .rpm files but you want a .deb package for your debian,Ubuntu and other debian derived ditributions.If you canโ€™t find .deb debian package in any of the debian,ubuntu repositories or elsewhere, you can use the alien package converter to install the .rpm file.Alien is a program […]

Friday, February 15th, 2008

If you forgot you password for your ubuntu system you can recover using the following stepsTurn your computer on.
Press ESC at the grub prompt.
Press e for edit.
Highlight the line that begins kernel , press e
Go to the very end of the line, add rw init=/bin/bash
press enter, then press b to boot your system.
Your system will […]

Friday, February 15th, 2008

Many data centers disable direct root login to servers for security reason. You need to login first as a normal user than su to login as root.
But i like direct login as root. So i disabled this extra security on my servers. If some one can get my root password, they can also get my […]

Friday, February 15th, 2008

Compressed files use less disk space and download faster than large, uncompressed files. You can compress Linux files with the open-source compression tool Gzip or with Zip, which is recognized by most operating systems.
By convention, compressed files are given the extension .gz. The command Gzip creates a compressed file ending with .gz; Gunzip extracts the […]

Friday, February 15th, 2008

Chang Directory
#cd /home
Download the Auto-installer utility that suits your operating system from http://www.swsoft.com/en/download/plesk8/ and save it on your serverโ€Ÿs hard drive.
#wget plesk_auto_installer_file_name
Set the execution permission for Auto-installer:
# chmod +x plesk_auto_installer_file_name
Run the Auto-installer:
# ./plesk_auto_installer_file_name
if Autoinstaller cannot find some packages during installation on Ubuntu and fails with the error like:
Reading […]