Installing: mysql ######################### [2/4]
Installing: perl-DBD-MySQL ######################### [3/4]
[root@station30 ~]# /usr/bin/mysqladmin -u root password 123456 //给MYSQL创建登录用户名和密码,注意此ROOT非系统的ROOT也
Query OK, 1 row affected (0.00 sec) //出现这个表示成功
mysql> show databases; //查看当前数据库
+--------------------+
| Database |
+--------------------+
| information_schema |
| mysql |
| test |
| wordpress |
+--------------------+
Installing: apr ######################### [1/4]
Installing: postgresql-libs ######################### [2/4]
Installing: apr-util ######################### [3/4]
Installing: httpd ######################### [4/4]
[root@station30 ~]# /etc/init.d/httpd restart
[root@station30 ~]# chkconfig httpd on
Installing: gmp ######################### [1/4]
Installing: php-common ######################### [2/4]
Installing: php-cli ######################### [3/4]
Installing: php ######################### [4/4]
[root@station30 ~]# yum install php-mysql
Installing: php-pdo ######################### [1/2]
Installing: php-mysql ######################### [2/2]
LoadModule php5_module modules/libphp5.so
AddHandler php5-script .php
AddType text/html .php
DirectoryIndex index.php
AddType application/x-httpd-php-source .phps
phpinfo();
?>
//在浏览器中输入服务器的IP,看到以下内容表示PHP配置成功
[root@station30 html]# unzip /mnt/wordpress-2.8.4-zh_CN.zip
index.php wordpress
[root@station30 html]# cd wordpress/
[root@station30 wordpress]# cp wp-config-sample.php wp-config.php
/** WordPress数据库的名称,替换掉 “putyourdbnamehere” *//
define('DB_NAME', 'wordpress');
//** MySQL数据库用户名,替换掉 “usernamehere” *//
define('DB_USER', 'root');
//** MySQL数据库密码,替换掉 “yourpasswordhere” *//
define('DB_PASSWORD', '123456');
下一篇:个人版APC UPS电源设备
-
(3)RHEL5.2下的VMware Tools安装
RHEL5.2下的VMware Tools安装
安装 Linux RHEL5.2 VMware Tools IT绿叶 -
LAMP rpm包安装
LAMP使用rpm包安装方法 使用cdrom制作yum源1. 安装apache[root@localhost
LAMP linux下安装lamp
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M