Stu Posted June 7, 2018 Report Posted June 7, 2018 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 :) Quote
1 Tyson Posted June 11, 2018 Report Posted June 11, 2018 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. Colin 1 Quote
0 cloudrck Posted August 19, 2018 Report Posted August 19, 2018 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. Paul 1 Quote
Question
Stu
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 :)
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.