I installed both php5.6 and php7.1 and I can see them on “PHP Versions” in Server Configuration.
In “Website Options” I selected "CGI wrapper (run as virtual server owner) "
Then when I select php7,
It adds the following Directives to httpd.conf
RemoveHandler .php
RemoveHandler .php5
RemoveHandler .php7.1
php_admin_value engine Off
Then website becomes inaccessible,
The requested URL /cgi-bin/php5.cgi/index.php was not found on this server.
When I comment out these lines I can access to the website but I can not use PHP 7.1
Finally I fixed the problem.
If anyone has the same problem the fix is;
There was missing configuration lines for the virtualhost in the http.conf, I added the following lines;
ScriptAlias /cgi-bin/ /home/xxx.net/cgi-bin/
<Directory /home/xxx.net/cgi-bin>
allow from all
AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch
Require all granted