Use EF to develop Web applications (10): Configure Apache

Source: Internet
Author: User

Question:There is no precedent for developing Web applications with "easy language. Flying" (EF. However, because the EF Local Development Kit (efndk) has been released, it is not difficult to use C/C ++ to develop an EF class library to support EF in developing web applications. Of course, we can imagine that there are many difficulties to solve. This series of articles is a record of my exploration process and may not be of much value to outsiders. If some netizens are optimistic about it, please wait rationally. Author: liigo. For more information, see http://blog.csdn.net/liigo /. Online messages.

Use EF to develop Web applications (10): Configure Apache

 

Content of this article: Configure Apache to support the FastCGI program developed by "easy language. Flying" (EF), with the help of mod_fcgid.

The main task is to edit and modify the httpd. conf file:

1. loadmodule

Loadmodule fcgid_module modules/mod_fcgid.so

Go to mod_fcgid home to download mod_fcgid.so and place it in the modules subdirectory under the Apache installation directory.

In addition, the mod_fcgid.so to be downloaded here requires the vc2005 Runtime Library, which may not be loaded if not. We recommend that you compile the mod_fcgid.so file by yourself.

2010/8/17 liigo Note: mod_fcgid (author Pan Qingfeng) has become the Apache official mod, http://httpd.apache.org/mod_fcgid/

2. Location

<Location/efcgi>
Addhandler fcgid-script. efcgi. fcgi
Options execcgi
Allow from all
</Location>

This is an important step. Files suffixed with. efcgi and. fcgi under the document root directory (DocumentRoot) have the executable permission of FastCGI. The FastCGI program compiled later will be placed in the efcgi directory.

3. defaultinitenv

<Ifmodule mime_module>
......
Defaultinitenv ef_lib_paths "D:/program files/DyWT/EF/Libs"
......
</Ifmodule>

For "easy language. fastCGI program compiled by EF is an important step. It specifies the value of ef_lib_paths, the system environment variable, the EF program cannot run at all (the Library loading path cannot be found ). Note that ef_lib_paths is invalid for Apache through the interface provided by the operating system.

 

Notice below: online message board

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.