Phpstudy Configuration virtual host + pseudo static

Source: Internet
Author: User

Phpstudy is a local debugging environment that integrates the latest apache+php+mysql+phpmyadmin+zendoptimizer.

The latest version:phpstudy Simplified Chinese version of the 2011 final version of this to pchome download

1, installation

Installation is very simple, do not repeat it;

2, configure the virtual host

left Click on the small icon in the Tray, the pop-up menu bar select "Site Management", will jump out of a dialog box. Depending on the prompts in the dialog box, first copy the configuration example above to the input box below, then modify the content and click Save.

3, restart Apache, set to complete.
Of course, through the domain name access also need to bind the domain name to the server IP, but since it is a local test, then only need to modify the local hosts on the line.
For example, the domain name that you just configured for the virtual host is: www.hjwsky.com, then use Notepad to open the C:\Windows\System32\drivers\etc\hosts, and then change one line to enter 127.0.0.1 Www.hjwsky.com, remember that there is a space between the IP address and the domain name. PS: In this way, even if you use www.baidu.com as your test domain can also be, but since it is a local environment, others can not access to your site through domain name, only you can access the local.

4, at this point, you should be able to access your Web site through the browser. However, to support pseudo static, you need to do some configuration.
Still is left-click Phpstudy tray icon, select "Profile" → "httpd-conf", Notepad will automatically open the file. Then ctrl+f Open the Find dialog box, enter AllowOverride, you will find after the default is None, change it to all, should be more than one, modify two on it, one of your site directory, such as mine is D:\wwwroot

5, restart Apache again, now in your site to join. Htacess Rewrite rules file, you can successfully pseudo static.

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.