Menu

#81 Cant get past Mod_rewrite error install page

version 0.8
closed
nobody
None
1
2014-12-11
2014-05-05
Anonymous
No

Hello,

I've downloaded the recent 1.0 version and trying to install it on Ubuntu 14.04 with the default LAMP install option. Apache version is 2.4.7 and i saw at one point there was a mod_rewrite bug in versions between 2.2.21 - 2.4.2. Anyways I'm wondering if this bug exists in 2.4.7? I've followed the guide (http://phpipam.net/phpipam-installation-on-debian-6-0-6/) and it seems like everything is setup correctly but cannot get passed the mod_rewrite error page.

Any ideas on if the apache version still has a bug or how to check if it is a bug in apache?

Discussion

1 2 > >> (Page 1 of 2)
  • Anonymous

    Anonymous - 2014-05-05

    I have the same issue. Any suggestions. My mod_rewrite test works, redirecting a page to cnn.com from .htaccess, but the installer just won't let me get past it ...

     
  • Anonymous

    Anonymous - 2014-05-14

    Hi.
    I got same problem: "phpIPAM Mod_rewrite error It seems your Apache is not set up properly to handle URL rewrites."

    Reason of error (in my case): missing .htaccess in web directory where phpipam index.php and config.php are located.

    Why it happened: phpipam-1.0.tar includes .htaccess . After tar xvf phpipam-1.0.tar I moved files by command sudo mv /tmp/phpipam/* /srv/www/phpipam/public_html. It moved all files BUT hidden (.htaccess).

    Solution: use dot instead of asterisk as wildcard character when select files for copying /moving: sudo mv /tmp/phpipam/. /srv/www/phpipam/public_html (read: http://unix.stackexchange.com/questions/89749/cp-hidden-files-with-glob-patterns)

    My environment:
    Linux CentOS 6.5
    PHP 5.5.12
    MySQL 5.1.73

    Below is part of my config for virtual host (hope it will help you as well):

    #########################
    # PHP ipan
    #########################
    <VirtualHost *:80>
        # basic settings #
        ##################
        ServerAdmin admin@test.com
        DocumentRoot "/srv/www/phpipam/public_html"
        ServerName www.testphpipam.test.com
        ServerAlias testphpipam.test.com
    
        ## custom log ##
        ################
        # keep access log file separatelly:
        CustomLog "/srv/www/phpipam/logs/phpipam.access_log" combined
        # keep error log file separatelly:
        ErrorLog "/srv/www/phpipam/logs/phpipam.error_log"
    
        # IF current httpd version is equal or more than 2.3.6:
        <IfVersion >= 2.3.6>
            # we can use rewrite:debug to add error mesages from mod_rewrite to common error file
            # From apache.org: Per-module and per-directory configuration is available in Apache HTTP Server 2.3.6 and later
            # Admin comment: doesn't applicable for our Apache/2.2.15
            LogLevel debug rewrite:debug
        </IfVersion>
        # ELSE :
        <IfVersion < 2.3.6>
            # dump all httpd debug data into error log:
            LogLevel debug
            # separate file for logging mod_rewrite engine processing:
            RewriteLog "/srv/www/phpipam/logs/phpipam.rewrite_log"
            # mod_rewrite verbosity level (level 9 = practically all actions are logged):
            RewriteLogLevel 9
        </IfVersion>
    
        # was required by PHPipam installation manual
        <Directory "/srv/www/phpipam/public_html">
    
            # mod_rewrite settings #
            ########################
            # From Apache.org: By default, mod_rewrite configuration settings from the main server context are not inherited by virtual hosts.
            # To make the main server settings apply to virtual hosts, you must place the following directives in each <VirtualHost> section:
            RewriteEngine On
            RewriteOptions Inherit
            # just to test that mod_rewrite works:
            #RewriteRule (.*) http://www.google.com/
    
            Options Indexes FollowSymLinks
            AllowOverride all
            Order allow,deny
            Allow from all
        </Directory>
    </VirtualHost>
    

    Hope all mentioned above will help you.
    With best regards.

     
  • Anonymous

    Anonymous - 2014-05-16

    same...

     
  • Anonymous

    Anonymous - 2014-05-16

    i'm having the same problem..
    did you solved it?

     
  • Anonymous

    Anonymous - 2014-05-22

    Same issue here upgrading v0.8 to v1.0. Updated the config.php and .htaccess file but upgrade page says always mod_rewrite is not working

     
  • Anonymous

    Anonymous - 2014-05-29

    I was stuck at the Mod_rewrite error too. After looking at the .htaccess, I got to the URL direct http://Server_IP/phpipam/index.php?page=install
    I then manage to complete the installation and everything went well after.

     
  • Anonymous

    Anonymous - 2014-06-01

    I had the same problem using Xampp 3.0.12 on a Windows 7 64 Bit machine and couldn't get phpipam installed because of the mod_rewrite error message. To solve the problem I edited the .htaccess file and added [R] behind all lines containing an index.php statement. For example:

    Before:
    RewriteRule ^login/$ index.php?page=login

    After:
    RewriteRule ^login/$ index.php?page=login [R]

    Try it, I hope it works :-)
    Flo

     
    • Anonymous

      Anonymous - 2014-09-10

      This worked for me! thanks!

       
  • Anonymous

    Anonymous - 2014-06-05

    is it fixed?

     
  • Anonymous

    Anonymous - 2014-06-09

    Hey guys, I found this fix on this today. It's a problem with the directory mod in Apache2... Run "a2dismod dir" and restart Apache2 and it should fix your issue. Although this will break other sites that use the module.

     
  • Anonymous

    Anonymous - 2014-06-13

    I need a fix please

     
  • Anonymous

    Anonymous - 2014-06-17

    need Help, too.......

     
  • timr1972

    timr1972 - 2014-07-02

    ...try changing the URL to http://{your server}/index.php?page=install

     
  • Anonymous

    Anonymous - 2014-07-03

    Same issue here, tried to change the page to:
    http://<servername>/index.php?page=install

    Now I just get a blank page.
    When I look at the source, I can see that there is an error at line 115 (index.php).

    ...

    I changed it to:

    <?php // print _('Loading');?>...

    Next I got an error message at line 131 within index.php
    ..

    I got to the point where I can create the DB, this also shows a lot of errors.
    Even when creating the DB manually including tables and stuff, it still does not work.

     
    • Anonymous

      Anonymous - 2014-11-20

      install php mod gettext

       
  • Anonymous

    Anonymous - 2014-09-04

    I'm whith the following error with instalation of phpipam

    a2enmod rewrite

    Module rewrite already enabled

    but when i open the browser to initiate automatic configurataion

    Mod_rewrite error
    It seems your Apache is not set up properly to handle URL rewrites.

    Anyone can help me with this instalation?
    tks

     
  • Anonymous

    Anonymous - 2014-09-10

    Experienced this issue with Apache 2.4.6 / PHP 5.4.16 on CentOS 7.

    Edited .htaccess and modified:

    RewriteRule ^install/$ index.php?page=install

    to

    RewriteRule ^install/$ index.php?page=install [R]

    This resolved the issue and I was able to complete the install with no further issuers or errors.

    -b

     
  • Anonymous

    Anonymous - 2014-09-17

    please i need a fix.... Ubuntu 14.04

     
  • Anonymous

    Anonymous - 2014-10-15

    Fix needed here. ubuntu 14.04

     
  • Anonymous

    Anonymous - 2014-11-12

    same problem openSUSE 13.2

     
  • Anonymous

    Anonymous - 2014-11-12

    I try all solutions, i found but nothink work.... Please fix it... :(

     
  • Miha Petkovsek

    Miha Petkovsek - 2014-11-12

    Hi, can someone check this solution? If it helps I will dig into it.
    https://sourceforge.net/p/phpipam/support-requests/111/
    brm

     
  • Anonymous

    Anonymous - 2014-11-20

    It's a joke how this project relies on mod_rewrite.

     
    • Miha Petkovsek

      Miha Petkovsek - 2014-11-22

      Hi, agreed. Upcoming 1.1 release moves away from mod_rewrite dependancy, it will be still available as optional. Should be out next week.

       
  • Miha Petkovsek

    Miha Petkovsek - 2014-12-11

    Please use 1.1 where mod_rewrite is optional.

     
1 2 > >> (Page 1 of 2)

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.