28 October 2009

How to update PHP 5.1.0 to PHP 5.3.0?

Keep thinking......
Everything possible....

Download the package PHP-5.3.0.tar.bz package.

# tar -xjvf php-5.3.0.tar.bz2

#ls

php-5.3.0.tar.bz2 php-5.3.0.

#cd php-5.3.0

#./configure
After running the ./configure command i am getting the below eror message

configure: error: xml2-config not found. Please check your libxml2 installation.

solution for this error:

#yum install libxml2

run the configure command.

it will take the time to configure the package.
#make
#make install

after running the above commands.

your browser will not show the new version. for show the new version have to do the below steps.



How to switch to a different PHP version?
#cd /var/www

SiteGround has implemented a unique server setup that allows each customer to choose which version of PHP to use for his / her account. What is more, the customer can even use different PHP versions for different directories in one and the same hosting account. The PHP versions currently supported are: PHP 4.4 PHP 5.0, PHP 5.1, PHP 5.2, PHP 5.3, PHP 6.0 and a special secure version of PHP 5.2 with Suhosin patch.

In order to change the PHP version for your account, follow these steps. Go to cPanel, File Manager and choose "Web Root (public_html/www)". There create a new file (or edit the existing one) called .htaccess and add the following line:

To switch to PHP 4.4:

AddHandler application/x-httpd-php4 .php .php4 .php3

To switch to PHP 5.0:

AddHandler application/x-httpd-php5 .php .php5 .php4 .php3


To switch to PHP 5.1:

AddHandler application/x-httpd-php51 .php .php5 .php4 .php3

To switch to PHP 5.2:

AddHandler application/x-httpd-php52 .php .php5 .php4 .php3

To switch to PHP 5.3:

AddHandler application/x-httpd-php53 .php .php5 .php4 .php3

To switch to PHP 6.0:

AddHandler application/x-httpd-php6 .php .php5 .php4 .php3

To switch to the secure PHP 5.2 with Suhosin patch:

AddHandler application/x-httpd-php52s .php .php5 .php4 .php3

This setting will apply recursively to all of the subdirectories. In case you'd like to have a different version of PHP in a subdirectory, create a new .htaccess file in it with the directive for the desired PHP version in it.

Njoy it..........

23 October 2009

How to tar the file and bzip2

Step to the compress file tar and bzip the file:

#tar -cvf filename.tar filename

#ls
filename.tar filename

#bzip2 filename.tar
#ls
filename.tar.bz2 filename

Untar the file using the single command:

#tar -cxjf filename.tar.bz2
#ls
filename

Zjoy.................

Basic Samba configuration,

What is Samba?

Samba is software that can be run on a platform other than Microsoft Windows, for example, UNIX, Linux, IBM System 390, OpenVMS, and other operating systems. Samba uses the TCP/IP protocol that is installed on the host server. When correctly configured, it allows that host to interact with a Microsoft Windows client or server as if it is a Windows file and print server.

Step by step To install and configure the Samba on linux:

Download and install the below packages in Linux Box:

samba-client-3.0.9-1.3E.15
samba-3.0.9-1.3E.15
samba-swat-3.0.9-1.3E.15
samba-common-3.0.9-1.3E.15

#vi /etc/samba/smb.conf
####Simple Share conf########
[My Share]
comment = SysAdmin Share
path = /share
public = yes
writable = yes


save the file using the

:wq

press enter

#/etc/init.d/smb start
#chkconfig smb on

Then you can access the linux file from the windows machine.

Njoy......





Oracle 10g installation steps

Download the oracle RPM from the below URL

http://www.oracle.com/technology/software/products/database/xe/htdocs/102xelinsoft.html


[root@xerago999 Desktop]# rpm -ivh oracle-xe-univ-10.2.0.1-1.0.i386.rpm
Preparing... ########################################### [100%]
1:oracle-xe-univ ########################################### [100%]
Executing Post-install steps...
You must run '/etc/init.d/oracle-xe configure' as the root user to
configure the database.

[root@xerago999 Desktop]# /etc/init.d/oracle-xe configure

Oracle Database 10g Express Edition Configuration
-------------------------------------------------
This will configure on-boot properties of Oracle Database 10g Express
Edition. The following questions will determine whether the database should
be starting upon system boot, the ports it will use, and the passwords that
will be used for database accounts. Press to accept the defaults.
Ctrl-C will abort.

Specify the HTTP port that will be used for Oracle Application Express [8080]:

Specify a port that will be used for the database listener [1521]:

Specify a password to be used for database accounts. Note that the same
password will be used for SYS and SYSTEM. Oracle recommends the use of
different passwords for each database account. This can be done after
initial configuration:

Do you want Oracle Database 10g Express Edition to be started on boot (y/n) [y]:y

Starting Oracle Net Listener...Done
Configuring Database...

Starting Oracle Database 10g Express Edition Instance...Done
Installation Completed Successfully.
To access the Database Home Page go to "http://127.0.0.1:8080/apex"