Detailed configuration of PHP integration and development environment WAMP + NetBeans

Source: Internet
Author: User
Tags php development environment netbeans
If you want to build a PHP integrated environment, you need to install Apache, MySQL, PHP, and a development environment (varies from person to person ). This article mainly introduces PHP integration and development environment in detail, and helps PHP beginners step into the PHP world as soon as possible. This article includes: 1. PHP integrated environment-download, install, and configure WAMP 2. PHP development environment-

If you want to build a PHP integrated environment, you need to install Apache, MySQL, PHP, and a development environment (varies from person to person ). This article mainly introduces PHP integration and development environment in detail, and helps PHP beginners step into the PHP world as soon as possible. This article includes: 1. PHP integrated environment-download, install, and configure WAMP 2. PHP development environment-

If you want to build a PHP integrated environment, you need to install Apache, MySQL, PHP, and a development environment (varies from person to person ).

This article mainly introduces PHP integration and development environment in detail, and helps PHP beginners step into the PHP world as soon as possible.

This article includes:

1. PHP integration environment-download, install, and configure WAMP

2. PHP development environment-download and use of NetBeans

This article does not introduce the PHP syntax. If necessary, you can search for it elsewhere or follow-up articles in this series.

PHP Integration Environment -- WAMP

The definition of WAMP given by Baidu encyclopedia is as follows:Apache + Mysql + Perl/PHP/Python in Windows, a group of open-source software commonly used to build dynamic websites or servers are independent programs, however, because it is often used together, it has a higher degree of compatibility and forms a powerful Web application platform.

There are many WAMP integration environments, but they are not the same. This article mainly introduces WampServer.

Download and install WampServer

Official Page: http://www.wampserver.com/en/

You can select your own environment (such as the operating system environment and PHP version). For example, the downloaded version is wampserver2.2e-php5.4.3-httpd2.2.22-mysql5.5.24-32b.

In Windows, wampserver installation is quite simple and is not listed here.

After the installation is successful, the wampserver icon appears in the lower right corner of the desktop. Red indicates that all services are disabled, yellow indicates that some services are disabled, and Green indicates that all services are enabled.

As shown in, the Apache service is started normally.



By default, click Localhost to go to http: // localhost/. the browser will see the following content:


This indicates that WMAPSERVER has been installed.

If you need to change the directory or port, you can enter the Apache directory. If you want to install WMAP on:E: \ WAMP
The Apache configuration file directory is inE: \ WAMP \ bin \ apache \ apache2.2.22 \ conf \ httpd. conf


WampServer Configuration

WAMPServer has configured the basic PHP environment. However, in some special cases, we need to manually configure the PHP environment, such as the HTTP service configuration and SVN service configuration. This article focuses on HTTPS service configuration and SVN service configuration.

HTTPS service configuration

Writing ......

SVN service configuration

In particular, it is necessary to propose the installation and configuration of the SVN service because, after WAMP is installed, the SVN server cannot be directly used and the corresponding configuration is required. The specific configuration is as follows.


If the SVN service needs to be installed on the local machine after WampServer is installed, the necessary software is as follows:

Subversion
TortoiseSVN


Install the Subversion onC:/SVNDirectory, If You Want To implement coexistence of WAMP and SVN, you also need to perform the following steps:

1. SetC:/SVN/binCopy the files mod_authz_svn.so and mod_dav_svn.so in the directory to the following directory:E: \ WAMP \ bin \ apache \ apache2.2.22 \ modules

2. SetC:/SVN/binCopy the files intl3_svn.dll and libdb44.dll in the directory to the following directory:E: \ WAMP \ bin \ apache \ apache2.2.22 \ bin

3. Find the Apache configuration file E: \ WAMP \ bin \ apache \ apache2.2.22 \ conf \ httpd. conf and modify the following content:

#LoadModule dav_module modules/mod_dav.so#LoadModule dav_fs_module modules/mod_dav_fs.so
To:

LoadModule dav_module modules/mod_dav.soLoadModule dav_fs_module modules/mod_dav_fs.soLoadModule dav_svn_module modules/mod_dav_svn.soLoadModule authz_svn_module modules/mod_authz_svn.so

4. Restart the WAMP service.

5. Create a repository directory as follows: E: \ Repository

6. To enable SVN to manage multiple version libraries, create sub-directories under E: \ Repository, such as E: \ Repository \ Project1. The method is as follows:

cd E:\Repositorysvnadmin create E:\Repository\project1
7. After the configuration is complete, go to the configuration file httpd. conf of Apache again, in the following content:

Include "c:/wamp/alias/*"

Add the following content:

 
  DAV svnSVNParentPath  E:\Repository
 
8. Save the file, restart WAMP, and view http: // localhost/svn/project1.

9. This article will not detail the use of SVN.


Summary

Through the general introduction in this article, the PHP runtime environment and development environment have been completed, and in order to control the code version, this article also describes in detail how to install the SVN service under WAMP.

Let's start PHP.

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.