Your HostICan Community  


Go Back   Your HostICan Community > HostICan Web Hosting > Virtual Private Servers (VPS)

Virtual Private Servers (VPS) Need help with your VPS plan on HostICan? Please feel free to ask and we'll give you the answers!

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 10-14-2009, 09:06 PM
Mike08 Mike08 is offline
Junior Member
 
Join Date: Oct 2009
Posts: 6
Question Mod Rewrite is not Load...

And I see without # in my httpd.conf.

PHP Code:
LoadModule rewrite_module     libexec/mod_rewrite.so
LoadModule expires_module     libexec
/mod_expires.so
LoadModule bwlimited_module   libexec
/mod_bwlimited.so
LoadModule bytes_log_module   libexec
/mod_log_bytes.so
LoadModule auth_passthrough_module libexec
/mod_auth_passthrough.so
LoadModule fastcgi_module     libexec
/mod_fastcgi.so
#LoadModule php5_module        libexec/libphp5.so
LoadModule security_module    libexec/mod_security.so

ClearModuleList
AddModule mod_env
.c
AddModule mod_log_config
.c
AddModule mod_mime
.c
AddModule mod_negotiation
.c
AddModule mod_status
.c
AddModule mod_include
.c
AddModule mod_autoindex
.c
AddModule mod_dir
.c
AddModule mod_cgi
.c
AddModule mod_asis
.c
AddModule mod_imap
.c
AddModule mod_actions
.c
AddModule mod_userdir
.c
AddModule mod_alias
.c
AddModule mod_rewrite
.c
AddModule mod_access
.c
AddModule mod_auth
.c
AddModule mod_expires
.c
AddModule mod_so
.c
AddModule mod_setenvif
.c
<IfDefine SSL>
AddModule mod_ssl.c
</IfDefine>
AddModule mod_frontpage.c
AddModule mod_bwlimited
.c
AddModule mod_log_bytes
.c
AddModule mod_auth_passthrough
.c
AddModule mod_fastcgi
.c
#AddModule mod_php5.c
AddModule mod_security.c
Include "/usr/local/apache/conf/mod_security.conf" 
I do a Phpinfo request and I don't see anywhere this module loaded.


Site "www.sektores.com"

Some Help?
Thanks.

Last edited by index; 10-15-2009 at 03:43 AM.
Reply With Quote
  #2  
Old 10-15-2009, 11:24 AM
index's Avatar
index index is offline
Moderator
 
Join Date: Aug 2008
Location: Italy
Posts: 190
Default Re: Mod Rewrite is not Load...

I guess the some modules are statically compiled. You may check the loaded modules via SSH. Type this command:
Code:
httpd -l
Reply With Quote
  #3  
Old 10-15-2009, 06:42 PM
Mike08 Mike08 is offline
Junior Member
 
Join Date: Oct 2009
Posts: 6
Default Re: Mod Rewrite is not Load...

Quote:
Originally Posted by index View Post
I guess the some modules are statically compiled. You may check the loaded modules via SSH. Type this command:
Code:
httpd -l
Thanks for reply Index, but "-l option" don't works
PHP Code:
root@server [~]# httpd -l
usage: /usr/sbin/httpd (start|stop|restart|fullstatus|status|graceful|configtest|help)

start      start httpd
startssl   
start httpd with SSL enabled
stop       
stop httpd
restart    
restart httpd if running by sending a SIGHUP or start if
             
not running
fullstatus 
dump a full status screenrequires lynx and mod_status enabled
status     
dump a short status screenrequires lynx and mod_status enabled
graceful   
- do a graceful restart by sending a SIGUSR1 or start if not running
configtest 
- do a configuration syntax test
help       
this screen 
Reply With Quote
  #4  
Old 10-17-2009, 03:30 PM
DOCENTA's Avatar
DOCENTA DOCENTA is offline
Moderator
 
Join Date: Sep 2007
Posts: 94
Default Re: Mod Rewrite is not Load...

Hello,
Seems the module is loaded as I see in your httpd.conf file.
If you like to be 100% sure follow this steps:

Code:
1. create empty html file : testpage.html
2. add this in your .htaccess file:

RewriteEngine on
RewriteRule testpage\.html http://www.google.com [R]

3. go to http://www.yoursite.com/testpage.html
if it is redirecting to google so it is working fine
__________________
Thanks,

HostICan Rocket Scientist

HostICan Answers | HostICan Newsletter | HostICan Blog | Become a HostICan Affiliate | Create a Support Ticket.

Last edited by DOCENTA; 10-17-2009 at 03:34 PM.
Reply With Quote
  #5  
Old 10-17-2009, 03:32 PM
Liona's Avatar
Liona Liona is offline
Member
 
Join Date: Jan 2009
Location: Buenos Aires
Posts: 78
Default Re: Mod Rewrite is not Load...

The correct way to display the list of Apache modules is as follows:
Code:
/usr/local/apache/bin/httpd -l

Last edited by Liona; 10-19-2009 at 12:23 PM.
Reply With Quote
  #6  
Old 10-19-2009, 11:43 AM
Mike08 Mike08 is offline
Junior Member
 
Join Date: Oct 2009
Posts: 6
Default Re: Mod Rewrite is not Load...

Quote:
Originally Posted by DOCENTA View Post
Hello,
Seems the module is loaded as I see in your httpd.conf file.
If you like to be 100% sure follow this steps:

Code:
1. create empty html file : testpage.html
2. add this in your .htaccess file:

RewriteEngine on
RewriteRule testpage\.html http://www.google.com [R]

3. go to http://www.yoursite.com/testpage.html
if it is redirecting to google so it is working fine
Thanks for your answer, but I did it what Liona tells and mod_rewrite is not loaded

Quote:
Originally Posted by Liona View Post
The correct way to display the list of statically compiled modules is as follows:
Code:
/usr/local/apache/bin/httpd -l
Thanks Liona.This is works
But mod_rewrite is not loaded

PHP Code:
login as: root
root
@server [~]# /usr/local/apache/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_so
.c
  mod_setenvif
.c
  mod_ssl
.c
  mod_frontpage
.c
suexec
enabledvalid wrapper /usr/local/apache/bin/suexec
root
@server [~]
Reply With Quote
  #7  
Old 10-19-2009, 12:22 PM
Liona's Avatar
Liona Liona is offline
Member
 
Join Date: Jan 2009
Location: Buenos Aires
Posts: 78
Default Re: Mod Rewrite is not Load...

Hi Mike, the above command line shows list of Apache modules, but mode_rewrite is not included as Apache module. It's compiled together with Apache. So, to use it, just add following line in .httacces file in website directory:
Code:
RewriteEngine on
Reply With Quote
Reply

Tags
load, mod, rewrite

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 12:59 AM.


Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.

Copyright © 2003 - 2008 HostICan. All Rights Reserved.