Search The ForumSearch   RegisterRegister  LoginLogin

AfterLogic WebMail Lite

 AfterLogic Forum : AfterLogic WebMail Lite
Subject Topic: shows error when access the install page Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
Able_John
Newbie
Newbie


Joined: 23 August 2024
Online Status: Offline
Posts: 2
Posted: 23 August 2024 at 1:07am | IP Logged Quote Able_John

Operating System: Ubuntu 20.04.6 LTS
Kernel: Linux 5.4.0-177-generic
Architecture: x86-64
PHP 7.4.3-4ubuntu2.23 (cli)
php extension:
json
libxml
mbstring
mysqli
mysqlnd
pdo_mysql
xml
xmlreader
xmlwriter

dowenload package version: Afterlogic webmail lite php linux&Win Server Ver.

I upload the zip package and upload the package and then unzip the package in "/var/www/webmail/afterlogic".
I use nginx to access the page,but when I try to access to the install page like"ip:port/adminpanel",the console shows "Uncaught SyntaxError: Unexpected token '<' (at vendor.f1abefc2.js:1:1)". When I cilcked into the detail info, it shows error in "<!doctype html>",So I wonder if I did something wrong in my server environment.
Here is my nginx server scrpit:
Server{
listen 1003;          
    server_name 10.0.24.11;

    root /var/www/webmail/afterlogic;
    index index.php;

    location / {
        try_files $uri $uri/ /index.php?$query_string;
    }
   #I use this to access the install page
   location /adminpanel {
        try_files $uri /adminpanel/index.php?$query_string;
    }

    location ~ \.php$ {
        include snippets/fastcgi-php.conf;
        fastcgi_pass unix:/var/run/php/php7.4-fpm.sock; # 对应PHP-FPM版本
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        include fastcgi_params;
    }

    location ~ /\.ht {
        deny all;
    }
}
PS. I don't this is related to my problem, but I install another webmail called
roundcube in "var/www/webmail/roundcube".
Back to Top View Able_John's Profile Search for other posts by Able_John
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 23 August 2024 at 1:13am | IP Logged Quote Igor

Did you try running Compatibility Test? Does it show any errors?

Also, if you try removing the Nginx config block related to adminpanel, do things work any differently?

--
Regards,
Igor, Afterlogic
Back to Top View Igor's Profile Search for other posts by Igor
 
Able_John
Newbie
Newbie


Joined: 23 August 2024
Online Status: Offline
Posts: 2
Posted: 23 August 2024 at 1:31am | IP Logged Quote Able_John

Thank you for your replying!
I had run the Compatibility Test.And it shows "The current server environment meets all the requirements. Click Next to proceed." I click the next, it direct me to the login page(I don't know if this is right).I try to use superadmin and with null code to login,but shows AuthError.
Then I remove the nginx block related to adminpanel and access to /adminpanel use superadmin,and I...WHAAAAAAAAT??I made it!!! OHHHHHHHHH... Thank you!!!
Back to Top View Able_John's Profile Search for other posts by Able_John
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide