Redhat中快速安装php/mysql_PHP教程
程序员文章站
2022-06-10 20:43:54
...
确保使用系统自带的apache(Unix平台最流行的WEB服务器平台),从安装光盘中找出所有以MySQL(和PHP搭配之最佳组合)及php(做为现在的主流开发语言)-MySQL(和PHP搭配之最佳组合)开头的rpm包,然后运行
#rpm -ivh MySQL(和PHP搭配之最佳组合)*.rpm php(做为现在的主流开发语言)-MySQL(和PHP搭配之最佳组合)*.rpm; MySQL(和PHP搭配之最佳组合)_install_db; service MySQL(和PHP搭配之最佳组合) start
apache(Unix平台最流行的WEB服务器平台) + 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(和PHP搭配之最佳组合) cooperation package will not be installed. Get the
RH8 disc 3 and install the rpm package: "php(做为现在的主流开发语言)-MySQL(和PHP搭配之最佳组合)-4.2.2-8.0.5.i386.rpm"
[3] Modify /etc/php(做为现在的主流开发语言).ini, change "register_globals = Off" to "register_globals = On"
MySQL(和PHP搭配之最佳组合):
[1] Install all the components of "Database Server" group. If you have not installed the MySQL(和PHP搭配之最佳组合) server, you can just use "redhat-config-packages" to add it.
(RH8 disc2 and disc3 are needed)
[2] Exceute the following commands:
# MySQL(和PHP搭配之最佳组合)_install_db
# service MySQL(和PHP搭配之最佳组合)d start
# MySQL(和PHP搭配之最佳组合)admin -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(Unix平台最流行的WEB服务器平台)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
#rpm -ivh MySQL(和PHP搭配之最佳组合)*.rpm php(做为现在的主流开发语言)-MySQL(和PHP搭配之最佳组合)*.rpm; MySQL(和PHP搭配之最佳组合)_install_db; service MySQL(和PHP搭配之最佳组合) start
apache(Unix平台最流行的WEB服务器平台) + 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(和PHP搭配之最佳组合) cooperation package will not be installed. Get the
RH8 disc 3 and install the rpm package: "php(做为现在的主流开发语言)-MySQL(和PHP搭配之最佳组合)-4.2.2-8.0.5.i386.rpm"
[3] Modify /etc/php(做为现在的主流开发语言).ini, change "register_globals = Off" to "register_globals = On"
MySQL(和PHP搭配之最佳组合):
[1] Install all the components of "Database Server" group. If you have not installed the MySQL(和PHP搭配之最佳组合) server, you can just use "redhat-config-packages" to add it.
(RH8 disc2 and disc3 are needed)
[2] Exceute the following commands:
# MySQL(和PHP搭配之最佳组合)_install_db
# service MySQL(和PHP搭配之最佳组合)d start
# MySQL(和PHP搭配之最佳组合)admin -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(Unix平台最流行的WEB服务器平台)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
上一篇: VS2015找不到stdio.h或new.h的Bug修复
下一篇: Codeforces Round #280 (Div. 2)-A. Vanya and Cubes_html/css_WEB-ITnose
推荐阅读
-
redhat 4中安装Oracle 10g图文教程
-
Linux 中PHP的安装教程
-
在VMware虚拟机中安装redhat linux操作系统图文详解教程
-
linux中php如何安装CURL扩展方法示例教程
-
解析centos中Apache、php、mysql 默认安装路径_PHP教程
-
php快速查找数据库中恶意代码的方法,快速查找恶意代码_PHP教程
-
我在RedHat linux 6.2下安装Apache-2.0.44的过程_PHP教程
-
PHP入门:在Windows中安装PHP工作环境_PHP教程
-
Windows 2000下安装PHP4及MySQL_PHP教程
-
WindowsXP中快速配置Apache+PHP5+Mysql_PHP教程