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
- 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
Field | Original Value | New Value |
---|---|---|
Sprint | 4.3.0 Sprint 9 [ 60 ] |
Assignee | Jonathan Reissmueller [ jonathan ] |
Status | Open [ 1 ] | In Progress [ 3 ] |
Remaining Estimate | 0 minutes [ 0 ] | |
Time Spent | 1 hour, 12 minutes [ 4320 ] | |
Worklog Id | 11170 [ 11170 ] |
Time Spent | 1 hour, 12 minutes [ 4320 ] | 1 hour, 58 minutes [ 7080 ] |
Worklog Id | 11175 [ 11175 ] |
Sprint | 4.3.0 Sprint 9 [ 60 ] | 4.3.0 Sprint 9, 4.3.0 Sprint 10 [ 60, 61 ] |
Rank | Ranked higher |
Fix Version/s | 4.3.0-b2 [ 11100 ] |
Sprint | 4.3.0 Sprint 9, 4.3.0 Sprint 10 [ 60, 61 ] | 4.3.0 Sprint 9, 4.3.0 Sprint 10, 4.3.0 Sprint 11 [ 60, 61, 62 ] |
Rank | Ranked higher |
Fix Version/s | 4.3.0-b1 [ 11019 ] |
Time Spent | 1 hour, 58 minutes [ 7080 ] | 3 hours, 14 minutes [ 11640 ] |
Worklog Id | 11269 [ 11269 ] |
Description |
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. |
The following error may be encountered when attempting to install Blesta:
{quote} 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. {quote} This occurs either when mod_rewrite is not enabled on the server, or in the case of this task, when [Apache MultiViews|httpd.apache.org/docs/current/mod/mod_negotiation.html#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 # Disable Apache MultiViews in the .htaccess file: {code} <IfModule mod_negotiation.c> Options -MultiViews </IfModule> {code} ---- 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. |
Status | In Progress [ 3 ] | In Review [ 5 ] |
Resolution | Fixed [ 1 ] |
Time Spent | 3 hours, 14 minutes [ 11640 ] | 3 hours, 27 minutes [ 12420 ] |
Worklog Id | 11270 [ 11270 ] |
Assignee | Jonathan Reissmueller [ jonathan ] | Tyson Phillips [ tyson ] |
Status | In Review [ 5 ] | Closed [ 6 ] |