PHP Learning Series: PhP environment setup (eclipse + PHP + XAMPP)

Source: Internet
Author: User

Two years ago, I had a good time playing in Google App Engine (supporting Python and Java). I didn't expect Google to exit China, applications deployed on the Google App Engine need to be accessible through a wall. As a result, you can imagine how disappointing it Technology enthusiasts are!

Recently, I want to create my own website to play games and find a free cloud platform on the Internet to deploy my own applications.Program, Found Sina's cloud platform Sina App Engine (http://sae.sina.com.cn/) is not bad, I immediately registered an account to deploy two test sites Sina Weibo (using some open source projects to deploy the http://sinawb2012.sinaapp.com/) and upload your own website (copy the free templates on the internet, test http://sky520.sinaapp.com/only /).

Through these two test websites, we found that deploying an application is still relatively simple, and we wanted to develop a website for deployment. Because I just registered, it only supports php development by default. If I want to use Java Development, I still need to obtain the invitation code and identity verification. This is not a short time. I also used to play with PHP, I learned that PHP is easy to master, so I started to build a PHP environment. The following describes how to set up the PHP environment (because the PHP environment can be set up in different ways, the environment can be set up only one night after the results are completed ).

 

First, go to the next eclispe PHP all-in-one full version, which contains various PHP versions, Eclipse plug-ins, xdebug, and Zend debugger configurations, saving the plug-in configuration, decompress the package to create a PHP project and run the PHP script. Zend-eclipse-php-helios-win32-x86_64.zip: 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 Kit XAMPP. XAMPP (Apache + MySQL + PHP + Perl) is a powerful software package for building XAMPP software stations. XAMPP is an Apache release that is easy to install and contains MySQL, PHP, and Perl. XAMPP is indeed very easy to install and use: you only need to download, decompress, and start it.

 

Finally, set the deployment path of the program. Add XAMPP to the Directory D: \ XAMPP. Modify the default program path in D: \ XAMPP \ apache \ conf \ httpd. conf.

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

 

The default DocumentRoot value is D:/XAMPP/htdocs,DirectoryThe default value is <directory"D:/XAMPP/htdocs">.

Now I want to point to my active eclipse working directory. If the working directory of eclipse is F:/PHP/projectapp, make the following changes.

DocumentRootAnd<Directory "F:/PHP/projectapp">. <Directory "F:/PHP/projectapp">

 

Assume that I have a phpapp project under the working directory of F:/PHP/projectapp and the index under the root directory of the project. PHP file, then follow the principle http: // localhost: 8888/phpapp/index. PHP is able to return, but an error occurs and the permission is insufficient. Make the following changes:

In the httpd. conf file

<Directory/>
Options followsymlinks
AllowOverride none
Order deny, allow
Deny from deny
</Directory>

Change

<Directory/>
Options followsymlinks
AllowOverride none
Order deny, allow
Deny from allow
</Directory>

 

Access http: // localhost: 8888/phpapp/index. php again. Next we will start the PHP program journey, haha!

 

 

 

 

 

 

Related Article

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.