CURRENT SETUP
Software
Windows 10
XAMPP (Apache, PHPMyadmin, Fillezilla, openssl etc.)
Eclipse Version: 2024-03 (4.31.0)
PHP Version 8.2.12
XDEBUG 3.3.2
project path: G:xampphtdocsapiproject
php built in server path: https://localhost
project path settings:
project base path: api/project
https://localhost/api/project
server xml:
<?xml version="1.0" encoding="UTF-8"?>
<Server>
<Port name="HTTP/1.1" protocol="HTTP">8429</Port>
<PathMapping local="https://localhost/api/project" module="project" remote="G:xampphtdocsapiproject"/></Server>
Run as – Run on server does not work. It has a wrong path (without /api/ part) and even when correcting the path there are no files found.
run as – run on server
gives:
browser: Not Found The requested resource /project/login.php was not found on this server.
console:
[Fri Aug 2 11:19:18 2024] 127.0.0.1:64548 Accepted [Fri Aug 2 11:19:18 2024] 127.0.0.1:64548 [404]: GET /project/login.php - No such file or directory [Fri Aug 2 11:19:18 2024] 127.0.0.1:64548 Closing
run as – CLI application works
run as – web application works
browser: localhost:8429 – not found localhost:8429/api/project – not found
terminal: ping localhost:8429 -not found
How to fix this?