Installed, but everything 404 ? How tp proceed ?

Post Reply
francisp
Jr. Bludit
Posts: 1
Joined: Sun Mar 12, 2023 11:28 am

Using lighttpd as webserver.

changed to /var/www/kmo
git clone https://github.com/bludit/bludit.git
sudo chown -R www-data:www-data /var/www/kmo
sudo chmod -R 770 /var/www/kmo
modified .htaccess, added RewriteBase /bludit/

go to the website
install ran

I get this page:

Image

But everything I click returns a 404

After deleting the directory created by git, and extracting the zip, I get this

Image

But still all 404's

How to proceed ?

more info:
```
sudo dpkg -l | grep php
ii php-apcu 5.1.19+4.0.11-3 amd64 APC User Cache for PHP
ii php-common 2:76 all Common files for PHP packages
ii php7.4-cli 7.4.33-1+deb11u1 amd64 command-line interpreter for the PHP scripting language
ii php7.4-common 7.4.33-1+deb11u1 amd64 documentation, examples and common module for PHP
ii php7.4-curl 7.4.33-1+deb11u1 amd64 CURL module for PHP
ii php7.4-fpm 7.4.33-1+deb11u1 amd64 server-side, HTML-embedded scripting language (FPM-CGI binary)
ii php7.4-gd 7.4.33-1+deb11u1 amd64 GD module for PHP
ii php7.4-intl 7.4.33-1+deb11u1 amd64 Internationalisation module for PHP
ii php7.4-json 7.4.33-1+deb11u1 amd64 JSON module for PHP
ii php7.4-mbstring 7.4.33-1+deb11u1 amd64 MBSTRING module for PHP
ii php7.4-opcache 7.4.33-1+deb11u1 amd64 Zend OpCache module for PHP
ii php7.4-readline 7.4.33-1+deb11u1 amd64 readline module for PHP
ii php7.4-sqlite3 7.4.33-1+deb11u1 amd64 SQLite3 module for PHP
ii php7.4-xml 7.4.33-1+deb11u1 amd64 DOM, SimpleXML, XML, and XSL module for PHP
ii php7.4-zip 7.4.33-1+deb11u1 amd64 Zip module for PHP
```
lighttpd.conf:

server.modules = (
"mod_indexfile",
"mod_setenv",
"mod_access",
"mod_alias",
"mod_rewrite",
"mod_redirect",
)

server.document-root = "/var/www"
server.upload-dirs = ( "/var/cache/lighttpd/uploads" )
server.errorlog = "/var/log/lighttpd/error.log"
server.pid-file = "/run/lighttpd.pid"
server.username = "www-data"
server.groupname = "www-data"
server.port = 81

# features
#https://redmine.lighttpd.net/projects/l ... agsDetails
server.feature-flags += ("server.h2proto" => "enable")
server.feature-flags += ("server.h2c" => "enable")
server.feature-flags += ("server.graceful-shutdown-timeout" => 5)
#server.feature-flags += ("server.graceful-restart-bg" => "enable")

# strict parsing and normalization of URL for consistency and security
# https://redmine.lighttpd.net/projects/l ... ptsDetails
# (might need to explicitly set "url-path-2f-decode" = "disable"
# if a specific application is encoding URLs inside url-path)
server.http-parseopts = (
"header-strict" => "enable",# default
"host-strict" => "enable",# default
"host-normalize" => "enable",# default
"url-normalize-unreserved"=> "enable",# recommended highly
"url-normalize-required" => "enable",# recommended
"url-ctrls-reject" => "enable",# recommended
"url-path-2f-decode" => "enable",# recommended highly (unless breaks app)
#"url-path-2f-reject" => "enable",
"url-path-dotseg-remove" => "enable",# recommended highly (unless breaks app)
#"url-path-dotseg-reject" => "enable",
#"url-query-20-plus" => "enable",# consistency in query string
)

index-file.names = ( "index.php", "index.html" )
url.access-deny = ( "~", ".inc" )
static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )

# default listening port for IPv6 falls back to the IPv4 port
include_shell "/usr/share/lighttpd/use-ipv6.pl " + server.port
include_shell "/usr/share/lighttpd/create-mime.conf.pl"
include "/etc/lighttpd/conf-enabled/*.conf"

#server.compat-module-load = "disable"
server.modules += (
"mod_dirlisting",
"mod_staticfile",
)


$HTTP["host"] == "www.xxx.com" {
server.document-root = "/var/www/kmo"
}
Post Reply