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