kerberos-io / web

(DEPRECATED) An open source GUI to configure the machinery and to view events that were detected by the machinery.
https://www.kerberos.io
225 stars 69 forks source link

Generic install seems to not work nginx (ubuntu 18.04) #155

Open gusarg81 opened 4 years ago

gusarg81 commented 4 years ago

Hi, I've followed the guide from http://www.kerberos.io/opensource/installation#generic but I get files listing from nginx (php fpm is installed and working/tested).

My settings in nginx:

server { listen 8088 default_server; root /var/www/virtual/kerberos/public; server_name kerberos.ddns.gdnet.ar index index.php; location / { autoindex on; try_files $uri $uri/ /index.php?$query_string; } location ~ .php$ { fastcgi_pass unix:/var/run/php/php7.2-fpm-kerberos.sock; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } }

Also tried with php7.1 (as the guide uses it), but with the same result.

Any idea? Thanks in advance.

cedricve commented 4 years ago

Can you confirm this is where the web is located?

/var/www/virtual/kerberos/public

Can you confirm that is a valid name of your Php socket?

Kind regards, Verstraeten Cédric

On 2 Jan 2020, at 00:57, Gustavo A. Díaz notifications@github.com wrote:

/var/www/virtual/kerberos/public

gusarg81 commented 4 years ago

Can you confirm this is where the web is located? /var/www/virtual/kerberos/public Can you confirm that is a valid name of your Php socket? Kind regards, Verstraeten Cédric On 2 Jan 2020, at 00:57, Gustavo A. Díaz @.***> wrote: /var/www/virtual/kerberos/public

Yes, both.

cedricve commented 4 years ago

Might be a configuration error, can you give some more debug info?

TimelessNL commented 3 years ago

I've also followed the advanced generic install method by every step, with Ubuntu Server 18.04.3. But this does not result in a working web interface: afbeelding I noticed that the case is not correct, the error mentions App\Traits\GetVersions while the actual file is app/traits/GetVersions.php When I create symbolic links to both App->app and Traits->traits the GetVersions is found, but this then results in other files not being found. So either the path's are incorrect or the virtual app environment does not work correctly?

regularjeremy commented 3 years ago

For any others that may have had the same issue, try fixing the following. This worked for me:

/var/www/web/app/Http/Controllers/BaseController.php --> nano/vim this file and change 'Traits' in line 8 to 'traits' (lowercase)

/var/www/web/app/Http/Repositories/Filesystem/DiskFileSystem.php --> change file name from 'DiskFileSystem.php' to DiskFilesystem.php' (lowercase s)

/var/www/web/app/Http/Repositories/Filesystem/FileSystemInterface.php --> change file name from 'FileSystemInterface.php' to 'FilesystemInterface.php' (lowercase s)

Hope that helps!