PHP-based PHP development environment on Win7

Source: Internet
Author: User
Tags php file upload
PHP-based Win7 PHP development environment construction today redo the win7 system, all the environments are reconfigured? The steps are as follows :? I. download apache, version: httpd-2.2.17-win32-x86-openssl, apache installation is nothing special, the default can be? II. install mysql. version: 5.1. Similarly, it is installed by default? Three, install php, version: php-5.3.5-PHP based Win7 PHP development environment to build

Today, I retried Windows 7 and reconfigured all the environments.

?

The procedure is as follows:

?

I. download apache, version: httpd-2.2.17-win32-x86-openssl, apache installation is nothing special, the default can be

?

II. install mysql. version: 5.1. Similarly, it can be installed by default.

?

III. install php, version: php-5.3.5-Win32-VC6-x86, note: VC9 is specially customized for IIS, VC6 is provided for other WEB service software, such as Apache, I downloaded a zip package.

?

Then the following is the configuration

?

1. find

On windows:; extension_dir = "ext"

Changed:

; On windows:extension_dir = "D:/php/ext"

?

2. add some common library extensions, such as mysql. just remove the preceding scores.

extension=php_curl.dllextension=php_gd2.dllextension=php_mbstring.dllextension=php_mysql.dllextension=php_pdo_mysql.dllextension=php_pdo_odbc.dllextension=php_xmlrpc.dll

?

? 3. configure the PHP Session function

session.save_path = "D:/phpsessiontmp"

?

4. configure the PHP file upload function

upload_tmp_dir = "D:/phpfileuploadtmp

?

5. modify date. timezone. Otherwise, the date part is the us la time by default when phpinfo is executed.

date.timezone = Asia/Shanghai

?

6. enable apache to load conf/extra/httpd-vhosts.conf to set the VM

# Virtual hostsInclude conf/extra/httpd-vhosts.conf

?

7. configure VM conf/extra/httpd-vhosts.conf

 
      DocumentRoot "D:/PHPServer/workspace"    ServerName gm.me    ErrorLog "logs/dummy-host2.break.local-error.log"    CustomLog "logs/dummy-host2.break.local-access.log" common    
  
       AllowOverride None    Options Indexes    Order allow,deny    Allow from all    
  
 

?

8. we should know that the directory for executing the WEB main program on the Apache server by default is Apache2.2/htdocs. Therefore, when your WEB main program directory changes, we need to modify the corresponding Apache configuration.

DocumentRoot "D:/PHPServer/workspace"

?

9. configure apache to support php

LoadModule php5_module "d:/php/php5apache2_2.dll"PHPIniDir "d:/php"AddType application/x-httpd-php .php .html .htm

? Note: If the downloaded php version is incorrect, for example, without thread security, you will find that there is no

php5apache2_2.dll

?

10. The order of the specific index file. because the PHP function is configured, index. php must be preferentially executed.

DirectoryIndex index.php index.html
?

?

?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.