Use PHP to set up a Web site in Windows Azure Web service

Source: Internet
Author: User
Keywords Php azure azure

Use PHP to set up a Web site in Windows http://www.aliyun.com/zixun/aggregation/13357.html ">azure Web service, or to compose a Web application, except Windows Azure Web services are already ready for the PHP execution environment, there are situations where you might want to develop or use a PHP expansion kit (PHP Extensions) that someone else has developed, for example, to use Memcache for a cache, many people will use this on pec++l Memcache extension. Want to use PHP extensions just make some adjustments in the background of Windows Azure Web service. The following is memcached extension as a demonstration:

1. Be particularly aware when obtaining PHP extension, because Windows Azure Web service is based on Windows Server and IIS, so the PHP extension you want to use must be compiled as a version of Windows (that is,. dll file), the Windows Azure Web site service is currently performing the correct version (and is non thread safe) compiled through VC9 (Visual C + + 2008), as for the version of 32-bit or 64-bit, PHP, Also depends on your website service settings to use which environment.

In the background of Windows Azure Web site Settings, each environment to confirm the setting why

2. Through FTP or other deployment you already use, create a bin folder under the root directory (sites\wwwroot) of the Web site (this name can be set itself, not necessarily bin), and then put the Php_memcache.dll file in sites\ Wwwroot\bin\ directory.

3. Next, in the Windows Azure Web site service Management Interface Settings page, add a php_extensions setting in the application settings, then the value is set to Bin\php_memcache.dll (if there are multiple EXTENSIONS, separated by commas) are as follows:

Php_extensions Set

4. After the storage change, your PHP website can use php_memcache.dll this extension function.

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.