Monthly Archive: March 2011


Virtual Host

 #  ServerAdmin   DocumentRoot “/usr/local/apache2/htdocs/ram”   ServerName   ServerAlias   ScriptAlias /cgi-bin/ “/usr/local/apache2/cgi-bin/”   DirectoryIndex “index.php”   Options +ExecCGI    #Redirect /    ErrorLog “logs/” #   CustomLog “logs/” commoninside ifmodule type the below line   ScriptAlias /cgi-bin/ “/usr/local/apache2/cgi-bin/”out side ifmodule...


Configure caching nameserver

Configure & Install caching nameserver in DNS —— yum install bind* yum install caching nameserver DNSrpm -qa | grep bind                      to check if bind is installed,it ll b netstat -plan | grep 53                  to check...


Configure ssh in Linux

Configure ssh: 1.goto: vim /etc/ssh/sshd_config port 22315 PermitRootLogin  on 2.goto root: $useradd ragul //username $passwd  ragul New password: re-type password: 3.Type :$vim sudoers copy line “root all=(all)” and paste-edit to “ragul all=(all)”.This creats a...


PhpBB forms

phpBB(FORUMS): configure php with mysql i.e(./configure –with-mysql) wget bunzip2 phpBB-3.0.8.tar.bz2 tar -xvf phpBB-3.0.8.tar cp -R  phpBB3 /usr/local/apache/htdocs/ change the document root in the virtual hosts where the phpbb3 resides restart apache (type...


post nuke…..

POSTNUKE: dont configure and make,make install.( yum install mysql* download and un-tar postnuke and copy it to /usr/local/apache/htdocs output: pls follow this along with php with cgi script….


php with cgi

PHP + CGI :1)yum install perl* (/usr/bin/perl) 2)configuration file:cd /usr/local/apache/htdocs/mkdir domain123vim index.php #    ServerAdmin webmaster@diummy-host.example.comAddHandler php5-script phpAddType application/x-httpd-php-source phpsLoadModule php5_module        modules/    DocumentRoot /usr/local/apache/htdocs/domain123    DirectoryIndex index.php    ServerName domain123.comphp_value memory_limit 128Mphp_admin_flag safe_mode On cd /usr/local/apache/htdocs/vim index.cgi...


apache commands

  Basic commands to restarting Apache1. Several Linux and SysV variants: /etc/rc.d/init.d/httpd restart 2. Using apachectl scripts: /path/to/apachectl stop /path/to/apachectl start 3. httpdctl and httpsdctl (Using OpenSSL), similar to apachectl: /path/to/httpsdctl stop /path/to/httpsdctl start...



GALLERY2: wget 1.yum install mysql* 2.service mysqld start mysql>  create database gallery2; mysql>  show databases; mysql> use databases; mysql> CREATE USER ‘exampleoo’@’localhost’ IDENTIFIED BY ‘exampleoo’; mysql> GRANT ALL PRIVILEGES ON .* TO ‘exampleoo’@’localhost’ ...


Addon & Subdomain DNS Entries

1.set up a domain which should resolve in dns.The mail of should point to gmail mail server. $TTL    86400 $ORIGIN @               IN SOA ( 2011022300              ; serial (d. adams)...