Hi Ken, Thanks for your reply. Here are some more specifics, and some questions...
> Any time you upgrade Perl, you need to also upgrade some of the XS > modules that you've got installed. In this case, you need to > re-install DBD::mysql. ok. However, I can't figure out for the life of me how to re-install. If I ask information on the module, CPAN tells me it is up-to-date. If I ask it to install it anyway, CPAN says it is up-to-date! And I don't know anyway to uninstall a module via CPAN. So, what do I do? > As for the CGI problem, the 'redefined' warning isn't a problem in > itself. You can ignore it if you like. I'm not sure what to make of > the "locking up" problem, though. Some more data is probably in order. well, really, this is about all I have... for example, I just now turned on my iBook (I am writing this email from it). But, Apache has not started. It is off... although it should have started by itself. If I try to start it from the Web Sharing System Prefs doohickey, it says that its starting up, but that's it, it really doesn't start... it just continues to say that it is starting up. So, I typed "sudo apachectl start" (or restart) at the command line, it says that it is going through my httpd.conf and then even says that it started. However, it has not. Here's the message I got -- Processing config directory: /private/etc/httpd/users Processing config file: /private/etc/httpd/users/pkishor.conf /usr/sbin/apachectl start: httpd started However, it hasn't started, and there is no error in the error_log. In fact, there is no entry for today. So, I type "sudo apachectl configtest" and it told me that the syntax is ok. So I said, "httpd -v" and I got the following -- Server version: Apache/1.3.22 (Darwin) Server built: 11/13/01 03:40:24 Then I said "httpd -V" and I got the following additional junk -- Server's Module Magic Number: 19990320:10 Server compiled with.... -D EAPI -D HAVE_MMAP -D USE_MMAP_SCOREBOARD -D USE_MMAP_FILES -D HAVE_FCNTL_SERIALIZED_ACCEPT -D HAVE_FLOCK_SERIALIZED_ACCEPT -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT -D HTTPD_ROOT="/usr" -D SUEXEC_BIN="/usr/sbin/suexec" -D DEFAULT_PIDLOG="/var/run/httpd.pid" -D DEFAULT_SCOREBOARD="/var/run/httpd.scoreboard" -D DEFAULT_LOCKFILE="/var/run/httpd.lock" -D DEFAULT_XFERLOG="/var/log/httpd/access_log" -D DEFAULT_ERRORLOG="/var/log/httpd/error_log" -D TYPES_CONFIG_FILE="/etc/httpd/mime.types" -D SERVER_CONFIG_FILE="/etc/httpd/httpd.conf" -D ACCESS_CONFIG_FILE="/etc/httpd/access.conf" -D RESOURCE_CONFIG_FILE="/etc/httpd/srm.conf" Then, I commented out the following lines -- LoadModule perl_module libexec/httpd/libperl.so AddModule mod_perl.c and then did "sudo apachectl restart." This time Apache started just fine and %ENV showed me that I am running -- SERVER_SOFTWARE Apache/1.3.22 (Darwin) Then I went back to httpd.conf and uncommented the above two line and redid the "sudo apachectl restart" and it started just fine. Now %ENV tells me I am running -- SERVER_SOFTWARE Apache/1.3.22 (Darwin) mod_perl/1.26 The error_log is clean... here are the last few entries from a few mins ago -- Processing config directory: /private/etc/httpd/users Processing config file: /private/etc/httpd/users/pkishor.conf [Mon Apr 1 20:38:15 2002] [notice] Apache/1.3.22 (Darwin) configured -- resuming normal operations [Mon Apr 1 20:38:15 2002] [notice] Accept mutex: flock (Default: flock) [Mon Apr 1 20:41:07 2002] [notice] SIGHUP received. Attempting to restart Processing config directory: /private/etc/httpd/users Processing config file: /private/etc/httpd/users/pkishor.conf [Mon Apr 1 20:41:08 2002] [notice] Apache/1.3.22 (Darwin) mod_perl/1.26 configured -- resuming normal operations [Mon Apr 1 20:41:08 2002] [notice] Accept mutex: flock (Default: flock) Go figure. Puneet. > > > On Tuesday, April 2, 2002, at 05:33 AM, PK Eidesis wrote: >> Ever since I built and installed Perl561 and installed mod_perl using >> CPAN, >> I have just not had anything work for me predictably. The web server >> locks >> up and doesn't start. It will start only if I comment out the mod_perl >> lines >> in httpd.conf. Then it starts. After that if I uncomment the mod_perl >> lines, >> then it will restart. Go figure. >> >> I always get messages to the effect of... >> >> Subroutine ??? redefined in CGI.pm at line ??? (replace ??? with >> various >> values). >> >> Googling on the above error message actually lead me to the above >> quote. >> >> Now, DBD::mysql has stopped working... no error messages, no results... >> nothing. > > > -Ken >
