Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Cannot install the software #162

Open
NotePortal338 opened this issue May 28, 2021 · 3 comments
Open

[Bug] Cannot install the software #162

NotePortal338 opened this issue May 28, 2021 · 3 comments
Labels

Comments

@NotePortal338
Copy link

It gives me this error
image

@thinkverse thinkverse changed the title Cant install the software [Bug] Cannot install the software Aug 17, 2021
@thinkverse thinkverse added the bug label Aug 17, 2021
@thinkverse
Copy link
Collaborator

Thank you for reporting this issue, this seems to be an issue related to Chrome and has been reported earlier.
As mentioned there, the issue will be looked into and hopefully, a solution will be found.

@0ranki
Copy link

0ranki commented Dec 14, 2021

I just installed on Rocky Linux 8 with NGINX 1.14.1 and php-fpm 8.1, got a similar error.

## nginx error log:
2021/12/14 09:39:00 [error] 2122#0: *41093 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 192.168.85.112, server: server.com, request: "POST /install/install/configure.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/www.sock:", host: "server.com", referrer: "http://server.com/install/"

## access log:
192.168.85.112 - - [14/Dec/2021:09:35:31 +0000] "POST /install/install/configure.php HTTP/1.1" 404 27 "http://server.com/install/" "Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:95.0) Gecko/20100101 Firefox/95.0" "-"

I fixed it by adding a slash in front of URIs in install/index.php. The same error occured in later stages of the install procedure as well, here's a git diff of the changes I made to get through the installation:

diff --git a/install/index.php b/install/index.php
index 6a89e91..7b285da 100644
--- a/install/index.php
+++ b/install/index.php
@@ -49,7 +49,7 @@ xmlhttp.onreadystatechange=function()
     {
     }
   }
-$.post("install/configure.php", {data_host:sql_host,data_name:sql_name,data_user:sql_user,data_pass:sql_pass,data_sec:sql_sec}, function(results){
+$.post("/install/configure.php", {data_host:sql_host,data_name:sql_name,data_user:sql_user,data_pass:sql_pass,data_sec:sql_sec}, function(results){
 if (results == 0) {
      $("#alertfailed").show();
      $("#install").show();
@@ -86,7 +86,7 @@ $("#alertfailed").hide();
 $("#install").hide();
 $("#configure").hide();
 $("#pre_load").show();
-$.post("install/install.php", {admin_user:user,admin_pass:pass}, function(results){
+$.post("/install/install.php", {admin_user:user,admin_pass:pass}, function(results){
      $("#logpanel").show();
      $("#log").append(results);
      $("#pre_load").hide();
@@ -298,4 +298,4 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST') {
        <script type="text/javascript" src="../admin/js/jquery.min.js"></script>
        <script type="text/javascript" src="../admin/js/bootstrap.min.js"></script>
   </body>
-</html>
\ No newline at end of file
+</html>

Not sure if this is related. I didn't notice an existing issue about this, but seems very similar.

@thinkverse
Copy link
Collaborator

Most likely it is, it has to do with how browers handle relative and absolute URLs. I have some ideas on how to fix this, questions is if it'll break support for older browers in the process though. 🤔 Testing brower differences isn't easy or cheap so I rather not do it, could push a fix and hope for the best. 🤷‍♂️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants