• 软件测试技术
  • 软件测试博客
  • 软件测试视频
  • 开源软件测试技术
  • 软件测试论坛
  • 软件测试沙龙
  • 软件测试资料下载
  • 软件测试杂志
  • 软件测试人才招聘
    暂时没有公告

字号: | 推荐给好友 上一篇 | 下一篇

Redhat中快速安装php/mysql

发布: 2007-6-21 15:32 | 作者:   | 来源:   | 查看: 24次 | 进入软件测试论坛讨论

领测软件测试网

   
  确保使用系统自带的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

延伸阅读

文章来源于领测软件测试网 https://www.ltesting.net/


关于领测软件测试网 | 领测软件测试网合作伙伴 | 广告服务 | 投稿指南 | 联系我们 | 网站地图 | 友情链接
版权所有(C) 2003-2010 TestAge(领测软件测试网)|领测国际科技(北京)有限公司|软件测试工程师培训网 All Rights Reserved
北京市海淀区中关村南大街9号北京理工科技大厦1402室 京ICP备10010545号-5
技术支持和业务联系:info@testage.com.cn 电话:010-51297073

软件测试 | 领测国际ISTQBISTQB官网TMMiTMMi认证国际软件测试工程师认证领测软件测试网