Home > Apache, centOS, MySQL, PHP > centOS – lamp, LAMP Mannually

centOS – lamp, LAMP Mannually

Two methods to have it:

— XAMPP ( i give up for auto run script and postfix problem, otherwise it fine here : ( https://shamuntoha.wordpress.com/2009/12/01/linux-centos-fedora-lampp/ )

— By hand mySQL, PHP, Apache httpd, PhpmyAdmin

PHP, Apache, PhpMyAdmin:

1. yum install phpMyAdmin

* phpMyAdmin ( framework will be ready to mannually configure )
* PHP (installed)
* httpd (installed)

MySQL:

2. yum install mysql.i686 mysql-server.i686

* it install mysql
* install mysqld

[root@shamun /]# /etc/rc.d/init.d/mysqld status
mysqld is stopped
[root@shamun /]# /etc/rc.d/init.d/mysqld start
Starting MySQL:                                            [  OK  ]
[root@shamun /]# whereis mysqld
mysqld: /usr/libexec/mysqld /usr/share/man/man8/mysqld.8.gz
[root@shamun /]#

3. Check the installation

[root@shamun /]# httpd -v
Server version: Apache/2.2.14 (Unix)
Server built:   Dec  3 2009 10:25:53
[root@shamun /]# php –version
PHP 5.3.1 (cli) (built: Nov 20 2009 12:52:06)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2009 Zend Technologies
[root@shamun /]# mysql –version
mysql  Ver 14.14 Distrib 5.1.41, for redhat-linux-gnu (i386) using readline 5.1
[root@shamun /]#

open browser > http://localhost/phpmyadmin

its loaded now it will ask phpMyAdmin login/password we need to mannually fix it

4. phpMyAdmin

[root@shamun /]# whereis phpMyAdmin
phpMyAdmin: /etc/phpMyAdmin /usr/share/phpMyAdmin
[root@shamun /]#

[root@shamun phpMyAdmin]# ls
config.inc.php
[root@shamun phpMyAdmin]# mkdir config
[root@shamun phpMyAdmin]# chmod o+rw config/
[root@shamun phpMyAdmin]# cp config.inc.php config/
[root@shamun phpMyAdmin]# chmod o+rw config/config.inc.php
[root@shamun phpMyAdmin]# cd config
[root@shamun config]# ls
config.inc.php
[root@shamun config]#

* copy the setup text after saved, and overwrite the settings in /etc/phpMyAdmin/config.inc.php

* then open http://localhost/phpmyadmin > login using root username only.

Advertisements
Categories: Apache, centOS, MySQL, PHP Tags:
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: