I'm having a problem making apache work with
mod_perl.
Short problem description is: when I compile
apache by itself, it works,
but when I compile mod_perl (which builds
apache also) it doesn't work and gives me an error that's on http://www.apache.org/docs/misc/FAQ-D.html#nfslocking
When I am trying to fix the error as it
says on the page, apache is still behaving the same way, that is -- not working
and giving me the same error.
I am using RedHat Linux 7.0
do you know if there is a way to fix that problem ?
..........
In detail description with error log files,
etc:
\/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/
I indicate the start of the logs by the symbols on
the above line
and the end by the symbols on the line below
/\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\
/\ /\ /\
When I compile apache how it's described in the
INSTALL file:
\/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/
\/ \/ \/
./configure
--prefix=/usr/local/apache
make
make install /usr/local/apache/bin/apachectl start and run it ^^^^^^^^^ =======> it
works just fine. <=========
/\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\
/\ /\ /\
When I compile it with mod_perl as it's described
in INSTALL.simple file:
\/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/
\/ \/ \/
% perl Makefile.PL DO_HTTPD=1 USE_APACI=1
APACHE_PREFIX=/usr/local/apache
% make test && make install
/\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\
/\ /\ /\
it stops on make test with the
following:
\/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/
\/ \/ \/
../apache_1.3.12/src/httpd -f
`pwd`/t/conf/httpd.conf -X -d `pwd`/t &
httpd listening on port 8529 will write error_log to: t/logs/error_log letting apache warm up...\c done /usr/bin/perl t/TEST 0 still waiting for server to warm up...............not ok server failed to start! (please examine t/logs/error_log) at t/TEST line 95. make: *** [run_tests] Error 115 /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\
/\ /\ /\
[root@server mod_perl-1.24]# cat t/logs/error_log <================== looking at the log \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/
[notice] Destruction->DESTROY called for $global_object [Sat Oct 14 11:41:15 2000] [warn] [notice] child_init for process 31536, report any problems to [no address given] [Sat Oct 14 11:41:15 2000] [emerg] (22)Invalid
argument: fcntl: F_SETLKW: Error /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\
/\ /\
getting accept lock, exiting! Perhaps you need to use the LockFile directive to place your lock file on a local disk! [notice] child process 31536 terminating [notice] END block called for startup.pl [notice] Destruction->DESTROY called for $global_object [root@server mod_perl-1.24]# make install <================ making install anyway, which looks ok then I run apache
[root@server mod_perl-1.24]#
/usr/local/apache/bin/apachectl start
/usr/local/apache/bin/apachectl start: httpd started <================== looks just fine, but an HTTP request to http://127.0.0.1 fails [root@server mod_perl-1.24]# tail
/usr/local/apache/logs/error_log <================== checking error
log
\/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/ \/
[Sat Oct 14 11:46:34 2000] [emerg] (22)Invalid
argument: fcntl: F_SETLKW: Error
getting accept lock, exiting! Perhaps you need to use the LockFile directive to place your lock file on a local disk! [Sat Oct 14 11:46:34 2000] [emerg] (22)Invalid argument: fcntl: F_SETLKW: Error getting accept lock, exiting! Perhaps you need to use the LockFile directive to place your lock file on a local disk! [Sat Oct 14 11:46:34 2000] [emerg] (22)Invalid argument: fcntl: F_SETLKW: Error getting accept lock, exiting! Perhaps you need to use the LockFile directive to place your lock file on a local disk! [Sat Oct 14 11:46:34 2000] [emerg] (22)Invalid argument: fcntl: F_SETLKW: Error getting accept lock, exiting! Perhaps you need to use the LockFile directive to place your lock file on a local disk! [Sat Oct 14 11:46:34 2000] [emerg] (22)Invalid argument: fcntl: F_SETLKW: Error getting accept lock, exiting! Perhaps you need to use the LockFile directive to place your lock file on a local disk! [Sat Oct 14 11:46:34 2000] [notice] Apache/1.3.12 (Unix) mod_perl/1.24 configure d -- resuming normal operations [Sat Oct 14 11:46:34 2000] [alert] Child 32255 returned a Fatal error... Apache is exiting! /\ /\ /\ /\ /\
/\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\ /\
[root@server logs]# ===========> Checking http://www.apache.org/docs/misc/FAQ-D.html#nfslocking for
the error message
doing what it says to fix the problem, that is
putting
"LockFile /var/run/apache-lock" in httpd.conf
(without the quotes)
re-running apache, and getting the same error ...
.
is there anything else I should try ?
..........
I'm compiling apache as root, and hope that's not
the problem and I don't think it should be ..
I can try compiling it as a user other than root ..
or should I ?
........
thank you,
Dennis
|