Uploaded image for project: 'Blesta Core'
  1. Blesta Core
  2. CORE-2686

A mod_rewrite error may erroneously occur during GUI install

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.2.2
    • Fix Version/s: 4.3.0-b2
    • Component/s: None
    • Labels:
      None

      Description

      The following error may be encountered when attempting to install Blesta:

      Mod rewrite is not enabled, or htaccess is not supported by this server. You must disable pretty URL support in Blesta by removing the .htaccess file.

      This occurs either when mod_rewrite is not enabled on the server, or in the case of this task, when Apache MultiViews is enabled on the server. Because the Blesta install URI /install/ does not actually exist, Apache will look for files named install.* and it will find and load install.php, which is the file that displays the mod_rewrite error.

      Blesta has no need to support MultiViews since the framework handles routing, so

      1. Disable Apache MultiViews in the .htaccess file:
        <IfModule mod_negotiation.c>
            Options -MultiViews
        </IfModule>
        

      When installing Blesta 4.2.2 on PHP 7.0.27 I encountered the mod_rewrite error, which says essentially that mod_rewrite is not enabled and that you must delete the .htaccess file to proceed. The problem is that mod_rewrite was enabled.

      I was able to complete installation by renaming the .htaccess file. Once installation via GUI was completed, I restored the .htaccess file back, and pretty URL's worked fine, which confirmed that mod_rewrite was in fact enabled.

      Looking into it, we have had several customers complain about this error.

      It appears that the check we are performing to see if mod_rewrite is enabled may not work properly in some versions of PHP/Apache. We should look into how this check is performed, and update as necessary.

        Activity

          People

          • Assignee:
            tyson Tyson Phillips (Inactive)
            Reporter:
            admin Paul Phillips
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Fix Release Date:
              29/Jun/18

              Time Tracking

              Estimated:
              Original Estimate - Not Specified
              Not Specified
              Remaining:
              Remaining Estimate - 0 minutes
              0m
              Logged:
              Time Spent - 3 hours, 27 minutes
              3h 27m

                Agile