apxs2

custom apache2 module will not load with error message “Can't locate API module structure”

我只是一个虾纸丫 提交于 2019-12-11 10:09:25
问题 I'm a windows developer but now trying to build a very simple apache2 module on linux using apxs2 tool as described in this article: [http://www.codeproject.com/Articles/491909/Apache-2-x-Modules-In-Cplusplus-Part-1][1] The module is being successfully build but cannot be loaded for some reason. Apache issues following error on restart: "Can't locate API module structure". Now some details. First of all trying to build the module with following command apxs2 -i -a -c mod_pixmongo.cpp It fails

apxs:Error: Command failed with rc=65536

五迷三道 提交于 2019-12-08 19:33:56
问题 Centos 6.4, WHM 11.38.1 I'm having trouble trying to make mod_python work. I'm getting this error apxs:Error: Command failed with rc=65536 I've already tried custom_easyapache_modules . Also tried downloading the tar.gz and ./configure --with-apxs=/usr/local/apache/bin/apxs make && make install I also tried (https://bugzilla.redhat.com/show_bug.cgi?id=465246) to fix /src/connobject.c Always the same message. 回答1: https://code.google.com/p/modwsgi/wiki/InstallationIssues http://www

How can I write an Apache module in C++?

只谈情不闲聊 提交于 2019-12-06 07:03:21
问题 I'd like to write an Apache module in C++. I tried a very barebones module to start: #include "httpd.h" #include "http_core.h" #include "http_protocol.h" #include "http_request.h" static void register_hooks(apr_pool_t *pool); static int example_handler(request_rec *r); extern "C" module example_module; module AP_MODULE_DECLARE_DATA example_module = { STANDARD20_MODULE_STUFF, NULL, NULL, NULL, NULL, NULL, register_hooks }; static void register_hooks(apr_pool_t *pool) { ap_hook_handler(example

How can I write an Apache module in C++?

旧巷老猫 提交于 2019-12-04 12:36:28
I'd like to write an Apache module in C++. I tried a very barebones module to start: #include "httpd.h" #include "http_core.h" #include "http_protocol.h" #include "http_request.h" static void register_hooks(apr_pool_t *pool); static int example_handler(request_rec *r); extern "C" module example_module; module AP_MODULE_DECLARE_DATA example_module = { STANDARD20_MODULE_STUFF, NULL, NULL, NULL, NULL, NULL, register_hooks }; static void register_hooks(apr_pool_t *pool) { ap_hook_handler(example_handler, NULL, NULL, APR_HOOK_LAST); } static int example_handler(request_rec *r) { if (!r->handler ||