manual doesn't match admin page

Discussion in 'Setting-up protection' started by manishie, Apr 27, 2004.

  1. manishie

    manishie Guest

    hi,

    in the online manual, i'm told that i have four options for protection:
    * mod_rewrite with php_include
    * auto_prepend_file with php_include
    * php_include
    * htpasswd

    with the first being the best.

    on my admin pages, i am presented with the following plugin options:
    * htpasswd
    * htpasswd_shared
    * mod_auth_mysql
    * php_include
    * plugin_template

    i have no idea what to select in the options. i'd like to use mod_rewrite. in the "version info" page, the apache version is "Apache/1.3.27 OpenSSL/0.9.7 (Unix) PHP/4.3.4" and "mod_php4" is one of the loaded modules. thanks.

    mkm
  2. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    Just follow manual. Does it say you to enable "mod_rewrite" plugin to use this protection method? I believe it doesn't. Keep default settings while it is working.

    I recommend you to use aMember CP -> Protect Folders feature.
  3. manishie

    manishie Guest

    okay, i guess i was looking to enable "mod_rewrite" in the wrong place. so now i'm in the project folders area, and mod_rewrite is greyed out. i've got php compiled into apache, so why can't i use it?

    mkm
  4. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    it should display reason - what does it say you?
  5. manishie

    manishie Guest

    (RewriteRule doesn't work in .htaccess files on this server)
  6. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
  7. manishie

    manishie Guest

    from the apache log:

    /usr/local/apache/htdocs/membership/data/tests/mod_rewrite/.htaccess: Invalid command 'RewriteEngine', perhaps mis-spelled or defined by a module not included in the server configuration
  8. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    mod_rewrite is NOT enabled in your Apache web server config.
  9. skippybosco

    skippybosco Guest

    What does it mean if the response you receive is 2-second_file when access the 1.php url?
  10. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    It means that it mod_rewrite works as it should. In this case it magically displays you content of 2.php file when you access 1.php :)
  11. manishie

    manishie Guest

    okay, i've got my server to the point where "mod_rewrite" appears under "loaded modules" in the version info page.

    however, when i run the 1.php url, i get the response "1-first_file", and not "2-second_file" as you indicated should happen.

    and in the protect folders section, the "php_include+mod_rewrite" option is still greyed out, with the message "(RewriteRule doesn't work in .htaccess files on this server)".

    ideas?

    thanks.

    mkm
  12. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    If it happens, it mean that mod_rewrite doesn't work or you did not upload .htaccess file to amember/data/tests/mod_rewrite/ folder.
  13. manishie

    manishie Guest

    .htaccess says:

    <Limit GET POST>
    allow from all
    </Limit>
    RewriteEngine On
    RewriteRule 1\.php 2.php

    i'm not sure if the 1.\php was right, so i changed it to 1.php, but that made no difference.
  14. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    I cannot add anything to my previous message. Just contact your hosting support and ask them why mod_rewrite doesn't work. .htaccess contains no errors, no need to fix it ;))
  15. manishie

    manishie Guest

    solved

    in order to get mod_rewrite to work in the .htaccess file, in httpd.conf, i had to change:

    "AllowOverrides None"

    to:

    "AllowOverrides All".

    it works great now.

    thanks.

    mkm
  16. manishie

    manishie Guest

    solved

    in order to get mod_rewrite to work in the .htaccess file, in httpd.conf, i had to change:

    "AllowOverrides None"

    to:

    "AllowOverrides All".

    it works great now.

    thanks.

    mkm

Share This Page