Configuration of PHP environment under Windows_PHP tutorial

WBOY
Release: 2016-07-13 17:33:35
Original
895 people have browsed it

1. 所需软件环境:
1. apache(Unix平台最流行的WEB服务器平台) 2.2 
2. active perl 5.8  c:perl
3. php(做为现在的主流开发语言) 5.1  必须安在 c:php(做为现在的主流开发语言)
4. ZendOptimizer-3.0.2 
5. php(做为现在的主流开发语言)环境所需 includes  --在 php(做为现在的主流开发语言) 安装之后,无法正常运行时必须的库。
-----------------------------------------------
2. apache(Unix平台最流行的WEB服务器平台) 2.2--------httpd.conf 文件配置
1. 第133行前面加 #
2. 修改  之间
ScriptAlias /cgi(现在已经不多人在用了)-bin/ "D:/Programmes/Server/apache(Unix平台最流行的WEB服务器平台)2.2/cgi(现在已经不多人在用了)-bin/"
        及
        (Unix平台最流行的WEB服务器平台)2.2/cgi(现在已经不多人在用了)-bin">
        划线部分分别改为  C:/php(做为现在的主流开发语言)/  和  C:/php(做为现在的主流开发语言)
3.  将 #!c:/program files/perl/perl  改为  #!C:/Perl/bin
4.  在文件末尾添加
    ScriptAlias /php(做为现在的主流开发语言)/ "c:/php(做为现在的主流开发语言)/"
AddType application/x-httpd-php(做为现在的主流开发语言) .php(做为现在的主流开发语言)

# For php(做为现在的主流开发语言) 4
#Action application/x-httpd-php(做为现在的主流开发语言) "/php(做为现在的主流开发语言)/php(做为现在的主流开发语言).exe"

# For php(做为现在的主流开发语言) 5
Action application/x-httpd-php(做为现在的主流开发语言) "/php(做为现在的主流开发语言)/php(做为现在的主流开发语言)-cgi(现在已经不多人在用了).exe"
-------------------------------------------------------------------------------
3. php(做为现在的主流开发语言)配置细则:
      1. 将 c:php(做为现在的主流开发语言) 加入 windows 环境变量 path 中
      2. 将 includes 拷入 c:php(做为现在的主流开发语言)includes
      3. 将 php(做为现在的主流开发语言).ini-dist 改名为 php(做为现在的主流开发语言).ini
      4. 下面是 php(做为现在的主流开发语言).ini 配置细则:
            1. 将 doc_root =  设置为 doc_root = D:ProgrammesServerapache(Unix平台最流行的WEB服务器平台)2.2htdocs
            2. 将 extension_dir =  设置为 extension_dir = "C:php(做为现在的主流开发语言)ext"
            3. 将 ;extension=php(做为现在的主流开发语言)_MySQL(和PHP搭配之最佳组合).dll 前面的 ”;” 去掉,改为 extension=php(做为现在的主流开发语言)_MySQL(和PHP搭配之最佳组合).dll
            4. 在 ; Windows: "path1;path2" 下面 的 include_path =  改为
                    include_path = ".;c:php(做为现在的主流开发语言)includes"
        5.  对 [MySQL(和PHP搭配之最佳组合)] 下面进行配置

4. The installation of active perl is very simple. Just follow the instructions and you can install it to c:perl
5. When installing ZendOptimizer, install apache (the most popular WEB server platform on Unix platform) server Turn it off. During the process, you must specify the installation paths of apache (the most popular WEB server platform on the Unix platform) and php (as the current mainstream development language) .


(as the current mainstream development language)info() ?>

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/508556.htmlTechArticle1. Required software environment: 1. apache (the most popular WEB server platform on Unix platform) 2.2 2. active perl 5.8 c:perl 3. php (as the current mainstream development language) 5.1 must be installed in c:php (as the current...
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!