I am trying to compile the apache module given here:
http://people.apache.org/~humbedooh/mods/examples/mod_example_1.c
I get the following error:
*mod_example.c:13:1: **error: *
> *unknown type name 'module'*module AP_MODULE_DECLARE_DATA
> example_module =
>
> *^**mod_example.c:15:5: **error: *
>
I'm trying to read POST parameters from an apache c module.
Here's the code I'm using :
/* Include the required headers from httpd */#include
"httpd.h"#include "http_core.h"#include "http_protocol.h"#include
"http_request.h"#include "http_config.h"
#include "apr_strings.h"#include "apr_network_io
I am using apache server version 2.4
I have installed apache to a custom location by specifying --prefix during
configure.
I'm on mac os x mavericks.
I am using apache module written in c. I'm following the tutorials at the
official sitehttp://httpd.apache.org/docs/2.4/developer/modguide.html
Thanks for your reply Sorin.
I changed it to LocationMatch. But i still get the same error.
Can you please help me ?
On Wed, Jul 8, 2015 at 12:24 AM, Sorin Manolache wrote:
> On 2015-07-07 13:58, Prakash Premkumar wrote:
>
>>
>> I added my Set
Thanks a lot Yann. I upgraded to a newer version and the problem is solved
now.
On Wed, Jul 8, 2015 at 4:31 AM, Yann Ylavic wrote:
> On Mon, Jul 6, 2015 at 1:51 PM, Prakash Premkumar
> wrote:
> >
> > I get the following error while trying to compile the module:
> >
I installed Apache 2.4 on Mac os x mavericks and when I started the server
and navigated to URL localhost/. I get the following error.
Forbidden
You don't have permission to access / on this server.
I tried googling and found many posts on the same error. But none of the
solutions helped.
Here'
> On Tue, Jul 7, 2015 at 7:58 AM, Prakash Premkumar
> wrote:
> > You don't have permission to access /asd on this server. Server unable to
> > read htaccess file, denying access to be safe
> >
> > Can you please help me solve this ?
>
>
> What does the error_log say?
>
> --
> Eric Covener
> cove...@gmail.com
>
er example_module
>
>
Can you please help me fix this ?
On Wed, Jul 8, 2015 at 6:10 PM, Eric Covener wrote:
> On Wed, Jul 8, 2015 at 8:31 AM, Prakash Premkumar
> wrote:
> > The error log says
> >
> > (13)Permission denied: [client ::1:50441] AH00035: access to
Hi, I am writing a simple apache module following the docs in
https://httpd.apache.org/docs/2.4/developer/modguide.html#snippets
Here's the module code:
http://pastebin.com/T1TMfLgC
Here's my httpd.conf file:
http://pastebin.com/aZBWyNve
When I access any URL like localhost/asd
I get the follo
(!r->handler || strcmp(r->handler, "example-handler")) return
> (DECLINED);
>
> You might try:
>
> SetHandler example-handler
>
> Seems like the name from LoadModule is the symbol name in the .so, and used
> to reference the module, not any code within the
Hi,
I'm trying to call sqlite function from my apache module.
The source code for the module can be found here:
http://pastebin.com/zkbTf03J
Here's my httpd.conf file :
http://pastebin.com/Crs9Jqua
I created a library from sqlite using libtool and I am compiling the module
as follows:
sudo ~/D
41 PM, Dirk-Willem van Gulik wrote:
> On 13 Jul 2015, at 10:21, Prakash Premkumar
> wrote:
> > I'm trying to call sqlite function from my apache module.
> >
> > The source code for the module can be found here:
> > http://pastebin.com/zkbTf03J
> ..
> &g
Can someone kindly help me with this ?
On Mon, Jul 13, 2015 at 3:41 PM, Prakash Premkumar
wrote:
> Thanks for your reply Dirk,
>
> I made the changes you specified :
>
> Here's the source code for the new module :
> http://pastebin.com/q4KQfhBQ
>
> It gets only t
Thanks a lot Mark and Eric
I'm linking statically.
I compiled the sqlite library with libtool by specifying the -static option.
My path for the UUID has both static and dynamic libraries.
The UUID library alone works when compiled with the apache module.
It's the sqlite library which causing th
Thanks a lot dirkx.
My current working directory was not writable. It's working now :)
Thanks a lot :)
On Mon, Jul 13, 2015 at 9:51 PM, wrote:
>
> >char *zErrMsg;
> >rc = sqlite3_open("a.db", &db);
> >if (rc) {
>
> Besides the faulty error trapping in the other mail - it just occurr
15 matches
Mail list logo