You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by james pruett <gp...@gmail.com> on 2016/05/19 16:03:08 UTC

[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"

Re: [users@httpd] old solaris box (but heavily used)

Posted by james pruett <gp...@gmail.com>.
quick reply. I got taken off this task for now, but I plan on compiling 2.4.
Thanks for the help guys!
Jim


On Fri, May 20, 2016 at 5:40 PM, Nick Kew <ni...@webthing.com> wrote:

> On Thu, 2016-05-19 at 11:03 -0500, james pruett wrote:
> > 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.
>
> Nothing remotely so complex!
>
> Just put your maintenance page somewhere, and start the
> server with -f pointing to a trivial config that just serves
> the page in response to everything.
>
> Or set it as a FallbackResource or ErrorDocument, and
> suppress your regular contents while under maintenance.
> Useful if you want to continue serving some vhosts
> while taking others out.
>
> --
> Nick Kew
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

Re: [users@httpd] old solaris box (but heavily used)

Posted by Nick Kew <ni...@webthing.com>.
On Thu, 2016-05-19 at 11:03 -0500, james pruett wrote:
> 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.

Nothing remotely so complex!

Just put your maintenance page somewhere, and start the
server with -f pointing to a trivial config that just serves
the page in response to everything.

Or set it as a FallbackResource or ErrorDocument, and
suppress your regular contents while under maintenance.
Useful if you want to continue serving some vhosts
while taking others out.

-- 
Nick Kew



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


RE: [users@httpd] old solaris box (but heavily used)

Posted by Scott Birl <sb...@temple.edu>.
  
Well (as my last email for today), I would stick to the Apache 2.0 instance that you have.

Use your "LoadModule" command in that (Apache 2.0) config file -- and make sure it's mod_alias.so that you are loading, not mod_rewrite.so (although that doesnt hurt to have).
Test the configuration via: apachectl configtest
And if the syntax checks out OK: apachectl graceful
  
  
  



From: james pruett [mailto:gpscruise@gmail.com] 
Sent: Friday, May 20, 2016 4:41 PM
To: users@httpd.apache.org
Subject: Re: [users@httpd] old solaris box (but heavily used)

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:gpscruise@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:gpscruise@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:gpscruise@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"
 
 
 


Re: [users@httpd] old solaris box (but heavily used)

Posted by Yehuda Katz <ye...@ymkatz.net>.
Honestly - since you asked such an open-ended question: since you would
have to recompile, upgrade to a more recent version.
Is this machine also SunOS 5.10? I think you should be able to go all the
way up to 2.4.

- Y

On Fri, May 20, 2016 at 4:40 PM, james pruett <gp...@gmail.com> wrote:

> 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:gpscruise@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:gpscruise@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:gpscruise@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"
>>
>>
>>
>>
>>
>

Re: [users@httpd] old solaris box (but heavily used)

Posted by james pruett <gp...@gmail.com>.
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:gpscruise@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:gpscruise@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:gpscruise@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"
>
>
>
>
>

RE: [users@httpd] old solaris box (but heavily used)

Posted by Scott Birl <sb...@temple.edu>.
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:gpscruise@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:gpscruise@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:gpscruise@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"
 
 
 


Re: [users@httpd] old solaris box (but heavily used)

Posted by Yehuda Katz <ye...@ymkatz.net>.
Your original email said you were using HTTPD 2.0.63. Your last email says
you are using HTTPD 1.3.37.
In 1.3 you needed to have mod_so loaded in order to use LoadModule which
would require recompiling since you don't already have it.

- Y

On Fri, May 20, 2016 at 4:20 PM, james pruett <gp...@gmail.com> wrote:

> 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:gpscruise@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:gpscruise@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"
>>
>>
>>
>>
>>
>

Re: [users@httpd] old solaris box (but heavily used)

Posted by james pruett <gp...@gmail.com>.
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:gpscruise@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:gpscruise@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"
>
>
>
>
>

RE: [users@httpd] old solaris box (but heavily used)

Posted by Scott Birl <sb...@temple.edu>.
It should be similar to the grep example you had earlier, so:
LoadModule rewrite_module libexec/mod_rewrite.so
  
  
  
  
  

From: james pruett [mailto:gpscruise@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:gpscruise@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"
 
 
 


Re: [users@httpd] old solaris box (but heavily used)

Posted by james pruett <gp...@gmail.com>.
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:gpscruise@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"
>
>
>
>
>
>
>

RE: [users@httpd] old solaris box (but heavily used)

Posted by Scott Birl <sb...@temple.edu>.
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:gpscruise@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"




Re: [users@httpd] Fwd: old solaris box (but heavily used)

Posted by Yehuda Katz <ye...@ymkatz.net>.
If you have the correct mod_rewrite.so file available you don't need to
compile anything.
If you need to make changes to the server configuration, you will need to
restart the server process.
If you are making the rewrite changes in an htaccess file, you don't need
to restart anything (as long as htaccess is enabled).

I am not so familiar with 2.0 - I don't have any systems left where I can
test things (we retired our last SunOS 5 system last summer) - so I can't
give you more specifics specifically tested on 2.0.

- Y

On Fri, May 20, 2016 at 12:22 PM, james pruett <gp...@gmail.com> wrote:

> Hi,
> How do I provide a redirect page during site maintenance?
>
> Is anyone available for some help?
>
> Thanks
> Jim Pruett
>
>

[users@httpd] Fwd: old solaris box (but heavily used)

Posted by james pruett <gp...@gmail.com>.
Hi,
How do I provide a redirect page during site maintenance?

Is anyone available for some help?

Thanks
Jim Pruett