LAMP INSTALLATION WITH CONFIGURATION ON CENTOSE 5.3

[root@fedorasmpp ~]#vi /etc/sysconfig/network-scripts/ifcfg-eth0

192.168.1.200

255.255.255.0

192.168.1.1

[root@fedorasmpp ~]#vi /etc/hosts

192.168.1.200 fedorasmpp.xxx.com fedorasmpp

:wq!

mysqladmin -h fedorasmpp.dataslices.com -u root password

[root@fedorasmpp ~]# yum install mysql mysql-server

[root@fedorasmpp ~]# chkconfig –levels 235 mysqld on

[root@fedorasmpp ~]# /etc/init.d/mysqld start

Starting mysqld:                                            [  OK  ]

[root@fedorasmpp ~]# mysqladmin -u root password redhat

[root@fedorasmpp ~]# mysqladmin -h fedorasmpp.dataslices.com -u root password redhat

[root@fedorasmpp ~]# yum install httpd

[root@fedorasmpp ~]# chkconfig –levels 235 httpd on

[root@fedorasmpp ~]# /etc/init.d/httpd start

Starting httpd:                                             [  OK  ]

[root@fedorasmpp ~]# yum install php

[root@fedorasmpp ~]#/etc/inid.d/httpd restart

open Browser mention in url

http://192.168.1.9/info.php

[root@fedorasmpp ~]# yum install php-mysql php-gd php-imap php-ldap php-odbc php-pear php-xml php-xmlrpc

Loaded plugins: fastestmirror

Loading mirror speeds from cached hostfile

 * addons: mirror.eshk.hk

 * base: mirror.eshk.hk

 * extras: mirrors.digipower.vn

 * updates: mirrors.digipower.vn

Setting up Install Process

Package php-mysql-5.1.6-27.el5_5.3.i386 already installed and latest version

Package php-ldap-5.1.6-27.el5_5.3.i386 already installed and latest version

Package php-odbc-5.1.6-27.el5_5.3.i386 already installed and latest version

Package 1:php-pear-1.4.9-6.el5.noarch already installed and latest version

Resolving Dependencies

–> Running transaction check

—> Package php-gd.i386 0:5.1.6-27.el5_5.3 set to be updated

—> Package php-imap.i386 0:5.1.6-27.el5_5.3 set to be updated

–> Processing Dependency: libc-client.so.1 for package: php-imap

—> Package php-xml.i386 0:5.1.6-27.el5_5.3 set to be updated

—> Package php-xmlrpc.i386 0:5.1.6-27.el5_5.3 set to be updated

–> Running transaction check

—> Package libc-client.i386 0:2004g-2.2.1 set to be updated

–> Finished Dependency Resolution

Dependencies Resolved

=============================================================================================================================

 Package                        Arch                    Version                             Repository                  Size

=============================================================================================================================

Installing:

 php-gd                         i386                    5.1.6-27.el5_5.3                    updates                    117 k

 php-imap                       i386                    5.1.6-27.el5_5.3                    updates                     54 k

 php-xml                        i386                    5.1.6-27.el5_5.3                    updates                     97 k

 php-xmlrpc                     i386                    5.1.6-27.el5_5.3                    updates                     58 k

Installing for dependencies:

 libc-client                    i386                    2004g-2.2.1                         base                       516 k

Transaction Summary

=============================================================================================================================

Install       5 Package(s)

Upgrade       0 Package(s)

Total download size: 842 k

Is this ok [y/N]: y

Downloading Packages:

(1/5): php-imap-5.1.6-27.el5_5.3.i386.rpm                                                             |  54 kB     00:00

(2/5): php-xmlrpc-5.1.6-27.el5_5.3.i386.rpm                                                           |  58 kB     00:00

(3/5): php-xml-5.1.6-27.el5_5.3.i386.rpm                                                              |  97 kB     00:00

(4/5): php-gd-5.1.6-27.el5_5.3.i386.rpm                                                               | 117 kB     00:00

(5/5): libc-client-2004g-2.2.1.i386.rpm                                                               | 516 kB     00:01

—————————————————————————————————————————–

Total                                                                                        103 kB/s | 842 kB     00:08

Running rpm_check_debug

Running Transaction Test

Finished Transaction Test

Transaction Test Succeeded

Running Transaction

  Installing     : libc-client                                                                                           1/5

  Installing     : php-xmlrpc                                                                                            2/5

  Installing     : php-imap                                                                                              3/5

  Installing     : php-xml                                                                                               4/5

  Installing     : php-gd                                                                                                5/5

Installed:

  php-gd.i386 0:5.1.6-27.el5_5.3             php-imap.i386 0:5.1.6-27.el5_5.3         php-xml.i386 0:5.1.6-27.el5_5.3

  php-xmlrpc.i386 0:5.1.6-27.el5_5.3

Dependency Installed:

  libc-client.i386 0:2004g-2.2.1

Complete!

[root@fedorasmpp ~]# /etc/init.d/httpd restart

Stopping httpd:                                            [  OK  ]

Starting httpd:                                            [  OK  ]

[root@fedorasmpp ~]# wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.3.6-1.el5.rf.i386.rpm

–2011-01-16 14:07:03–  http://packages.sw.be/rpmforge-release/rpmforge-release-0.3.6-1.el5.rf.i386.rpm

Resolving packages.sw.be… 85.13.226.40

Connecting to packages.sw.be|85.13.226.40|:80… connected.

HTTP request sent, awaiting response… 302 Found

Location: http://rpmforge.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm [following]

–2011-01-16 14:07:03–  http://rpmforge.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm

Resolving rpmforge.sw.be… 85.13.226.40

Reusing existing connection to packages.sw.be:80.

HTTP request sent, awaiting response… 200 OK

Length: 16698 (16K) [application/x-rpm]

Saving to: `rpmforge-release-0.3.6-1.el5.rf.i386.rpm’

100%[===================================================================================>] 16,698      –.-K/s   in 0.1s

2011-01-16 14:07:04 (111 KB/s) – `rpmforge-release-0.3.6-1.el5.rf.i386.rpm’ saved [16698/16698]

[root@fedorasmpp ~]# rpm -Uvh rpmforge-release-0.3.6-1.el5.rf.i386.rpm

warning: rpmforge-release-0.3.6-1.el5.rf.i386.rpm: Header V3 DSA signature: NOKEY, key ID 6b8d79e6

Preparing…                ########################################### [100%]

   1:rpmforge-release       ########################################### [100%]

[root@fedorasmpp ~]# yum install phpmyadmin

Loaded plugins: fastestmirror

Loading mirror speeds from cached hostfile

 * addons: mirror.eshk.hk

 * base: mirror.eshk.hk

 * extras: mirrors.digipower.vn

 * rpmforge: fr2.rpmfind.net

 * updates: mirrors.digipower.vn

rpmforge                                                                                              | 1.1 kB     00:00

rpmforge/primary                                                                                      | 2.2 MB     00:22

rpmforge                                                                                                         10369/10369

Setting up Install Process

Resolving Dependencies

–> Running transaction check

—> Package phpmyadmin.noarch 0:2.11.11.1-1.el5.rf set to be updated

–> Processing Dependency: php-mbstring >= 4.1.0 for package: phpmyadmin

–> Processing Dependency: php-mcrypt for package: phpmyadmin

–> Running transaction check

—> Package php-mbstring.i386 0:5.1.6-27.el5_5.3 set to be updated

—> Package php-mcrypt.i386 0:5.1.6-15.el5.centos.1 set to be updated

–> Processing Dependency: libmcrypt.so.4 for package: php-mcrypt

–> Running transaction check

—> Package libmcrypt.i386 0:2.5.8-4.el5.centos set to be updated

–> Finished Dependency Resolution

Dependencies Resolved

=============================================================================================================================

 Package                      Arch                   Version                                  Repository                Size

=============================================================================================================================

Installing:

 phpmyadmin                   noarch                 2.11.11.1-1.el5.rf                       rpmforge                 4.2 M

Installing for dependencies:

 libmcrypt                    i386                   2.5.8-4.el5.centos                       extras                   116 k

 php-mbstring                 i386                   5.1.6-27.el5_5.3                         updates                  995 k

 php-mcrypt                   i386                   5.1.6-15.el5.centos.1                    extras                    16 k

Transaction Summary

=============================================================================================================================

Install       4 Package(s)

Upgrade       0 Package(s)

Total download size: 5.3 M

Is this ok [y/N]: y

Is this ok [y/N]: y

Downloading Packages:

(1/4): php-mcrypt-5.1.6-15.el5.centos.1.i386.rpm                                                      |  16 kB     00:00

(2/4): libmcrypt-2.5.8-4.el5.centos.i386.rpm                                                          | 116 kB     00:00

(3/4): php-mbstring-5.1.6-27.el5_5.3.i386.rpm                                                         | 995 kB     00:02

(4/4): phpmyadmin-2.11.11.1-1.el5.rf.noarch.rpm                                                       | 4.2 MB     00:09

—————————————————————————————————————————–

Total                                                                                        365 kB/s | 5.3 MB     00:14

Running rpm_check_debug

Running Transaction Test

Finished Transaction Test

Transaction Test Succeeded

Running Transaction

  Installing     : libmcrypt                                                                                             1/4

  Installing     : php-mcrypt                                                                                            2/4

  Installing     : php-mbstring                                                                                          3/4

  Installing     : phpmyadmin                                                                                            4/4

Installed:

  phpmyadmin.noarch 0:2.11.11.1-1.el5.rf

Dependency Installed:

  libmcrypt.i386 0:2.5.8-4.el5.centos    php-mbstring.i386 0:5.1.6-27.el5_5.3    php-mcrypt.i386 0:5.1.6-15.el5.centos.1

Complete!

[root@fedorasmpp ~]# vi /etc/httpd/conf.d/phpmyadmin.conf

#  Web application to manage MySQL

#

<Directory “/usr/share/phpmyadmin”>

  Order Deny,Allow

  Deny from all

  Allow from 127.0.0.1

</Directory>

Alias /phpmyadmin /usr/share/phpmyadmin

Alias /phpMyAdmin /usr/share/phpmyadmin

Alias /mysqladmin /usr/share/phpmyadmin

:wq!

Next Configuration Step we change the authentication in phpMyAdmin for cookie by http:

========================

BY DEFAULT CONFIGURATION

========================

/* Authentication type */

$cfg[‘Servers’][$i][‘auth_type’] = ‘cookie’;

s

==========================

AFTER CHANGE CONFIGURATION

==========================

/* Authentication type */

$cfg[‘Servers’][$i][‘auth_type’] = ‘http’;

[root@fedorasmpp ~]# /etc/init.d/httpd restart

Stopping httpd:                                            [  OK  ]

Starting httpd:                                            [  OK  ]

you can access phpMyAdmin under http://192.168.1.9/phpmyadmin/:

You May Also Like

Leave a Reply

Your email address will not be published. Required fields are marked *

For security, use of Google's reCAPTCHA service is required which is subject to the Google Privacy Policy and Terms of Use.

I agree to these terms.