Monthly Archive: March 2011

0

Virtual Host

 #  ServerAdmin webmaster@dummy-host2.example.com   DocumentRoot “/usr/local/apache2/htdocs/ram”   ServerName addon.com   ServerAlias ram.exam.com   ScriptAlias /cgi-bin/ “/usr/local/apache2/cgi-bin/”   DirectoryIndex “index.php”   Options +ExecCGI    #Redirect / http://addon.com#    ErrorLog “logs/dummy-host2.example.com-error_log” #   CustomLog “logs/dummy-host2.example.com-access_log” commoninside ifmodule type the below line   ScriptAlias /cgi-bin/ “/usr/local/apache2/cgi-bin/”out side ifmodule...

0

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...

0

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...

0

PhpBB forms

phpBB(FORUMS): configure php with mysql i.e(./configure –with-mysql) wget http://www.phpbb.com/files/release/phpBB-3.0.8.tar.bz2 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 http://192.168.2.123/phpBB3 (type...

0

post nuke…..

POSTNUKE: dont configure and make,make install.(http://www.sfr-fresh.com/unix/www/PostNuke-0.764.tar.gz/) yum install mysql* download and un-tar postnuke and copy it to /usr/local/apache/htdocs output:     http://192.168.2.158/PostNuke-0.764 pls follow this along with php with cgi script….

0

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/libphp5.so    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...

0

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...

0

gallery

GALLERY2: wget http://nchc.dl.sourceforge.net/project/gallery/gallery2/2.3/gallery-2.3-full.tar.gz 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’ ...

1

Addon & Subdomain DNS Entries

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