Heim  >  Artikel  >  Backend-Entwicklung  >  CentOS6.2运用yum安装LAMP及phpMyadmin

CentOS6.2运用yum安装LAMP及phpMyadmin

WBOY
WBOYOriginal
2016-06-13 13:27:001127Durchsuche

CentOS6.2使用yum安装LAMP及phpMyadmin

本文介绍如何在CentOs6.2下面使用YUM配置安装LAMP环境,一些兄弟也很喜欢使用编译的安装方法,个人觉得如果不是对服务器做定制,用yum安装稳定简单,何必去download&make&make install呢。

Step1. 为centos配置rpmforge及epel源。centos官方的源其实也够用,不过像php的一些扩展如php-mcrypt在官方源中并没有。

rpmforge源可以在 http://pkgs.repoforge.org/rpmforge-release/中下载安装,名为rpmforge-release-*.i686.rpm 或 rpmforge-release-*.x86_64.rpm,找最新的版本

epel源可以在http://mirrors.ustc.edu.cn/fedora/epel/6/ 中找到,32系统在i386文件夹中,64位的在x86_64文件夹中,名为epel-release-6-*.noarch.rpm,找最新的版本

这里以32位系统为例子,

转载请注明来源CentOS6.2使用yum安装LAMP及phpMyadmin

Step 2. 安装php/mysql/httpd


Step 3.配置httpd、mysqld开机自启动


Step 4.配置phpmyadmin

修改/usr/share/phpmyadmin/config.inc.php


常见问题

1. phpmyadmin提示未开启php-mcrypt,这是因为没有安装php-mrcrpt扩展。在官方源没有php-mrcrpt扩展,请安装epel源后再yum install php-mcrypt

2. phpmyadmin无法访问

phpmyadmin默认只能使用http://localhost/phpmyadmin来访问,可以修改/etc/httpd/conf.d/phpmyadmin.conf中对应部分为

不过强烈不支持这么做的,把phpmyadmin暴露了不安全



********************************************

* 作者:叶文涛 

* 链接:CentOS6.2使用yum安装LAMP及phpMyadmin

******************转载请注明来源 ***************






Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn