so, what would you do? thanks for the help. I really appreciate it. jim
On Fri, May 20, 2016 at 3:33 PM, Scott Birl <sb...@temple.edu> wrote: > Read the error more carefully: Invalid command 'LoadModule' > > It's not complaining about missing modules, it's complaining about the > Apache directive itself "LoadModule", and now I see why... > Your output here differs from your earlier output > > Most recent post: > > mktpricing:/app/ip/apache_1.3.37/bin % httpd -l > Compiled-in modules: > http_core.c > mod_env.c > mod_log_config.c > mod_mime.c > mod_negotiation.c > mod_status.c > mod_include.c > mod_autoindex.c > mod_dir.c > mod_cgi.c > mod_asis.c > mod_imap.c > mod_actions.c > mod_userdir.c > mod_alias.c > mod_access.c > mod_auth.c > mod_setenvif.c > suexec: disabled; invalid wrapper > /app/ip/apache_1.3.37/bin/suexec > > Earlier post: > mktpricing:/etc/apache % /usr/apache2/bin/apachectl -l > Compiled in modules: > core.c > prefork.c > http_core.c > mod_so.c > > That's 2 different Apaches you've mentioned (oh ... earlier you used 2.0, > this top one is 1.3) > > > mod_so needs to be compiled in (only Apache 1.3.37) to make use of dynamic > modules. > > > > > > > > > > From: james pruett [mailto:gpscru...@gmail.com] > Sent: Friday, May 20, 2016 4:21 PM > To: users@httpd.apache.org > Subject: Re: [users@httpd] old solaris box (but heavily used) > > It can't find it. I tried all of these one at a time, and they all error > as shown > > -----httpd.conf------------------- > # Example: > # LoadModule foo_module libexec/mod_foo.so > LoadModule rewrite_module libexec/apache2/mod_rewrite.so > LoadModule rewrite_module libexec/mod_rewrite.so > LoadModule rewrite_module modules/mod_rewrite.so > LoadModule rewrite_module /usr/apache2/libexec/mod_rewrite.so > > -----------error it gave------------- > > \u@\h:\w>./apachectl start > Syntax error on line 205 of /app/ip/apache_1.3.37/conf/httpd.conf: > Invalid command 'LoadModule', perhaps mis-spelled or defined by a module > not included in the server configuration > ./apachectl start: httpd could not be started > > -----------more info. Not sure if useful...---------------- > > mktpricing:/app/ip/apache_1.3.37/bin % httpd -l > Compiled-in modules: > http_core.c > mod_env.c > mod_log_config.c > mod_mime.c > mod_negotiation.c > mod_status.c > mod_include.c > mod_autoindex.c > mod_dir.c > mod_cgi.c > mod_asis.c > mod_imap.c > mod_actions.c > mod_userdir.c > mod_alias.c > mod_access.c > mod_auth.c > mod_setenvif.c > suexec: disabled; invalid wrapper /app/ip/apache_1.3.37/bin/suexec > > > Thanks for helping! > Jim > > > > > On Fri, May 20, 2016 at 2:01 PM, Scott Birl <sb...@temple.edu> wrote: > It should be similar to the grep example you had earlier, so: > LoadModule rewrite_module libexec/mod_rewrite.so > > > > > > > From: james pruett [mailto:gpscru...@gmail.com] > Sent: Friday, May 20, 2016 1:57 PM > Cc: users@httpd.apache.org > Subject: Re: [users@httpd] old solaris box (but heavily used) > > Thanks for continued help! > > Do I add this or this? > LoadModule rewrite_module modules/mod_rewrite.so > LoadModule rewrite_module libexec/mod_rewrite.so > > > > ----------------mod_rewrite.so exists in both places > already----------------------- > > mktpricing:/usr % find -L apach* -name mod_rewrite.so | xargs ls -lrt > -r-xr-xr-x 1 root bin 68320 Feb 26 2014 > apache/libexec/mod_rewrite.so > -r-xr-xr-x 1 root bin 61272 Sep 24 2014 > apache2/libexec/mod_rewrite.so > > > > > > > On Fri, May 20, 2016 at 11:33 AM, Scott Birl <sb...@temple.edu> wrote: > James: > > https://httpd.apache.org/docs/2.0/mod/mod_alias.html#redirect > > mod_alias for Redirect or RedirectMatch > > And since you have dynamic loading of modules enabled, yes, you can "turn > on" the alias module without the need of re-compiling Apache from scratch. > > > > From: james pruett [mailto:gpscru...@gmail.com] > Sent: Thursday, May 19, 2016 12:03 PM > To: users@httpd.apache.org > Subject: [users@httpd] old solaris box (but heavily used) > > Hi, > > My boss wants us to provide a redirect page for use during > site-maintanance. > > I assume this means I need to add mod_rewrite. > > Q:Can I add mod_rewrite to my server without re-compiling? > > Thanks for any leads. > I really appreciate it. I usually tip if that is an option. I insist! > Jim Pruett > > > These are my notes so far...... > > > ---------------Solaris uses libexec, not modules > directory----------------- > > % grep ^LoadModule /etc/apache2/httpd.conf-example | grep rewrite > LoadModule rewrite_module libexec/mod_rewrite.so > > ---------to load modules----apache extension tool---------------- > > mktpricing:/usr % find apache* -name apxs > apache/bin/apxs > apache2/bin/apxs > > > > --------my setup-------------------- > > > mktpricing:/etc/apache % uname -a > SunOS mktpricing 5.10 Generic_150400-20 sun4v sparc sun4v > > > mktpricing:/etc/apache % /usr/apache2/bin/apachectl -l > Compiled in modules: > core.c > prefork.c > http_core.c > mod_so.c > > mktpricing:/etc/apache % /usr/apache2/bin/apachectl -V > Server version: Apache/2.0.63 > Server built: Sep 15 2014 10:00:47 > Server's Module Magic Number: 20020903:13 > Server loaded: APR 0.9.17, APR-UTIL 0.9.15 > Compiled using: APR 0.9.17, APR-UTIL 0.9.15 > Architecture: 32-bit > Server compiled with.... > -D APACHE_MPM_DIR="server/mpm/prefork" > -D APR_HAS_MMAP > -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled) > -D APR_USE_FCNTL_SERIALIZE > -D APR_USE_PTHREAD_SERIALIZE > -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT > -D APR_HAS_OTHER_CHILD > -D AP_HAVE_RELIABLE_PIPED_LOGS > -D HTTPD_ROOT="/usr/apache2" > -D SUEXEC_BIN="/usr/apache2/bin/suexec" > -D DEFAULT_PIDLOG="/var/run/apache2/httpd.pid" > -D DEFAULT_SCOREBOARD="logs/apache_runtime_status" > -D DEFAULT_LOCKFILE="/var/run/apache2/accept.lock" > -D DEFAULT_ERRORLOG="logs/error_log" > -D AP_TYPES_CONFIG_FILE="/etc/apache2/mime.types" > -D SERVER_CONFIG_FILE="/etc/apache2/httpd.conf" > > > > >