vi /etc/yum.repos.d/CentOS-Base.repo
[centosplus]
name=CentOS-$releasever - Plus
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-centos4
or
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.
SELINUX=disabled
# SELINUXTYPE= type of policy in use. Possible values are:
# targeted - Only targeted network daemons are protected.
# strict - Full SELinux protection.
SELINUXTYPE=targeted
notes:
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:
/var/www/html.
PHPMYADMIN location:
/usr/share/phpmyadmin/
vi /usr/share/phpmyadmin/config.inc.php
$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
http://
Configure you MySQL you can now start your application deployment.
note: assign password to you MYSQL
No comments:
Post a Comment