Wednesday 25 April 2012

Step by Step installation PHP 5.3 and PhpMyAdmin ?

1.PHP 5.3--installation steps...

    2  yum remove php*
    3  ls
    4  cd PHP-5.3/
    5  ls
    6  rpm -ivh php-5.3.3-2.el5.i386.rpm
    7  rpm -ivh php-cli-5.3.3-2.el5.i386.rpm
    8  rpm -ivh lib*
    9  rpm -ivh libedit-20090923-3.0_1.el5.rf.i386.rpm
   10  rpm -ivh php-common-5.3.3-2.el5.i386.rpm
   11  rpm -ivh php-cli-5.3.3-2.el5.i386.rpm
   12  rpm -ivh php-5.3.3-2.el5.i386.rpm
   13  rpm -ivh php-bcmath-5.3.3-2.el5.i386.rpm
   14  ls
   15  rpm -ivh php-dba-5.3.3-2.el5.i386.rpm
   16  rpm -ivh php-devel-5.3.3-2.el5.i386.rpm
   17  rpm -ivh php-embedded-5.3.3-2.el5.i386.rpm
   18  rpm -ivh enchant-1.3.0-1.el5.rf.i386.rpm
   19  rpm -ivh php-enchant-5.3.3-2.el5.i386.rpm
   20  rpm -ivh php-gd-5.3.3-2.el5.i386.rpm
   21  rpm -ivh t1lib-5.1.0-9.el5.kb.i386.rpm
   22  rpm -ivh php-gd-5.3.3-2.el5.i386.rpm
   23  rpm -ivh php-imap-5.3.3-2.el5.i386.rpm
   24  rpm -ivh libc-client-2004g-2.2.1.i386.rpm
   25  rpm -ivh php-imap-5.3.3-2.el5.i386.rpm
   26  ls
   27  rpm -ivh php-intl-5.3.3-2.el5.i386.rpm
   28  rpm -ivh php-ldap-5.3.3-2.el5.i386.rpm
   29  rpm -ivh php-mbstring-5.3.3-2.el5.i386.rpm
   30  rpm -ivh php-mcrypt-5.3.3-2.el5.i386.rpm
   31  rpm -ivh libmcrypt-2.5.8-4.el5.centos.i386.rpm
   32  rpm -ivh php-mcrypt-5.3.3-2.el5.i386.rpm
   33  rpm -ivh php-mssql-5.3.3-2.el5.i386.rpm
   34  ls
   35  ls
   36  rpm -ivh php-pdo-5.3.3-2.el5.i386.rpm
   37  rpm -ivh php-mssql-5.3.3-2.el5.i386.rpm
   38  rpm -ivh freetds-0.64-11.el5.centos.i386.rpm
   39  rpm -ivh php-mssql-5.3.3-2.el5.i386.rpm
   40  rpm -ivh php-mysql-5.3.3-2.el5.i386.rpm
   41  rpm -ivh php-odbc-5.3.3-2.el5.i386.rpm
   42  rpm -ivh php-pgsql-5.3.3-2.el5.i386.rpm
   43  rpm -ivh php-process-5.3.3-2.el5.i386.rpm
   44  rpm -ivh php-pspell-5.3.3-2.el5.i386.rpm
   45  rpm -ivh php-snmp-5.3.3-2.el5.i386.rpm
   46  rpm -ivh php-soap-5.3.3-2.el5.i386.rpm
   47  rpm -ivh php-xml-5.3.3-2.el5.i386.rpm
   48  rpm -ivh php-xmlrpc-5.3.3-2.el5.i386.rpm
   49  rpm -ivh php-tidy-5.3.3-2.el5.i386.rpm
   50  rpm -ivh libtidy-0.99.0-16.20070615.el5.kb.i386.rpm
   51  rpm -ivh php-tidy-5.3.3-2.el5.i386.rpm
   52  rpm -ivh php-zts-5.3.3-2.el5.i386.rpm

service restart:
   53  /etc/init.d/httpd start
   54  /etc/init.d/mysqld start

***PHPMyadmin installation******

download the phpmyAdmin 3.4.0-english.tar.gz

copy this file into /var/www/html location, then

extract that tar file

#tar -xvzf phpmyAdmin 3.4.0-english.tar.gz

then...
   55  cd /var/www/html/
   56  ls
   57  mv phpMyAdmin-3.4.0-english/ phpmyadmin
   58  ls
   59  service httpd restart
   60  /etc/init.d/httpd restart

test:
Opne firefox-->http://localhost ---enter-------->shows gui console.....
then
   
   64  mysqladmin -u root password dotcom
   65  mysqladmin -u root -p
   66  mysql -u root -p
  
Uname:root
password:dotcom------->using to login phpmyadmin console
  
   75  chkconfig httpd on
   76  chkconfig mysqld on


Wednesday 18 April 2012

How execute bin files in LINUX?

Command to run (execute) bin files in Linux

Q. I have downloaded a file from internet that ends with .bin extension. Documentation says just run bin file. What command I need to type in order to run bin files in Linux.
A. .bin files are Linux self extracting binary files. For example Java or Flash are two examples of these types of file. Just type following two commands to run .bin files:

Run .bin file in Linux / UNIX

Change the permission of the file you downloaded to be executable. Type the following command:

$ chmod +x file.bin

Start the installation process or run .bin file.Type the following command:

./file.bin

For example if .bin file name is application.bin. Type:

$ chmod +x application.bin
$ ./application.bin



Another example for Java Linux self extracting binary file:

# chmod +x jre-1_5_0-linux-i586.bin
# ./jre-1_5_0-linux-i586.bin

Tuesday 17 April 2012

How to install Flash in linux?

To fix this issue, you need to upgrade/install certain libraries using yum. I have mentioned the commands below.

1. First you need to install those libraries (.i386 and .x86_64):

yum install curl compat-libstdc++-33 glibc nspluginwrapper

yum install flash-plugin nspluginwrapper curl

2. Once done with the libraries, we need to download the flash player rpm.

mkdir flash

cd flash

download the rpm inside the folder flash.

3. Next we need to execute the command below to install the rpm. This command should be executed inside the folder, where the rpm is downloaded. Ours is in the folder ‘flash’.

rpm -ivh flash-plugin-10.0.12.36-release.i386.rpm

4. Close the Firefox and restart it. You should be able to see the flashes hereafter.

###################################################
1.Open a Terminal window (in Gnome, click on the Applications menu, select Accessories, and then select Terminal.)

2.In the Terminal window, change to the directory where you saved the file you downloaded (e.g. cd /home/user/Downloads).

3.Extract libflashplayer.so from the file you downloaded with the command

# tar -zxvf install_flash_player_"version"_linux."processor".tar.gz.

4.As the super user, copy the extracted file, libflashplayer.so, to your Firefox installation directory's plugins sub-directory.

For example,

if Firefox is installed in /usr/lib/mozilla,

use the command

$ sudo cp libflashplayer.so /usr/lib/mozilla/plugins and

then enter your super user password when prompted. 

###########

# tar -zxvf install_flash_player_"version"_linux."processor".tar.gz. 
#cp libflashplayer.so /home/sankar/.mozilla/plugins
---->close browser----->open browser----