PHP Learning Series: PHP Environment Building (Eclipse + PHP + XAMPP)

Source: Internet
Author: User
Two years ago, in Google App engine (support Python and Java) play, feel good, the results did not expect Google to quit China, Google App Engine deployed on the application needs to turn over the wall to access, the results can be imagined, as it technology enthusiasts , is how disappointed ah!

Recently, want to build their own website to play, in the internet want to find a free cloud platform to deploy my own application, find find Sina Cloud Platform Sina app Engine (http://sae.sina.com.cn/) is also good, Sign up right now. Follow the instructions to deploy two test sites Sina Weibo (http://sinawb2012.sinaapp.com/with some open source project deployment) and your own uploaded website (copy the free template online, test http://sky520.sinaapp.com/only).

Through the two test sites, found that the deployment of an application is relatively simple, you want to develop a website deployment to play. Because just registered, the default only supports the development of PHP language, want to use Java development also have to obtain the invitation code and authentication, this short time is not able to play a PHP, to understand that PHP is also relatively easy to master, the initiation of building PHP environment to play. Here is the PHP environment to build (because the PHP environment can be set up in different ways, the results have been a night to get the environment).

First, go to the next Eclispe php all-in-one full version, which contains PHP versions, Eclipse plug-ins, xdebug and Zend Debugger configuration, save the plugin configuration, unzip can build PHP project to run PHP Script scripts. Zend-eclipse-php-helios-win32-x86_64.zip Download Address: http://downloads.zend.com/pdt/all-in-one/helios/ Zend-eclipse-php-helios-win32-x86_64.zip

Second, to support Web and database development, you have to go to the next integrated development package, XAMPP. XAMPP (Apache+mysql+php+perl) is a powerful built-in XAMPP software station integration package. XAMPP is a version of Apache that is easy to install and contains MySQL, PHP, and Perl. XAMPP is really easy to install and use: Just download, unzip, start.

Finally, set the deployment path for the program. Add XAMPP install to directory D:\xampp; you need to modify the default program path inside D:\xampp\apache\conf\httpd.conf.

At the time of installation, the Apache service default port is 80, which may already be occupied and I will change it to 8888.

DocumentRoot defaults to D:/xampp/htdocs, and Directory defaults to .

Now I want to point to my active Eclipse working directory, if the working directory for Eclipse is F:/php/projectapp, make the following changes.

DocumentRoot and .

If, I f:/php/projectapp the working directory has a Phpapp project, the project root directory has index.php file, then the truth http://localhost:8888/PHPApp/index.php is able to return, but the error , not enough permissions. The following changes can be made:

Put the httpd.conf file in the


Options FollowSymLinks
AllowOverride None
Order Deny,allow
Deny from Deny

Switch


Options FollowSymLinks
AllowOverride None
Order Deny,allow
Deny from Allow

Visit http://localhost:8888/PHPApp/index.php again to access it. The following is the beginning of the PHP program trip, haha!

  • 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.