Saturday, August 04, 2007

installing Webserver,MySQL,PHP5 and phpmyadmin using "yum"

syempre eto yung best friend ko para gawin lhat ito. [root@r3d3ye~]#

vi /etc/yum.repos.d/CentOS-Base.repo
name=CentOS-$releasever - Plus


Install PHP Package:
yum --enablerepo=centosplus update php

Install HTTPDSPackage:
yum install httpd

Install MySql Package:
yum install mysql*

Install Phpmyadmin Package:
yum install phpmy*

disable selinux

[root@r3d3ye ~]# vi /etc/selinux/config
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - SELinux is fully disabled.
# SELINUXTYPE= type of policy in use. Possible values are:
# targeted - Only targeted network daemons are protected.
# strict - Full SELinux protection.

Installed Packages
Name : mysql
Arch : i386
Version: 5.0.46
Release: 1.el4.centos
Size : 2.5 M
Summary: MySQL client programs and shared libraries

Name : php
Arch : i386
Version: 5.1.6
Release: 3.el4s1.7
Size : 2.9 M
Summary: The PHP HTML-embedded scripting language. (PHP: Hypertext Preprocessor)

Name : httpd
Arch : i386
Version: 2.0.59
Release: 1.el4s1.7.el4.centos
Size : 2.4 M
Summary: Apache HTTP Server

Name : phpmyadmin
Arch : noarch
Version: 2.10.3
Release: 2.el5.rf
Size : 12 M
Summary: Web application to manage MySQL

HTTP location:

PHPMYADMIN location:

vi /usr/share/phpmyadmin/

$cfg['blowfish_secret'] = '';

Enter in this line a password-like word or phrase, for example:
$cfg['blowfish_secret'] = '8layerpass';

Allow access by adding itong entry na ito sa httpd.conf:

allow from all

#service httpd restart


Configure you MySQL you can now start your application deployment.
note: assign password to you MYSQL

$> mysqladmin -u root password "your password"

No comments: