To be completed by the original poster:
CMS Version
xibo-cms-4.0.5
Installation Method
Custom install
Operating System
Ubuntu 22.04.3 LTS
Apache 2.4.41
PHP 8.2
MySQL MariaDB 10.6.12
Issue
I’m getting “404 Not Found”, when trying to install Xibo 4.0.1
here is my file htaccess is :
RewriteEngine On
fix authorization header
RewriteCond %{HTTP:Authorization} .+
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
requests for api authorize
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} ^./api/authorize/.$
RewriteRule ^ api/authorize/index.php [QSA,L]
requests that start with api go down to api/index.php
#RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} ^./api/.$
#RewriteRule ^ api/index.php [QSA,L]
install
#RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} ^./install/.$
#RewriteRule ^ install/index.php [QSA,L]
all others - i.e. web
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteCond %{REQUEST_FILENAME} !.(css|js|png|jpg)$
RewriteCond %{REQUEST_URI} !^./dist/.$
RewriteCond %{REQUEST_URI} !^./theme/.$
#RewriteRule ^ index.php [QSA,L]
And my Alias apache
Alias /xibo “/srv/xibo-cms-4.0.5/web”
<Directory “/srv/xibo-cms-4.0.5/web”>
AllowOverride All
Options Indexes FollowSymLinks MultiViews
Order allow,deny
Allow from all
Require all granted
Provide screenshots where possible!
404 Not Found
The application could not run because of the following error:
Details
Type: Slim\Exception\HttpNotFoundException
Code: 404
Message: Not found.
File: /srv/xibo-cms-4.0.5/vendor/slim/slim/Slim/Middleware/RoutingMiddleware.php
Line: 76
Trace
#0 /srv/xibo-cms-4.0.5/vendor/slim/slim/Slim/Middleware/RoutingMiddleware.php(44): Slim\Middleware\RoutingMiddleware->performRouting()
#1 /srv/xibo-cms-4.0.5/vendor/slim/slim/Slim/MiddlewareDispatcher.php(121): Slim\Middleware\RoutingMiddleware->process()
#2 /srv/xibo-cms-4.0.5/vendor/slim/slim/Slim/Middleware/ErrorMiddleware.php(76): Psr\Http\Server\RequestHandlerInterface@anonymous->handle()
#3 /srv/xibo-cms-4.0.5/vendor/slim/slim/Slim/MiddlewareDispatcher.php(121): Slim\Middleware\ErrorMiddleware->process()
#4 /srv/xibo-cms-4.0.5/vendor/slim/slim/Slim/MiddlewareDispatcher.php(65): Psr\Http\Server\RequestHandlerInterface@anonymous->handle()
#5 /srv/xibo-cms-4.0.5/vendor/slim/slim/Slim/App.php(199): Slim\MiddlewareDispatcher->handle()
#6 /srv/xibo-cms-4.0.5/vendor/slim/slim/Slim/App.php(183): Slim\App->handle()
#7 /srv/xibo-cms-4.0.5/web/install/index.php(101): Slim\App->run()
#8 {main}