To set up the handler, you first need to configure the external app. You can follow the instructions here:
https://docs.openlitespeed.org/config/php/externalapp/
Since you are using CyberPanel, this step is usually not necessary. Are you trying to customize the PHP configuration?
To set php_value, env variable may not work; please follow https://docs.openlitespeed.org/config/php/externalapp/#override-the-global-phpini to set the value per virtual host.
An example command to check if any service is listening on port 7080.
netstat -antupl | grep 7080
You can check for other ports like 80 and 443 for sure.
curl looks fine. Changing port, webadmin php version, and a reboot are not required. If it failed to bring it up, please check if it's caused by another service listening on the same port with the netstat tool. You can also see the failed reason from the error log.
If you run `curl -IkL https://127.0.0.1:7080/` and it returns 200 status code in the end, which means webadmin is working properly. I don't think Cloudflare can proxy port 7080. Can you double check on this?
I came across a similar case recently, so I’ve added a solution for anyone who wants to build PHP 7.4 on Ubuntu 24.04 manually.
https://docs.openlitespeed.org/config/php/custom/#building-old-php-on-new-system