注册 登录  
 加关注
查看详情
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

天高云淡的博客

A bad beginning makes a bad ending.

 
 
 

日志

 
 

如何安装How to install LAMP, phpMyAdmin and VsFTP on CentOS 5.3 Using Yum  

2009-12-26 17:43:54|  分类: php + mysql + ap |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |

How to install LAMP, phpMyAdmin and VsFTP on CentOS 5.3 Using Yum

原文转帖自http://www.aoddy.com/2007/12/12/how-to-install-phpmyadmin-2113-on-centos-5/
根据phpmyadmin的版本做了校正

As always @ SevenL we are trying to better inform and educate our customers and the rest of the world!

We will now look at the wonderful and exciting way to install LAMP, phpMyAdmin and VsFTP on CentOS 5.3 utilizing Yum! Hoorray! =)

#Update Your Package
yum update

# Install Mysql Packages
yum install mysql-server mysql mysql-devel
/etc/init.d/mysqld start

# By default mysql has the no passward. To change the password in command shell write the following commands
mysql
mysql> USE mysql;
mysql> UPDATE user SET Password=PASSWORD(’your_password’) WHERE user=’root’;
mysql> FLUSH PRIVILEGES;

# Install php and common packages
yum install php php-gd php-imap php-mysql php-pear php-xml phpxmlrpc curl libxml2 php-mbstring php-mcrypt

# Install VSFTP
yum install vsftpd
# Modify the conf files it depends on you.
vi /etc/vsftpd/vsftpd.conf
vi /etc/vsftpd/user_list
vi /etc/vsftpd/ftpusers
/etc/init.d/vsftpd start

# Install phpMyAdmin
cd /usr/share/
wget http://cdnetworks-kr-2.dl.sourceforge.net/project/phpmyadmin/phpMyAdmin/2.11.10/phpMyAdmin-2.11.10-all-languages.tar.gz
tar xvfz phpMyAdmin-2.11.10-all-languages.tar.gz
mv phpMyAdmin-2.11.10-all-languages phpmyadmin
rm phpMyAdmin-2.11.10-all-languages.tar.gz
cd phpmyadmin/
cp config.sample.inc.php config.inc.php
vi config.inc.php
>> $cfg['blowfish_secret'] = ‘TypeAnything_for_Secure’;
vi /etc/httpd/conf.d/phpmyadmin.conf
>> Alias /phpMyAdmin /usr/share/phpmyadmin
service httpd restart

# Check your web-site
cd /var/www/html/
ls
cat > index.php
<?
phpinfo();
?>
http://localhost

可以测试链接:

http://www.website1.com/phpMyAdmin/

http://www.mywebsite2.com/phpMyAdmin/

会弹出用户名口令界面,注意后面的字母大小写,否则访问不成功

# Setup Auto Start
setup
Select Service -> httpd, mysqld, vsftp

For more hot and heavy tips for installing,managing,configuring, etc – stay tuned for more posts. And hey, give us some feedback as well! – was this helpful!?

  评论这张
 
阅读(992)| 评论(0)
推荐 转载

历史上的今天

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2018