Open NotePortal338 opened 3 years ago
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.
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.
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. 🤷♂️
It gives me this error