[users@httpd] mod_include.so: undefined symbol: ap_escape_html2 Error
After a system upgrade, I'm unable to start the Apache server anymore. Using the following command to start Apache server 'httpd -f /opt/csvn/data/conf/httpd.conf -k start' , I got the following error: httpd: Syntax error on line 20 of /opt/csvn/data/conf/httpd.conf: Cannot load /opt/csvn/lib/modules/mod_include.so into server: /opt/csvn/lib/modules/mod_include.so: undefined symbol: ap_escape_html2 I'm not sure what to do with the undefined symbol: ap_escape_html2 Running on FC5 and httpd-2.2.0-5.1.2. Thanks in advance. Any help is appreciated. Mary Wang
Re: [users@httpd] mod_include.so: undefined symbol: ap_escape_html2 Error
On 01.10.2011 16:17, Wang, Mary Y wrote: > After a system upgrade, I'm unable to start the Apache server anymore. > Using the following command to start Apache server 'httpd -f > /opt/csvn/data/conf/httpd.conf -k start' , I got the following error: > httpd: Syntax error on line 20 of /opt/csvn/data/conf/httpd.conf: Cannot > load /opt/csvn/lib/modules/mod_include.so into server: > /opt/csvn/lib/modules/mod_include.so: undefined symbol: ap_escape_html2 > > I'm not sure what to do with the undefined symbol: ap_escape_html2 > > Running on FC5 and httpd-2.2.0-5.1.2. The function was included in Apache 2.2.12. It is used by mod_include and provided by the Apache core (the httpd binary). So it seems you updated the module, but not the httpd binary itself. Regards, Rainer - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org " from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
Re: [users@httpd] problem with rotatelogs time of day formatting
On 01.10.2011 05:20, Albert Lunde wrote: > The date substitutions are working, but the time of day characters come > out as zeros. An example, and some system information, are quoted below. > ErrorLog "|/usr/local/sbin/rotatelogs -f > /var/log/httpd/error_log_chnuinfow3.%Y-%m-%d-%H_%M_%S.txt 86400" > > [root@chnuinfow3 conf]# ls -1 /var/log/httpd > access_log_chnuinfow3.2011-09-30-00_00_00.txt > access_log_chnuinfow3.2011-10-01-00_00_00.txt > access_log_skipped_chnuinfow3.2011-09-30-00_00_00.txt > access_log_skipped_chnuinfow3.2011-10-01-00_00_00.txt > error_log_chnuinfow3.2011-09-30-00_00_00.txt > error_log_chnuinfow3.2011-10-01-00_00_00.txt The timestamp used for the file names is always the previous point in time where rotation would have happended. You configured a daily rotation pattern (86400 seconds). By default it rotates at midnight in GMT timeone, or using the local timezone if rotatelogs is used with the flag "-l". So I guess either your system runs on GMT, or you used "-l". With 86400 rotation always happens at midnight (GMT or localtimewith -l) and the time 00:00:00 is correct. Note that even the new files created when you start Apache will have the formatted timestamp for the "previous point in time where rotation would have happended", so when using 86400 it would be last midnight (relative to GMT or localtimewhen using -l). Try using a very different interval, like e.g. "90" and observe, whether the files rotate every 90 seconds and now produce more interesting formatted timestamps. Regards, Rainer - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org " from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
Re: [users@httpd] problem with rotatelogs time of day formatting
When you rotate on time interval, rotatelogs names the file not after the time it logged the first msg but from a normalized start of an interval. 24 hour intervals start at midnight On Sep 30, 2011 11:20 PM, "Albert Lunde" wrote: > > I'm trying to set up piped access and error logs, with "rotatelogs", as I'm porting the configuration from Solaris box to a small cluster of Linux VMs running RHEL 5. > > We're trying to use file name patterns like: > > error_log_chnuinfow3.%Y-%m-%d-%H_%M_%S.txt > > The date substitutions are working, but the time of day characters come out as zeros. An example, and some system information, are quoted below. > > I originally was trying to use rotatelogs from the Red Hat httpd RPMs. > > But since they are a version of httpd 2.2.3 with back-ported patches, > I then tried building the newest httpd 2.2.21 from source, off to one side, with static support binaries. > > That's the source of /usr/local/sbin/rotatelogs below. But both versions seem to have the same symptom. > > I wrote a C program to test the system strftime, and that seemed to work as expected, but I suppose the APR library date/time library is what is being used, making that somewhat moot. > > (I'm also aware of logrotate, and the legacy server just stops and starts the server in a nightly job that also rotates the logs in a shell script. Others wanted to do use piped log rotation, > I'm trying to make it work.) > > Any ideas? > > ErrorLog "|/usr/local/sbin/rotatelogs -f /var/log/httpd/error_log_chnuinfow3.%Y-%m-%d-%H_%M_%S.txt 86400" > > [root@chnuinfow3 conf]# ls -1 /var/log/httpd > access_log_chnuinfow3.2011-09-30-00_00_00.txt > access_log_chnuinfow3.2011-10-01-00_00_00.txt > access_log_skipped_chnuinfow3.2011-09-30-00_00_00.txt > access_log_skipped_chnuinfow3.2011-10-01-00_00_00.txt > error_log_chnuinfow3.2011-09-30-00_00_00.txt > error_log_chnuinfow3.2011-10-01-00_00_00.txt > >> [lunde@chnuinfow3 ~]$ rpm -qa | grep httpd >> httpd-devel-2.2.3-45.el5 >> httpd-manual-2.2.3-45.el5 >> system-config-httpd-1.3.3.3-1.el5 >> httpd-2.2.3-45.el5 > > >> [lunde@chnuinfow3 ~]$ uname -a >> Linux chnuinfow3.it.northwestern.edu 2.6.18-238.9.1.el5 #1 SMP Fri Mar 18 12:42:39 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux > > >> [root@chnuinfow3 conf]# /usr/sbin/httpd -V >> Server version: Apache/2.2.3 >> Server built: Dec 7 2010 11:19:58 >> Server's Module Magic Number: 20051115:3 >> Server loaded: APR 1.2.7, APR-Util 1.2.7 >> Compiled using: APR 1.2.7, APR-Util 1.2.7 >> Architecture: 64-bit >> Server MPM: Prefork >> threaded: no >>forked: yes (variable process count) >> Server compiled with >> -D APACHE_MPM_DIR="server/mpm/prefork" >> -D APR_HAS_SENDFILE >> -D APR_HAS_MMAP >> -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled) >> -D APR_USE_SYSVSEM_SERIALIZE >> -D APR_USE_PTHREAD_SERIALIZE >> -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT >> -D APR_HAS_OTHER_CHILD >> -D AP_HAVE_RELIABLE_PIPED_LOGS >> -D DYNAMIC_MODULE_LIMIT=128 >> -D HTTPD_ROOT="/etc/httpd" >> -D SUEXEC_BIN="/usr/sbin/suexec" >> -D DEFAULT_PIDLOG="run/httpd.pid" >> -D DEFAULT_SCOREBOARD="logs/apache_runtime_status" >> -D DEFAULT_LOCKFILE="logs/accept.lock" >> -D DEFAULT_ERRORLOG="logs/error_log" >> -D AP_TYPES_CONFIG_FILE="conf/mime.types" >> -D SERVER_CONFIG_FILE="conf/httpd.conf" > > > Test of the system strftime on a similar pattern seems OK: > >> [lunde@chnuinfow3 ~]$ cat strftime_test.c >> #include >> #include >> #include >> #include >> >> /* gcc -ansi -Wall strftime_test.c -o strftime_test */ >> >> int main (int argc, char** argv) >> { >> >> time_t rawtime; >> struct tm * timeinfo; >> char buffer [80]; >> if(argc<2){ >>printf("# Usage: strftime_test \n"); >>exit(0); >> } >> >> time ( &rawtime ); >> timeinfo = localtime ( &rawtime ); >> >> strftime (buffer,80,argv[1],timeinfo); >> puts (buffer); >> >> return 0; >> } >> >> >> [lunde@chnuinfow3 ~]$ ./strftime_test "%Y-%m-%d-%H_%M_%S" >> 2011-09-30-22_02_12 >> [lunde@chnuinfow3 ~]$ > > > > > -- >Albert Lunde albert-lu...@northwestern.edu > atlu...@panix.com (address for personal mail) > > - > The official User-To-User support forum of the Apache HTTP Server Project. > See http://httpd.apache.org/userslist.html> for more info. > To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org > " from the digest: users-digest-unsubscr...@httpd.apache.org > For additional commands, e-mail: users-h...@httpd.apache.org >
[users@httpd] httpd Will Not Start ....
I'm confused. I issued the following command to start httpd, but no error and informational message displayed. Of course, there is no httpd process. '/opt/csvn/bin/httpd -f /opt/csvn/data/conf/httpd.conf -k start' When I looked at the error log file, the only thing that I saw was a warning message. [Sat Oct 01 06:19:05 2011] [warn] Init: Session Cache is not configured [hint: SSLSessionCache] [Sat Oct 01 06:20:55 2011] [warn] Init: Session Cache is not configured [hint: SSLSessionCache] [Sat Oct 01 06:23:26 2011] [warn] Init: Session Cache is not configured [hint: SSLSessionCache] [Sat Oct 01 06:23:33 2011] [warn] Init: Session Cache is not configured [hint: SSLSessionCache] [Sat Oct 01 06:25:15 2011] [warn] Init: Session Cache is not configured [hint: SSLSessionCache] [Sat Oct 01 06:26:20 2011] [warn] Init: Session Cache is not configured [hint: SSLSessionCache] [Sat Oct 01 09:37:34 2011] [warn] Init: Session Cache is not configured [hint: SSLSessionCache] [Sat Oct 01 09:39:24 2011] [warn] Init: Session Cache is not configured [hint: SSLSessionCache] [Sat Oct 01 09:40:07 2011] [warn] Init: Session Cache is not configured [hint: SSLSessionCache] [Sat Oct 01 09:45:35 2011] [warn] Init: Session Cache is not configured [hint: SSLSessionCache] [Sat Oct 01 11:29:21 2011] [warn] Init: Session Cache is not configured [hint: SSLSessionCache] Does anyone knows what is going on? What can I do to investigate this problem? Thanks for any help. Mary Wang
Re: [users@httpd] httpd Will Not Start ....
On 10/1/2011 1:33 PM, Wang, Mary Y wrote: > I'm confused. > I issued the following command to start httpd, but no error and informational > message > displayed. Of course, there is no httpd process. > > '/opt/csvn/bin/httpd -f /opt/csvn/data/conf/httpd.conf -k start' > > When I looked at the error log file, the only thing that I saw was a warning > message. > [...] > [Sat Oct 01 11:29:21 2011] [warn] Init: Session Cache is not configured [hint: > SSLSessionCache] > > Does anyone knows what is going on? What can I do to investigate this > problem? http://lmgtfy.com/?q=Init%3A+Session+Cache+is+not+configured+%5Bhint%3A+SSLSessionCache%5D - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org " from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
Re: [users@httpd] httpd Will Not Start ....
At 01:55 PM 10/1/2011 -0500, William A. Rowe Jr. wrote: [snip] > Does anyone knows what is going on? What can I do to investigate this problem? http://lmgtfy.com/?q=Init%3A+Session+Cache+is+not+configured+%5Bhint%3A+SSLSessionCache%5D OT maybe ... but what is lmgtfy.com - seems to be a cloaked proxy via godaddy to google cookies. tnx - paul Paul Tired old sys-admin - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org " from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
Re: [users@httpd] httpd Will Not Start ....
> OT maybe ... but what is lmgtfy.com - seems to be a cloaked proxy via > godaddy to google cookies. No, it's a polite way to send asker to flipping google the question. - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org " from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
[users@httpd] has anyone ever used jQuery.validationEngine. ?
sorry this is not apache question, but it seems help is too difficult to get on this jquery plugin. i need some advice, so just shouting, is there anyone who has used this ever? can we talk? thx! - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org " from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
RE: [users@httpd] httpd Will Not Start ....
Thanks for the help. The -e loglevel didn't provide any additional information either. I thought this URL provided some help http://www.gossamer-threads.com/lists/apache/users/298741 and when I used the 'netstat -an | grep LISTEN', I got the following, and I don't see the port 443. [1 17:16 root@cmbrass conf]# netstat -an | grep LISTEN tcp0 0 0.0.0.0:47587 0.0.0.0:* LISTEN tcp0 0 0.0.0.0:199 0.0.0.0:* LISTEN tcp0 0 0.0.0.0:873 0.0.0.0:* LISTEN tcp0 0 0.0.0.0:111 0.0.0.0:* LISTEN tcp0 0 127.0.0.1:631 0.0.0.0:* LISTEN tcp0 0 0.0.0.0:25 0.0.0.0:* LISTEN tcp0 0 :::22 :::* LISTEN unix 2 [ ACC ] STREAM LISTENING 7227 /var/run/dbus/system_bus_socket unix 2 [ ACC ] STREAM LISTENING 8067 /tmp/.X11-unix/X0 unix 2 [ ACC ] STREAM LISTENINGS unix 2 [ ACC ] STREAM LISTENING 8039 /tmp/.gdm_socket unix 2 [ ACC ] STREAM LISTENING 7656 /dev/gpmctls What is interesting about this problem is that I never received the error message that a process has died. Basically, httpd never started. One more thing, I'm not the system admin, is that something like a net service like httpd needs to be turned on somewhere? Here is a portion of my httpd.conf ServerAdmin "ad...@.com" ServerName "xxx.com:443" Listen 443 User csvn Group csvn PidFile "/opt/csvn/data/run/httpd.pid" LoadModule ldap_module lib/modules/mod_ldap.so 7799 /tmp/.font-unix/fs7100 . . . . Any ideas on what I can do next? My head is spinnning. Everything used to work until we have a system upgrade. All the files are the same as before (that was what I was told), except we moved to a new cluster. I'm running on FC5 and httpd-2.2.0-5.1.2. Thanks for any help. Mary - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org " from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
RE: [users@httpd] httpd Will Not Start ....
Oops. The httpd version is Apache/2.2.15. From: Wang, Mary Y Sent: Saturday, October 01, 2011 5:25 PM To: users@httpd.apache.org Subject: RE: [users@httpd] httpd Will Not Start Thanks for the help. The -e loglevel didn't provide any additional information either. I thought this URL provided some help http://www.gossamer-threads.com/lists/apache/users/298741 and when I used the 'netstat -an | grep LISTEN', I got the following, and I don't see the port 443. [1 17:16 root@cmbrass conf]# netstat -an | grep LISTEN tcp0 0 0.0.0.0:47587 0.0.0.0:* LISTEN tcp0 0 0.0.0.0:199 0.0.0.0:* LISTEN tcp0 0 0.0.0.0:873 0.0.0.0:* LISTEN tcp0 0 0.0.0.0:111 0.0.0.0:* LISTEN tcp0 0 127.0.0.1:631 0.0.0.0:* LISTEN tcp0 0 0.0.0.0:25 0.0.0.0:* LISTEN tcp0 0 :::22 :::* LISTEN unix 2 [ ACC ] STREAM LISTENING 7227 /var/run/dbus/system_bus_socket unix 2 [ ACC ] STREAM LISTENING 8067 /tmp/.X11-unix/X0 unix 2 [ ACC ] STREAM LISTENINGS unix 2 [ ACC ] STREAM LISTENING 8039 /tmp/.gdm_socket unix 2 [ ACC ] STREAM LISTENING 7656 /dev/gpmctls What is interesting about this problem is that I never received the error message that a process has died. Basically, httpd never started. One more thing, I'm not the system admin, is that something like a net service like httpd needs to be turned on somewhere? Here is a portion of my httpd.conf ServerAdmin "ad...@.com" ServerName "xxx.com:443" Listen 443 User csvn Group csvn PidFile "/opt/csvn/data/run/httpd.pid" LoadModule ldap_module lib/modules/mod_ldap.so 7799 /tmp/.font-unix/fs7100 . . . . Any ideas on what I can do next? My head is spinnning. Everything used to work until we have a system upgrade. All the files are the same as before (that was what I was told), except we moved to a new cluster. I'm running on FC5 and httpd-2.2.0-5.1.2. Thanks for any help. Mary - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org " from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org " from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
Re: [users@httpd] httpd Will Not Start ....
On 10/1/2011 7:30 PM, Wang, Mary Y wrote: > Oops. The httpd version is Apache/2.2.15. > > Any ideas on what I can do next? My head is spinnning. Everything used to > work until we have a system upgrade. All the files are the same as before > (that was what I was told), except we moved to a new cluster. > I'm running on FC5 and httpd-2.2.0-5.1.2. Presuming you fixed the first problem and added the valid SSLSessionCache directive, and those warnings no longer show up, there's not a lot we can tell you from what you've reported. Note that FC5 is antique, a dinosaur, and nobody should be running it anymore on an outward facing server. You might check if there are more than one ErrorLog that the startup failure messages might be going to. You should be trying to start the server manually (it certainly seems like you are). Try dropping the -k start presuming this is on unix, and try using the httpdctl, apachectl, or apache2ctl script command instead to ensure that all the system settings and environment variables triggered by that script are invoked. (I don't know your install, so I can't tell you the name of your script, but it probably resides in /opt/csvn/bin/). httpd is usually the executable, not the start script. Finally, since there isn't much to go on, you might want to try asking for some assistance on irc.freenode.net, #httpd channel, since there are likely to be a bunch of iterations of asking you for enough details to work out what might be going on with your install. - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org " from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
RE: [users@httpd] httpd Will Not Start ....
Thanks everyone's help. It is working now. Yuppie. You are right, I should not start the server manually. I needed to start another script. Mary -Original Message- From: William A. Rowe Jr. [mailto:wr...@rowe-clan.net] Sent: Saturday, October 01, 2011 6:12 PM To: users@httpd.apache.org; Wang, Mary Y Subject: Re: [users@httpd] httpd Will Not Start On 10/1/2011 7:30 PM, Wang, Mary Y wrote: > Oops. The httpd version is Apache/2.2.15. > > Any ideas on what I can do next? My head is spinnning. Everything used to > work until we have a system upgrade. All the files are the same as before > (that was what I was told), except we moved to a new cluster. > I'm running on FC5 and httpd-2.2.0-5.1.2. Presuming you fixed the first problem and added the valid SSLSessionCache directive, and those warnings no longer show up, there's not a lot we can tell you from what you've reported. Note that FC5 is antique, a dinosaur, and nobody should be running it anymore on an outward facing server. You might check if there are more than one ErrorLog that the startup failure messages might be going to. You should be trying to start the server manually (it certainly seems like you are). Try dropping the -k start presuming this is on unix, and try using the httpdctl, apachectl, or apache2ctl script command instead to ensure that all the system settings and environment variables triggered by that script are invoked. (I don't know your install, so I can't tell you the name of your script, but it probably resides in /opt/csvn/bin/). httpd is usually the executable, not the start script. Finally, since there isn't much to go on, you might want to try asking for some assistance on irc.freenode.net, #httpd channel, since there are likely to be a bunch of iterations of asking you for enough details to work out what might be going on with your install. - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org " from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org