Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

osTicket v1.10 (stable) and Maintenance Release v1.9.15 are now available! Go get it now

invalid redirection setup on install - SOLUTION

a logn time (as many issues) bug now solved when real path are away of root web server:

https://github.com/osTicket/osTicket/issues/1296 of course "developers" (what?) dont know what are a "aliasing" so i posted for info:  https://httpd.apache.org/docs/2.4/mod/mod_alias.html

PROBLEM DESCRIPTION: when use aliasing in server for PROFESSIONAL setup (real path are away of root web server), the call to http://server/osticket/setup fails and redirect to http://server/setup instead

SOLUTION HERE: the following chnages solve the situation

diff --git a/bootstrap.php b/bootstrap.php
index e65a096..fa5028b 100644
--- a/bootstrap.php
+++ b/bootstrap.php
@@ -136,7 +136,7 @@ class Bootstrap {
                 Http::response(500,
                     'Please rename config file include/settings.php to include/ost-config.php to continue!');
         } elseif(file_exists(ROOT_DIR.'setup/'))
-            Http::redirect(ROOT_PATH.'setup/');
+            Http::redirect($_SERVER['SERVER_ADDR'].'/'.$_SERVER['
REQUEST_URI'].'/setup/');
 
         if(!$configfile || !file_exists($configfile))
             Http::response(500,'<b>Error loading settings. Contact admin.</b>');

Tagged:

Comments

  • From linked thread:
    User runs unsupport webserver: lighttpd.

    Closing thread.
This discussion has been closed.