PhpMyAdmin deployed on standard (not NG Hosting) POA-managed Linux Sahred Hosting server returns the 'Service Unavailable' error message when opened from POA Customer Control Panel for any subscription.
When you try to restart Apache on PhpMyAdmin host with the 'service pemhttpd restart' command, it gives a syntax error following by the following error message:
Invalid command 'php_admin_flag'
PHP is configured to work as CGI, while PhpMyAdmin requires PHP to be loaded as Apache module.
Correct Apache configuration for PhpMyAdmin host.
Log into POA Provider Control Panel and go to Service Director > Shared Hosting Manager > Apache Configuration.
If you have a separate Apache configuration for PhpMyAdmin servers, open it and configure PHP5 to run as Apache module on 'PHP Configuration > PHP Modes' tab:
Open 'General' tab and click 'Apply Changes'.
Note: if you make adjustments to load PHP5 module directly on PhpMyAdmin server and not through Apache configuration in POA Control Panel, next time Apache configuration is applied to hosts from POA your changes will be lost. If you do not have separate Apache configuration for PhpMyAdmin servers, we recommend that you create one so you can specifically target only PhpMyAdmin servers and other Apache hosts are not affected.
First, create a new provisioning attribute called e.g. 'PhpMyAdmin' and assign it to all hosts with PhpMyAdmin application. You can get additional information on provisioning attributes in the 'Managing Provisioning Attributes' chapter of POA Provider's Guide: http://download.pa.parallels.com/poa/5.4/doc/index.htm?fileName=1976.htm. Instructions on assigning attributes to hosts are also available in POA Provider's guide: http://download.pa.parallels.com/poa/5.4/doc/index.htm?fileName=54488.htm.
After PhpMyAdmin hosts have been configured with proper provisioning attributes, in POA Provider Control Panel go to Service Director > Shared Hosting Manager > Apache Configuration again and click the 'Add New Configuration' button. Call the new Apache configuration 'PhpMyAdmin' and select 'PhpMyAdmin' from the 'Provisioning Attribute' dropdown list.
In the 'Copy configuration from' dropdown list select your default Apache configuration. Leave 'Customize after creation' checkbox enabled.
Open the 'PHP Configuration' tab and configure PHP 5 to run as Apache module, then on the 'General' tab click 'Apply Changes'.
If you correctly configured and assigned provisioning attributes, this new Apache configuration will only be applied to PhpMyAdmin hosts and PHP 5 will be correctly configured to run as Apache module.