Jump to content
  • 0

4.2.2 Nginx Installation


Stu

Question

Hi All,

I'm coming back to my blesta project again after a long time away.

We are now on v4.2.2 and my previous method of getting blesta working on Nginx no longer appears to work.

I have removed Blesta's .htaccess file from the Blesta root dir, now I'm redirected to this...
https://mysite.com/blesta/index.php/install

I think the fix for this used to be...

Next, update /lib/init.php and make the following change:

// define("HTACCESS", file_exists(ROOTWEBDIR . ".htaccess"));
define("HTACCESS", true);

but this line no longer appears in /lib/init.php

so is there a new fix for this or is this no longer needed and I need to do something different or am I way off and have missed something else?

 

Thanks all :)

 

 

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 1

The equivalent of the change you mentioned would be to update /core/ServiceProviders/MinphpBridge.php and change:

$htaccess = file_exists($rootWebDir . '.htaccess');

to

$htaccess = true;

That said, I have not tested this with Nginx and am not sure whether this will work for you.

Link to comment
Share on other sites

  • 0
On 6/11/2018 at 1:06 PM, Tyson said:

The equivalent of the change you mentioned would be to update /core/ServiceProviders/MinphpBridge.php and change:


$htaccess = file_exists($rootWebDir . '.htaccess');

to


$htaccess = true;

That said, I have not tested this with Nginx and am not sure whether this will work for you.

This works in Nginx.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...