How to configure PHP 5 on Centos

Published on

1. Edit CentOS-Base.repo 2. Enable CentOSPlus by changing: #additional packages that extend functionality of existing packages [centosplus] name=CentOS-$releasever – Plus mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus #baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/ gpgcheck=1 enabled=0 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4 to: #additional packages that extend functionality of existing packages [centosplus] name=CentOS-$releasever – Plus mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus #baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/ gpgcheck=1 enabled=1 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4 3. Run yum yum install php – to freshly install PHP5 Or … Continue reading How to configure PHP 5 on Centos

Linux oracle basics

Published on

Basics linux commands for oracle How to check the oracle instances running on linux server [root@rh5x64-test ~]# ps -ef|grep smon root     12521 12237  0 08:38 pts/1    00:00:00 grep smon oracle   15036     1  0 Jun01 ?        00:00:08 ora_smon_ENG11R1 Oracle main configuration file /etc/oratab contains three data items separated by colons: Eg: ASG920xr:/usr/oracle/9.2.0:Y ASG817xr:/usr/oracle/8.1.7:Y TEST920xr:/usr/oracle/9.2.0:N PROD920xr:/usr/oracle/9.2.0:N . … Continue reading Linux oracle basics

How to pass value from javascript to java?

Published on

Transferring the values between javascript and java can be done using the follow example 1)Pass value from jsp scriplet to javascript: <% String str=”Hello World”; %> <html> <head> <script language=”javascript”> function access(){ var s=”<%=str%>”; alert(s); } </script> </head> <body onload=”access()”> </body> </html> 2)Pass value from javascript to Jsp scriplet: <script> function get(){ var m=”Hello”; window.location.replace(“h.jsp?mess=”+m); … Continue reading How to pass value from javascript to java?

How to create password protected zip file using java

Published on

In java,We can create zip file but cannt set password using java.util.zip library We should use external library to create password protecting zip files. The list of available external libraries are http://www.lingala.net/zip4j/ http://www.chilkatsoft.com/java.asp http://code.google.com/p/winzipaes/ merkert.de/de/info/zipaes/src.zip  

How to Setup Android Application Development Environment on Eclipse

Published on

How to Setup Android Application Development on Eclipse Step1:- You need JDk 7 Download and install. a)  Download it from http://www.oracle.com/technetwork/java/javase/downloads/index.html When you click on the download button it will redirect you to another page. accept the license agreement and select the OS version which u have It will take some time to download depending … Continue reading How to Setup Android Application Development Environment on Eclipse