Documentation/Launching the application/PHP server

Built-in PHP Web Server

After installing the HLEB2 framework, you can verify its functionality and settings using the built-in PHP web server.
Here’s a link to the official documentation.

For Linux, the permissions on resources created by the framework (cache) will be set by the terminal user, so if you have not configured permissions previously, the pages may become inaccessible to another web server afterward. Only a complete cache clearance of the framework and routes using console commands can help.

You can check the framework by executing the following command (from the root directory of the installed project):

$php -S localhost:8000 -t public

Port 8000 may already be in use for localhost, in which case replace it with another free port, such as 8001 or 8002.

Since the public folder (unless you changed its name earlier) is the public directory of the project, after executing this command, the welcome page of the framework will be accessible at http://localhost:8000.

The built-in PHP web server does not support full server functionalities and should not be used on public networks.

Project Structure Running with Nginx

Page translated: chatgpt 4-o
Back to top