Symptoms
Attempt to create a Linux Shared Hosting subscription fails with an error like below:
There is no appropriate host for provisioning: IP Type: 'shared'; PHP paths: '/usr/bin/php-cgi:modules/libphp5.so:/usr/libexec/php4-cgi/bin/php:modules/libphp4.so'
Cause
- Necessary PHP versions were not installed on hosts.
- PHP versions were installed, but were not synchronized to OA.
- PHP as module is enabled in the service template, but prohibited by Apache configuration associated with the host.
Resolution
- Check attributes assigned to the Apache resource in the service template. Get the list of ready to provide Apache hosts with this attribute.
- Check which PHP versions are allowed in the service template and make sure appropriate PHP binaries are available on the Apache hosts found on previous step.
- Resync PHP version information for the hosts found on step 1 to OA as it is described in the documentation.
If the service template includes PHP as module - check if it is allowed by Apache configuration: go to Services > Web Hosting > Manage Configurations, choose the Apache configuration that matches by attribute (see the documentation for more details) then go to PHP configuration.
If necessary PHP version is not allowed as module - allow it and apply configuration.