我们的服务器IP:192.168.0.195,客户端IP:192.168.0.196
所需软件包名字:httpd mysql mysql-server php php-mysql php-mbstring php-mcrypt libmcrypt phpMYAdmin
一.首先去下载这个软件包.phpMYAdmin-2.11.10-all-languages.tar.gz放在/var/www/phpmyadmin目录中,此目录不存在,得先创建...
[root@station195 ]#yum install httpd
[root@station195 www]# mkdir phpmyadmin
[root@station195 phpmyadmin]# tar zxvf phpMyAdmin-2.11.10-all-languages.tar.gz
[root@station195 phpmyadmin]# cp -rp phpMyAdmin-2.11.10-all-languages/* ./
[root@station195 phpmyadmin]# cp -p config.sample.inc.php config.inc.php
[root@station195 phpmyadmin]# vim config.inc.php
找到下面一行,引号当中是密码...
$cfg['blowfish_secret'] = 'redhat';
二.phpmyadmin包需要用到Php-mcrypt包,而php-mcrypt包又依赖于libmcrypt包,所以,我们得去下载这两个软件包...
[root@station195 ~]# rpm -ivh libmcrypt-2.5.7-5.el5.i386.rpm
[root@station195 ~]# yum install php-api
[root@station195 ~]# yum install php
[root@station195 ~]# rpm -ivh php-mcrypt-5.1.6-5.el5.i386.rpm
phpmyadmin还需要用到php-mbstring包,此包光盘上有,我们本地配有yum源,直接使用yum安装...
[root@station195 ~]# yum install php-mbstring
[root@station195 ~]# vim /etc/httpd/conf/httpd.conf
[root@station195 ~]# yum install mysql
[root@station195 ~]# yum install mysql-server
[root@station195 ~]# yum install php-mysql
#DocumentRoot "/var/www/html" (注释掉中心主机)
NameVirtualHost *:80
AddDefaultCharset GBK (支持GBK编码,这一项一定要加,不然你的浏览器看上去会有乱码)
servername phpmyadmin.example.com
DocumentRoot /var/www/phpmyadmin
AllowOverride None
Options None
Order allow,deny
Allow from all
[root@station195 ~]#vim /etc/hosts
192.168.0.195 phpmyadmin.example.com
由于我们这没做DNS-server,所以修改hosts文件,测试用,我们客户机用的windows2003,在C:\WINDOWS\system32\drivers\etc\hosts文件也写入这么一行,让其能够解析到...
[root@station195 ~]#mysqladmin -u root password '123456' (对mysql加密码)
[root@station195 ~]#mysql -uroot -p (指定密码)
mysql>create database mydb;(创建名为mydb的数据库.一定要以分号结尾.)
mysql>user mydb;(进入mydb数据库,一定要以分号结尾)
删除数据库使用drop database 数据库名字
[root@station195 ~]# service httpd restart
[root@station195 ~]# service mysqld restart
测试...
阅读(1970) | 评论(0) | 转发(0) |