注册 | 登录 | 设为首页 | 加入收藏
您当前的位置:飞翔学院-IT中国 → 编程开发PHP → 文章内容

Redhat中快速安装php/mysql

作者:佚名 来源:不详 发布时间:2007-11-29 20:47:33

  确保使用系统自带的apache,从安装光盘中找出所有以mysql及php-mysql开头的rpm包,然后运行
#rpm -ivh mysql*.rpm php-mysql*.rpm; mysql_install_db; service mysql start

Apache + PHP:
[1] Install the all the component of "Web Server" group. If you have not installed "httpd" or if the php support is not installed, you can just execute "redhat-config-packages" to get a user-friendly GUI to Add/Remove any packages.
[2] By default, the php-mysql cooperation package will not be installed. Get the
RH8 disc 3 and install the rpm package: "php-mysql-4.2.2-8.0.5.i386.rpm"
[3] Modify /etc/php.ini, change "register_globals = Off" to "register_globals = On"

MySQL:
[1] Install all the components of "Database Server" group. If you have not installed the mysql server, you can just use "redhat-config-packages" to add it.
(RH8 disc2 and disc3 are needed)
[2] Exceute the following commands:
# mysql_install_db
# service mysqld start
# mysqladmin -u root password 'password'

Installation of PHP app:
[1] Extract any tools or applications written in PHP to a directory.
[2] Copy all the contents to Apache's default document root, /var/www/html, and make sure the file "index.php" is in the directory /var/www/html.

现在都是用单独的一个配置文件,在/etc/httpd/conf.d/php.conf
更多内容请看PCdog.com--  MySQL数据备份  PHP基础篇专题

  • 打印文档
  • 推荐好友
  • 返回顶部
  • 增大字体
  • 减少字体
关于本站 | 工作机会 | 合作网站 | 广告服务 | 市场合作| 联系我们 | 抽奖活动
版权所有: 武汉威俊科技有限公司 Copyright 2005-2007 www.ITCNW.COM All rights reserved