确保使用系统自带的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请保留地址 http://www.qqread.com/php/2006/11/e265259.html
相关图文阅读
频道图文推荐
健 康 咨 询
时 尚 咨 询
相关专题
- php文件上传的实现 (42次浏览)
- 实例:PHP判断用户是否正确登录转到欢迎界面 (0次浏览)
- 入门:学习掌握PHP的编程语句 (0次浏览)
- 关于PHP的前途 (0次浏览)
- 分析PHP应用程序以查找、诊断和加速运行缓慢的 (0次浏览)
- 动态语言崛起 Delphi For PHP横空出世 (0次浏览)
- Classes and Objects in PHP5 (0次浏览)
- apache 2.2.2 + PHP5.1.4 不能运行的解决办法 (0次浏览)
- Zeus+php+Zend Optimizer安装指南 (0次浏览)
- Windows下的PHP5.0安装配置详解 (0次浏览)



