PHP 開發環境搭建

來源:互聯網
上載者:User

標籤:

1. PHP

  (1) download PHP and extra the zip file to the folder “C:\tools\php”

  (2) add the path “;C:\tools\php” to end of the windows environment variables “Path”.

  (3) copy file “php.ini-production” and rename “php.ini”

  (4) open php.ini  file, do this changes : 

      display_errors = On      max_execution_time = 0      memory_limit = 500M       log_errors = On       register_globals = Off      extension_dir = "ext"      extension=php_gd2.dll      extension=php_mbstring.dll      extension=php_oci8_11g.dll      extension=php_openssl.dll      extension=php_pdo_oci.dll

2. Apache Http Server

  (1) Double-Click the file httpd-2.2.21-win32-x86-openssl-0.9.8r.msi ->

    Next -> I accept the terms in the license agreement ->

    Next -> only for the Current User ->

    Next -> Custom ->

    Next -> Click the” Apache Http Server 2.2.21” , chose “This feature, and all subfeatures, will be installed on local hard drive” and chose apache root folder : “C:\tools\Apache2.2.21” ->

    Install -> Finish

   (2) Go to path "C:/tools/Apache2.2.21/conf", open file "httpd.conf", do below changes

    [1] Under “#LoadModule vhost_alias_module modules/mod_vhost_alias.so” , add this words: 

      LoadModule php5_module "C:/tools/php /php5apache2_2.dll"      AddType application/x-httpd-php .php      AddType application/x-httpd-php-source .phps      PHPIniDir "C:/tools/php "

    [2] <IfModule dir_module>

      DirectoryIndex index.php index.html

      </IfModule>

    [3] Go to the folder “C:\tools\Apache2.2.21\htdocs” 

      create file "index.php" with content below : 

<?php   phpinfo(); ?>

    [4] Go to folder "C:/tools/Apache2.2.21/bin", click "httpd.exe", and enter "localhost:8080/index.php" to browser, success info will show as below :

 

PHP 開發環境搭建

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.