Search code examples
phpapache

How to solve object not found error in php project?


First, I need to clarify, I am not a php expert. I only try to set it up as a general test.

I cloned following code: https://github.com/HAWK-Digital-Environments/HAWKI

I downloaded XAMPP and put the code into the XAMPP htdocs folder. enter image description here

I started the XAMPP server.

enter image description here

If I try to open the project locally with the following link, it redirects to the login page as defined in the index.php. But I receive the error that the object was not found: http://localhost/hawki

enter image description here

Translation:


The requested URL could not be found on the server. If you have entered the URL manually, please check the spelling and try again.

If you think this is a malfunction of the server, please inform the webmaster.

Error 404

localhost
Apache/2.4.56 (Unix) OpenSSL/1.1.1t PHP/8.2.4 mod_perl/2.0.12 Perl/v5.34.1

If I enter the following link, I receive the same error: http://localhost/hawki/login

enter image description here

How to I solve the problem and get it running? Normally, it should work like this page: https://ai.hawk.de/login.php


Solution

  • The .htaccess file of the root was not copied during cloning the project from GitHub.