cPanel configuration

Set required PHP version globally

If you use entire cPanel account for classified ads. Or other apps support same version of PHP, you can set PHP version for entire account.

You can do that by:

After applying changes, setting page should look like in image bellow (with minimal list of options selected. On your server do not deselect options selected by default, only enable missing ones, unless you know they are not needed)

Set required PHP version for specific domain, subdomain or directory

For cPanel with LiteSpeed HTTP server:

# CUSTOM HTACCESS START - do not remove this line
 
<FilesMatch "\.php$">
SetHandler application/x-lsphp73
</FilesMatch>
 
# CUSTOM HTACCESS END - do not remove this line

Other solutions: