Sunday, December 8, 2013

service httpd status -gives error

[/usr/local/apache/htdocs]# service httpd status
Not Acceptable

An appropriate representation of the requested resource
/whm-server-status could not be found on this server.

Additionally, a 404 Not Found error was encountered while trying to use
an ErrorDocument to handle the request.


solution
=======

check /usr/local/apache/logs/error_log

it will an error related to mod securtiy,

  ModSecurity: Access denied with code 406 (phase 2). Match of "rx ^apache.*perl" against "REQUEST_HEADERS:User-Agent" required. [file "/usr/local/apache/conf/modsec2.user.conf"] [line "58"] [id "1234123429"] [msg "Request Indicates an automated program explored the site"] [severity "NOTICE"] [hostname "localhost"] [uri "/whm-server-status"] [unique_id "UqQ875BMiIUAADoOG6IAAAAC"]


white list the rule globally in modsec2.user.conf 

If you have cmc installed with cpanel then you can do it graphically.Otherwise you will have to do it in terminal and restart apache service.

Thursday, November 21, 2013

proftpd installation and configtest

# rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rp
# yum install proftpd

then set hostname in /etc/proftpd.conf
# vi /etc/proftpd.conf

ServerName                      "hostname"




Then check  /etc/hosts ,in which hostname can be entered as a FQDN

# vi /etc/hosts

ip  hostname.domain.com hostname

Then start proftpd
#service proftpd start

if "failed " error message is receiving then run the command
#proftpd --configtest

then it will show if there is any errors in proftpd configuration and we can fix that.
Then again start service proftpd.







 

Wednesday, November 20, 2013

How to add CSF Alert mail id in cpanel serevr

-Log in to the cpanel server using whm log in
-Go to Config server firewall wisard
-Go to firewall configuration
-Search for lfd_alert_to option
-Add email id in the column provided
-Now alert mails will to send to the mentioned mail id for every log ins.

Wednesday, April 10, 2013

linux interview questions and answers link

<iframe src="http://www.slideshare.net/slideshow/embed_code/16521356" width="479" height="511" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" style="border:1px solid #CCC;border-width:1px 1px 0;margin-bottom:5px" allowfullscreen webkitallowfullscreen mozallowfullscreen> </iframe> <div style="margin-bottom:5px"> <strong> <a href="http://www.slideshare.net/rppthamizh/linux-interview-questions-answers" title="Linux interview questions and answers" target="_blank">Linux interview questions and answers</a> </strong> from <strong><a href="http://www.slideshare.net/rppthamizh" target="_blank">Thamizharasan P</a></strong> </div>

Thursday, March 14, 2013

php-pear install with modules

yum install php-pear

then refer

http://pear.php.net/manual/fr/installation.checking.php

pear install DB


[root@project html]# pear install DB
WARNING: "pear/DB" is deprecated in favor of "pear/MDB2"
WARNING: channel "pear.php.net" has updated its protocols, use "pear channel-update pear.php.net" to update
downloading DB-1.7.14.tgz ...
Starting to download DB-1.7.14.tgz (133,103 bytes)
.................done: 133,103 bytes
install ok: channel://pear.php.net/DB-1.7.14
[root@project html]# service httpd restart
Stopping httpd:                                            [  OK  ]
Starting httpd:                            


edit php.ini to edit pear's directory

then  short_open_tag = On


Thursday, March 7, 2013

root folder in lamp and svn then db dump

web root folder in lamp installation isnormally kept at /usr/local/apache/htdocs

to add files commited to svn to web root,
come to web root folder and type
 svn checkout http://url of svn/trunk/
user name and password

then will get the files
for creating db via ssh ,

upload files to web root
then type mysql
>show databases;
>CREATE DATABASE 'dbname';
>use  'db name';---- enter database name at the place of 'dbname'
>show tables;

db will create.




drop box

http://xavicuevas.tumblr.com/post/19687600157/install-dropbox-on-ubuntu-server-10-11

Wednesday, March 6, 2013

epel repo on centos5.x 6.x reference

http://www.rackspace.com/knowledge_center/article/installing-rhel-epel-repo-on-centos-5x-or-6x



or

http://www.tecmint.com/install-apache-mysql-php-on-redhat-centos-fedora/

Tuesday, March 5, 2013

how to generate open ssl certificate


  1. Open OpenSSL.
  2. Type the following command:
    req -out CSR.csr -new -newkey rsa:2048 -nodes -keyout privateKey.key
  3. Enter Distinguished Name information:
    • Country Code — The two-letter International Organization for Standardization (ISO) format country code for where your organization is legally registered.
    • State/Province — Name of state or province where your organization is located — do not abbreviate.
    • Locality — Name of the city in which your organization is registered/located — do not abbreviate.
    • Organization Name — The full legal name of your organization.
    • Organizational Unit — Optional.
    • Common Name — The full legal name of your organization.
    • Email Address — Your email address.
  4. Move CSR.csr and privateKey.key to your desktop.

reference for php,apache,mysql in rhel 6

http://www.tecmint.com/install-apache-mysql-php-on-redhat-centos-fedora/

to install xampp in linux

Download XAMPP

 

wget http://biznetnetworks.dl.sourceforge.net/project/xampp/XAMPP%20Linux/1.7.3a/xampp-linux-1.7.3a.tar.gz 
 
 

Extract XAMPP

 

tar xvfz xampp-linux-1.7.3a.tar.gz -C /opt 
 
 

Start XAMPP

 

/opt/lampp/lampp start 
 
 

To stop it, open a terminal and type this:

 

/opt/lampp/lampp stop 
 
 

 check

http://localhost
 To fix most of the security weaknesses simply call the following command:
 Open /etc/rc.local using command
 vi /etc/rc.local 
 Add the following line in at end of the file
 /opt/lampp/lampp start 
 
 
 
One more problem again xampp is only able to run in32 bit os for a 64 bit os need to install 32 bit libraries,
 
so go for below steps,
 
yum -y install glibc* libstd* ld-linux.so.2
 
tar zxvf xampp-linux-1.8.1.tar.gz
mv ./lampp /opt/
 change the owner ship to nobody: root
chown nobody:root /opt/lampp/ -R
XAMPP was designed to run on 32 bit operating systems. The start up script will prevent xampp from starting up if you are running on a 64 bit system which isn’t necessary since you installed 32 bit compatibility libraries in step 1. To get around this restriction, open /opt/lampp/lampp in an editor and comment out the following lines.  
# XAMPP is currently 32 bit only
#case `uname -m` in
# *_64)
#   if /opt/lampp/bin/php -v &gt; /dev/null 2&gt;&amp;1
#   then
#      :
#   else
#      $de &amp;&amp; echo "XAMPP gibt es zur Zeit nur als 32-Bit Applikation.
#      Bitte verwende eine 32-Bit Kompatibilitaetsbibliothek fuer Dein
#      System."
#
#      $de || echo "XAMPP is currently only availably as 32 bit
#      application. Please use a 32 bit compatibility library for
#      your system."
#
#   exit
#   fi
#   ;;
#esac
 
 
 
 
 
  1. Open /opt/lampp/etc/etc/extra/httpd-xampp.conf in an editor.
  2. Replace the “Deny from all” statement with “Require all grant” in the <LocationMatch> stanza.  You can also comment out the “Allow from…” line if you don’t want to accept connections from any external system. 
<LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|
                               server-status|server-info))">
    Order deny, allow
#   Deny from all
    Require all granted
#   Allow from ::1 127.0.0.0/8 \
#      fc00::/7 10.0.0.0/8 172.16.0.0/12 192.168.0.0/16
#      fe80::/10 169.254.0.0/16
    ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
</LocationMatch>
 
 Start up xampp
/opt/lampp/lampp start
Open http://localhost in a browser. You should a get a browser window with the XAMPP for Linux startup screen:
  1. At this point most of the setup work for XAMPP is done.  However, if you plan to use phpyMyAdmin you’ll have to do a little further configuration to get it to work properly.
  2. XAMPP does not create all the tables that phpmyadmin needs so you have to do this with an SQL script that is enclosed with the package. To do this click on the Import tab in the toobar at the top of the screen.
  3. Click on the Choose button in the File to import section.
 Choose the create_tables.sql script in /opt/lampp/lampp/phpmyadmin/examples directory.
  1. Click on the Go button in the Format of imported file to run the script which will add all the tables you need to the phpmyadmin database.
  2. Open /opt/lampp/lampp/phpmyadmin/config.inc.php in your editor of choice.
  3. Change $cfg['Servers'][$i]['auth_type'] from ‘config’ to ‘cookie which will create a login page for future phpmyadmin sessions.
    $cfg['Servers'][$i]['auth_type'] = 'cookie'
  4. Add the following lines in the config.inc.php file.
    $cfg['Servers'][$i]['table_uiprefs'] = 'pma_table_uiprefs';
    $cfg['Servers'][$i]['recent'] = 'pma_recent';
  5. To set a root password for phpmyadmin click on the Users tab in the XAMPP Control Panel toolbar.
  20.Click on the edit icon in the column to the right on the User Overview table for the root account on localhost.

Click on the Password radio button in the Change password section of the Edit Privileges: User ‘root’@'localhost’ page.



  1.  Enter the new password then re-type the password.
  2.  Click on the Go button to save the new password.
  3. Close your browser then restart Apache and MySQL in the XAMPP Control Panel.
    /opt/lampp/lampp restart
  4. Open phpMyAdmin in your browser.  This time you’ll be take to a phpMyAdmin login screen.
  5. Login as root using password you set in step 21.
If everything went well you’ll go to the phpMyAdmin main screen and see a green Exit icon under the phpMyAdmin frame on the left side of the screen.  You can now create other databases and tables with phpMyAdmin.

if any doubt refer:

http://vichargrave.com/how-to-install-xampp-on-linux-step-by-step/
 
 

 

 
 
 
 

Monday, March 4, 2013

installation of php5.4.12,mysql,httpd etc in rhel6,centos6

try this,

#su - #su -i
# 
#rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
 
#rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
#rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm  
#rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-5.rpm
 
# yum  --enablerepo=remi,remi-test install httpd php php-common
 
 
#yum --enablerepo=remi,remi-test install php-pecl-apc php-cli php-pear php-pdo 
php-mysql php-pgsql php-pecl-mongo 
php-sqlite php-pecl-memcache php-pecl-memcached 
php-gd php-mbstring php-mcrypt php-xml
 
 
 
 #service httpd start
 
#chkconfig --levels 235 httpd on
 
 
 
 
 
 
 
 
 

Thursday, February 14, 2013

qaManager installation in windows

qaManager is testing tool to monitor over web application and development


Installation and Configuration
qaManager installation is very simple!
1)Download qaManager
1.Extract qaManager (unzip or tar -xzvf <fileName>)
2)Install JDK 1.5 and set JAVA_HOME
3)Set CATALINA_HOME={qaManager Installed Directory}/portal
4)Start and access qaManager
1.Change directory to bin (cd bin)
2.Start qaManager. Run script start-qaProjectManager.sh (or .bat)
3.http://localhost:8080
4.user : pm@qamanager.org , password : qamanager qaManager

Monday, February 11, 2013

APK tool set up in ubuntu for android developers

download apktool.jar and linux installation file copy them to /usr/local/bin together with .apk file.

Run the command as follows

java -jar apktool.jar d FourInALine.apk

my steps



root@ubuntu:/home/android/Desktop# ls
apktool1.4.3.tar.bz2                     apktool.jar  FEB11            New
apktool-install-linux-r04-brut1          eclipse      FourInALine.apk  personl
apktool-install-linux-r04-brut1.tar.bz2  fb           In.desktop
root@ubuntu:/home/android/Desktop# cp apktool.jar /usr/local/bin
root@ubuntu:/home/android/Desktop# cp apktool-install-linux-r04-brut1 /usr/local/bin
cp: omitting directory `apktool-install-linux-r04-brut1'
root@ubuntu:/home/android/Desktop# cp -rf apktool-install-linux-r04-brut1 /usr/local/bin
root@ubuntu:/home/android/Desktop# cd /usr/local/bin
root@ubuntu:/usr/local/bin# ls
apktool-install-linux-r04-brut1  apktool.jar
root@ubuntu:/usr/local/bin# cd /home/android/Desktop/
root@ubuntu:/home/android/Desktop# ls
apktool1.4.3.tar.bz2                     apktool.jar  FEB11            New
apktool-install-linux-r04-brut1          eclipse      FourInALine.apk  personl
apktool-install-linux-r04-brut1.tar.bz2  fb           In.desktop
root@ubuntu:/home/android/Desktop# cp -rf FourInALine.apk /usr/local/bin
root@ubuntu:/home/android/Desktop# cd /usr/local/bin
root@ubuntu:/usr/local/bin# ls
apktool-install-linux-r04-brut1  apktool.jar  FourInALine.apk
root@ubuntu:/usr/local/bin# java -jar apktool.jar d FourInALine.apk
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Loading resource table from file: /root/apktool/framework/1.apk
I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...
root@ubuntu:/usr/local/bin#


successsssssssss