Friday, 13 March 2015

How to install Bugzilla

Step 1 - Create a Linux Machine

Step 2 - $ sudo su -i ( To Give Root Permission )


Step 3 - # apt-get update ( To update you machine up to date )


Step 4 - # apt-get install git nano

apt-get install apache2 mysql-server libappconfig-perl libdate-calc-perl libtemplate-perl libmime-perl build-essential libdatetime-timezone-perl libdatetime-perl libemail-sender-perl libemail-mime-perl libemail-mime-modifier-perl libdbi-perl libdbd-mysql-perl libcgi-pm-perl libmath-random-isaac-perl libmath-random-isaac-xs-perl apache2-mpm-prefork libapache2-mod-perl2 libapache2-mod-perl2-dev libchart-perl libxml-perl libxml-twig-perl perlmagick libgd-graph-perl libtemplate-plugin-gd-perl libsoap-lite-perl libhtml-scrubber-perl libjson-rpc-perl libdaemon-generic-perl libtheschwartz-perl libtest-taint-perl libauthen-radius-perl libfile-slurp-perl libencode-detect-perl libmodule-build-perl libnet-ldap-perl libauthen-sasl-perl libtemplate-perl-doc libfile-mimeinfo-perl libhtml-formattext-withlinks-perl libgd-dev lynx-cur python-sphinx

Step 5 - Download Bugzilla 
http://ftp.mozilla.org/pub/mozilla.org/webtools/
( From URL choose the Version and Copy Link)

# wget http://ftp.mozilla.org/pub/mozilla.org/webtools/bugzilla-4.4.2.tar.gz

Step 6 - # tar xvzf bugzilla-4.4.2.tar.gz ( under the /var/www/html/)

Step 7 - # ./checksetup.pl --check-modules

Step 8 - #  /usr/bin/perl install-module.pl --all

Step 9 - # ./checksetup.pl --check-modules

Step 10 - # vim /etc/mysql/my.cf
  • Alter on Line 52: max_allowed_packet=100M
  • Add as new line 31, in the [mysqld] section: ft_min_word_len=2
Step 11 - # mysql -u root -p -e "GRANT ALL PRIVILEGES ON bugs.* TO bugs@localhost IDENTIFIED BY '$db_pass'"  

Replace $db_pass with a strong password you have generated

Step 12 - # Service mysql restart

Step 13 - # vim /etc/apache2/sites-available/bugzilla.conf

ServerName localhost

<Directory /var/www/html>
  AddHandler cgi-script .cgi
  Options +ExecCGI
  DirectoryIndex index.cgi index.html
  AllowOverride Limit FileInfo Indexes Options
</Directory>

a2ensite bugzilla
a2enmod cgi headers expires
service apache2 restart

Step 14 - #cd /var/www/html

./checksetup.pl

Step 15 - # vim localconfig
  • Line 29: set $webservergroup to www-data
  • Line 67: set $db_pass to the password for the bugs user you created in MySQL a few steps ago
Step 16 - #./checksetup.pl

Step 17 - #./testserver.pl http://localhost/

Step 18 - # http://localhost/



Thursday, 12 March 2015

How to root samsung

Step to root Samsung mobile

Step 1 - Turn your phone into RECOVERY MODE.

VOLUME UP + HOME + POWER after few seconds your phone go in recovery mode.



Step 2 - Download the File from URL and copy in SD card

Link - https://drive.google.com/folderview?id=0B3qUUSbGTcTWfnBCUVJiNFlQZjBiQ3U4RzEtVXExR1cwd1ltUk9IWU4xa3pOZTk5TUkycXc&usp=sharing

Step 3 - Go SD Card and install both file one by one.

Step 4 - Reboot

Thursday, 5 February 2015

How to Create Repository and Username Password

New Resposrity - Nissan
Username for Nissan - 5053

Step 1 » Create a new repository in the svn by issuing the below command
[root@harish ~]# svnadmin create /svn/nissan
Step 2 » Now issue the below commands one by one for necessary permissions.
[root@harish ~]# chown -R apache.apache /svn/nissan/
[root@harish ~]# chcon -h system_u:object_r:httpd_sys_content_t /svn/nissan/
[root@harish ~]# chcon -R -h apache:object_r:httpd_sys_content_t /svn/nissan/
Step 3 » Now create a password file “nissan.users” with username “5053” by typing below command
[root@harish ~]# htpasswd -cm /svn/nissan.users 5053

Install svn server on centos 6

Install svn server on centos 6

Update yum repositories and packages by typing the below command
[root@krizna ~]# yum update
Before installing SVN packages, you must install and configure apache ( Webserver ) .

Install and configure apache

Step 1 » Type the below command to install apache along with dependencies.
[root@krizna ~]# yum install httpd
Step 2 » Open the file /etc/httpd/conf/httpd.conf .
Find “#ServerName www.example.com:80″ (line no : 276 ) .
#
#ServerName www.example.com:80
and add this line below . “ServerName youripaddress:80″
#
#ServerName www.example.com:80
ServerName 192.168.1.2:80
Step 3 » Issue the below command to start apache service .
[root@krizna ~]# service httpd start
and type this below command to start apache service automatically while booting.
[root@krizna ~]# chkconfig --levels 235 httpd on
Now open your server ip address in the browser . you can see the apache test page.
Installing svn server centos 6
If you not able to see the apache test page, Disable the firewall ( iptables ) and selinux service on your server .
Disable firewall ( Iptables ) »
[root@krizna ~]# service iptables stop
[root@krizna ~]# chkconfig iptables off
Disable Selinux » open the file /etc/selinux/config and find the line
SELINUX=enforcing
and replace with
SELINUX=disabled
now reboot the server and try again.

Install and configure svn server

Step 4 » Now start installing svn packages, Just type the below command .
[root@krizna ~]# yum install subversion mod_dav_svn
Step 5 » Now create new directory for svn repository.
[root@krizna ~]# mkdir /svn
Step 6 » Create a new repository in the svn by issuing the below command
[root@krizna ~]# svnadmin create /svn/newrep
Step 7 » Now issue the below commands one by one for necessary permissions.
[root@krizna ~]# chown -R apache.apache /svn/newrep/
[root@krizna ~]# chcon -h system_u:object_r:httpd_sys_content_t /svn/newrep/
[root@krizna ~]# chcon -R -h apache:object_r:httpd_sys_content_t /svn/newrep/
Step 8 » Now create a password file “newrep.users” with username “krizna” by typing below command
[root@krizna ~]# htpasswd -cm /svn/newrep.users krizna
Step 9 » Now open the SVN apache config file ( /etc/httpd/conf.d/subversion.conf ) and add the below lines at the end of the file .
Step 10 » Restart apache service
[root@krizna ~]# service httpd restart
Step 11 » Now open your svn path http://yourserverip/repos/newrep in a browser( Ex: http://192.168.1.2/repos/newrep ) . you can see newrep revision page after typing username and password created (step 8).
install svn server centos 6
Step 12 » Create basic repository structure with the below commands
[root@krizna ~]# mkdir -p /tmp/svn/{trunk,branches,tags}
[root@krizna ~]# svn import -m 'Initializing basic repository structure' /tmp/svn/ http://localhost/repos/newrep/
Step 13 »  Now you can see updated revision and structure details .
install svn server centos 6
Enjoy ..


Tuesday, 3 February 2015

How to create an Apache HTTP Virtual Host

  1. You must first Install and Configure Apache HTTP Server
  2. Create/Open the file /etc/httpd/conf.d/$domain.confwith the following text replacing variables where necessary
    $domain HTTP Virtual Host
    <VirtualHost *:80>
      # General
      ServerAdmin $webmaster_email
      DocumentRoot /var/www/html/$domain
      ServerName www.$domain
      ServerAlias $domain

      # Logging
      ErrorLog logs/$domain-error_log
      CustomLog logs/$domain-access_log common
    </VirtualHost>
  3. Restart the Apache HTTP Server daemon
    service httpd restart

How to configure Apache Server on CentOS, RedHat, Linux

  1. Set the apache service to start on boot
    chkconfig --levels 235 httpd on
  2. Enable name-based virtual hosting on port 80
    1. Open the httpd configuration file located at/etc/httpd/conf/httpd.conf
    2. Un-comment the line containing the textNameVirtualHost *:80
    3. Save the file
    4. Restart the Apache HTTP Server daemon
      service httpd restart
      Note: Ignore the "NameVirtualHost *:80 has no VirtualHosts" warning for now.

How to install Apache Server on CentOS, RedHat, Ubuntu Linux

Install Apache HTTP Server


Centos
yum install httpd



Ubuntu
apt-get install apache2