Thanks for checking code.
If you compile with the proper HTTPD directory (httpd22 in this case),
Yes, I used httpd22, too. httpd20 and httpd13 was deleted.
No error message in the apache error.log? Apache always says something
when the startup is not successful.
Apache doesn't say any errors in both test#1 and test#2. But startup
messages are shorter than usual in test#2.
test#1
-----
[notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[notice] Digest: generating secret for digest authentication ...
[notice] Digest: done
-----
test#2
-----
[notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
-----
After them I checked httpd log in debug mode.
-----
# httpd -e debug
-----
Apache output below:
-----
[notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[debug] mod_so.c(246): loaded module auth_basic_module
: (Apache standard modules)
[debug] mod_so.c(246): loaded module mod_simple
-----
Apache terminate after 'loaded module mod_simple'.
I just tried on CentOS 32bit, but the result was same.
Hmm... I wonder if there are some problem in my environment.
I use CentOS to compile. The test was performed at Fedora, but the module
was compiled on CentOS.
So, I have to try compiling on Fedora. And I will also try on Ubuntu and
FPC 2.5.x.
Takashi
On Fri, 27 May 2011 08:44:59 +0900, ABorka <fpc-de...@aborka.com> wrote:
...<snip>...
>The error that exists in the ticket is not displayed. Seemingly, start
> of httpd seems to success. However, the process terminate immediately.
>
> Is there another possible cause?
>
> Takashi
If you compile with the proper HTTPD directory (httpd22 in this case),
it should work.
No error message in the apache error.log? Apache always says something
when the startup is not successful.
Your small example library code is working here (Ubuntu 10.10, FPC 2.5.1
SVN), httpd13 and httpd20 directories are deleted.
Compiled with: fpc -Xs -XX -fPIC -omod_simple.so mod_simple.pas
Apache starts, runs, pages are served properly with the mod_simple.so
loaded .
AB
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal