Web Hosting Talk







View Full Version : Please help me installing mod_rewrite


Erich
11-19-2001, 12:17 PM
I have apache 1.3.20 so mod_rewrite should be already there? But it isn't activated as I can't use it through htaccess, it gives me a server error.

Could someone help me installing it? I can login through ssh, go through the directories, open and edit a file with pico or something, but that's it.

My hosting guy left me as he started into a job, so looks like I need to do this on my own.

I'd need to install webalizer as well.

I'd be willing to pay for it through paypal if someone could guide me through it on ICQ on a apache-for-dummies basis ("What do you see now... type this now...")

I could also need another virtual account in addition to my server, with about 500MB space/10 GB traffic and over GB <$2.5, php, perl and mod_rewrite and stats including referers, and 16 domains with one ftp account for all (domains in folders). ADULT.

Perhaps we could combine this (you guide me through those webalizer/mod_rewrite on my server and I get that virtual account with you, should be =< $30/month)

Send me a PM please or let me know here.

Erich
11-19-2001, 12:27 PM
It's Linux if that is important to know, not FreeBSD or something, don't know which Linux flavor though but that shouldn't make a difference in this case?

The Prohacker
11-19-2001, 01:29 PM
Hmm.. it prolly needs to be uncommented from your httpd.conf, if you want, email me the httpd.conf to webmaster@virix.com.kg And I'll see what I can do....

Erich
11-19-2001, 03:06 PM
I looked through httpd.conf two times but there is not mentioning of mod_rewrite or anything close to that anywhere. Also, srm.conf and access. conf are both commented out and empty, it only includes vhosts.conf, so everything should be in httpd.conf.

That means mod_rewrite it hasn't been compiled into Apache or something like that I assume?

bitserve
11-21-2001, 01:49 AM
Find your httpd binary and run it with the -l parameter. For example:

/usr/local/apache/bin/httpd -l

If it shows that mod_so.c is compiled in, then you your apache is compiled to support dynamic shared objects and you don't need mod_rewrite compiled into apache. You just need to install mod_rewrite (using apxs) and load it (in your httpd.conf file).

Erich
11-21-2001, 05:19 PM
Thanks a lot. What I get is this

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
mod_php4.c
suexec: disabled; invalid wrapper /usr/local/apache/bin/suexec

Any further ideas? Looks like id DOES need to be compiled huh?

comphost
11-22-2001, 03:33 AM
Your httpd will need to be recompiled

I am pretty good at tweaking apache but aside
from the DSO crap everyone abides to, I compiling statically
for top performance. Here is a nice config file you may look at
if you are interested in learning.

CC="gcc" OPTIM="-O2" CFLAGS="-DDYNAMIC_MODULE_LIMIT=0 -DHARD_SERVER_LIMIT=2048" \
./configure --with-layout=config.aeanetwork:AEANetwork\
--enable-module=setenvif --enable-module=mime_magic \
--enable-module=negotiation --enable-module=userdir \
--enable-module=auth --enable-module=asis \
--enable-module=mime --enable-module=env \
--enable-module=actions --enable-module=cgi \
--enable-module=include --enable-module=log_config \
--enable-module=rewrite --enable-module=info \
--enable-module=dir --disable-module=speling \
--disable-module=proxy --enable-module=headers \
--enable-module=cern_meta \
--enable-module=expires
--enable-module=access --enable-module=status \
--enable-module=alias --enable-module=digest \
--enable-module=autoindex --disable-module=proxy \
--enable-module=log_referer --enable-module=rewrite \
--activate-module=src/modules/php4/libphp4.a \
--enable-suexec --suexec-docroot=/usr/home/ \