I can§t run homebrew PHP on macOS

I have reinstalled whole brew, installed SSL, PHP, httpd but PHP ins’t interpretted.

php -v returns:

PHP 8.4.7 (cli) (built: May  6 2025 12:31:58) (NTS)
Copyright (c) The PHP Group
Built by Homebrew
Zend Engine v4.4.7, Copyright (c) Zend Technologies
    with Zend OPcache v8.4.7, Copyright (c), by Zend Technologies

httpd -v returns:

Server version: Apache/2.4.63 (Unix)
Server built:   Jan 20 2025 19:35:41

http://localhost shows (but I don’t know from where):

It Works!

https://localhost is located into the folder I want to be (~/Sites), PHP isn’t interpreted.

What I need?

  1. run PHP correctly in HTTPS://localhost
  2. find where HTTP://localhost is currently located and redirect into HTTPS