Local test with XAMPP fails with 404: "Requested resource is not available" (after install)

I get a 404 error after a successful installation.

  1. calling /install (with no issues)

  1. Pushing the button login now will forward to / and it shows this:

2


  • It’s a fresh XAMPP installation (win)
  • PHP v8.2.12 / Apache v2.4.58
  • all required extensions are installed
  • mod_rewrite is activated (php.ini)
  • AllowOverride All (httpd.conf)
  • all files are stored (also .htaccess)
  • server/services restarted after file editing

This problem could be related to:

(…but I couldn’t find a solution for my case.)


Note: I’ve already published my issue on GitHub, but maybe there’s an idea in the community here. Thanks a lot!

Hi,

You need to use a pretty url in my test only work when I access through http://cockpit.xampp/ pretty url.

  1. On Windows change or add the <“httpd-vhosts.conf>” file in “C:\xampp\apache\conf\extra” folder to
<VirtualHost *:80>
    ServerAdmin webmaster@cockpit.xampp
    DocumentRoot "C:/xampp/htdocs/cockpit"
    ServerName cockpit.xampp
    ErrorLog "logs/cockpit.xampp-error.log"
    CustomLog "logs/cockpit.xampp-access.log" common
</VirtualHost>
  1. add 127.0.0.1 cockpit.xampp #xampp magic! to host file in c:\Windows\System32\drivers\etc\hosts.

Voila,

1 Like

I had the same problem and fixed it by correcting the APP_BASE URL in the code. I also made a Pull Request on GitHub, but that’s it:

index.php

line 82:
$APP_BASE = trim(str_replace($APP_DOCUMENT_ROOT, ‘’, $APP_DIR), “/”);

line 82 after:
$APP_BASE = ltrim(trim(str_replace($APP_DOCUMENT_ROOT, ‘’, $APP_DIR), “/”), “\”);