• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Domain configuration issues

dalydesign

Basic Pleskian
I've tried to edit a configuration on the website when Plesk gives me the error....

Code:
Unable to generate the web server configuration file on the host <server.live-servers.net> because of the following errors:

[Thu Jul 30 19:28:17 2015] [warn] module ssl_module is already loaded, skipping Syntax error on line 81 of /var/www/vhosts/mydomain.com/conf/14382808780.95751900_httpd_ip_default.include:
php_admin_value takes two arguments, PHP Value Modifier (Admin)


Please resolve the errors in web server configuration templates and generate the file again.

When I try to reconfigure the domains in SSH, I get this message....

Code:
/usr/local/psa/admin/bin/httpdmng --reconfigure-all


PHP Warning: syntax error, unexpected '(' in Unknown on line 1
; File: /usr/local/psa/admin/plib/Db/Table/Row/PhpSettings.php, Line: 191

Error occured while sending feedback. HTTP code returned: 502
PHP Warning: Invalid argument supplied for foreach(); File: /usr/local/psa/admin/plib/Db/Table/Row/PhpSettings.php, Line: 500

Error occured while sending feedback. HTTP code returned: 502
2015-07-30T19:28:20+01:00 ERR (3): Apache config (14382808780.95751900) generation failed: [Thu Jul 30 19:28:17 2015] [warn] module ssl_module is already loaded, skipping
Syntax error on line 81 of /var/www/vhosts/mydomain.com/conf/14382808780.95751900_httpd_ip_default.include:
php_admin_value takes two arguments, PHP Value Modifier (Admin)

[Thu Jul 30 19:28:17 2015] [warn] module ssl_module is already loaded, skipping
Syntax error on line 81 of /var/www/vhosts/mydomain.com/conf/14382808780.95751900_httpd_ip_default.include:
php_admin_value takes two arguments, PHP Value Modifier (Admin)

Execution failed.
Command: httpdmng
Arguments: Array
(
    [0] => --reconfigure-domains
    [1] => mydomain1.com,mydomain2.com,mydomain3.com,mydomain4.com
)

Details: Empty error message from utility.

Does anyone have any ideas as to how to fix this?

Thanks in advance.
 
Thanks for the link. However, it suggests the fix is in PHP 5.3.3 and I am currently running 5.3.3-22.el5_10

In Plesk, When I log in, I receive the following error on the homescreen:

Code:
New files of configuration for Apache web server were not built due to errors in configuration templates: [Fri Jul 31 07:14:40 2015] [warn] module ssl_module is already loaded, skipping Syntax error on line 81 of /var/www/vhosts/mydomain.com/conf/14383232540.02112200_httpd_ip_default.include: php_admin_value takes two arguments, PHP Value Modifier (Admin) . The detailed error message was e-mailed to you, so please check the e-mail, fix the errors, and click here to retry generating broken configuration or click here to retry generating of all configurations.

When I select the 'click here to retry generating broken configuration' URL to fix the error, it then displays 'permission denied'.

This is the error_log data:

Code:
Error occured while sending feedback. HTTP code returned: 502
[Thu Jul 30 19:17:40 2015] [warn] module ssl_module is already loaded, skipping
Syntax error on line 82 of /var/www/vhosts/subdomain.mydomain.com/conf/14382802590.84303500_httpd.include:
php_admin_value takes two arguments, PHP Value Modifier (Admin)

2015-07-30T19:22:54+01:00 ERR (3): New web server configuration for some of the subscription's domains was not built due to errors in configuration templates. The detailed error message was e-mailed to you, so please check the e-mail, fix the errors, and click <a data-method="post" href="/admin/subscription/webserver-configuration-rebuild/id/50/?returnUrl=%2Fsubscription%2Foverview%2Fid%2F50">here</a> to retry generating configuration.
2015-07-30T19:23:16+01:00 ERR (3): New web server configuration for some of the subscription's domains was not built due to errors in configuration templates. The detailed error message was e-mailed to you, so please check the e-mail, fix the errors, and click <a data-method="post" href="/admin/subscription/webserver-configuration-rebuild/id/50/?returnUrl=%2Fsubscription%2Foverview%2Fid%2F50">here</a> to retry generating configuration.
2015-07-30T19:24:35+01:00 ERR (3): New web server configuration for some of the subscription's domains was not built due to errors in configuration templates. The detailed error message was e-mailed to you, so please check the e-mail, fix the errors, and click <a data-method="post" href="/admin/subscription/webserver-configuration-rebuild/id/50/?returnUrl=%2Fsubscription%2Foverview%2Fid%2F50">here</a> to retry generating configuration.
2015-07-30T19:24:42+01:00 ERR (3): Apache config (14382806810.59670100) generation failed: [Thu Jul 30 19:24:42 2015] [warn] module ssl_module is already loaded, skipping
Syntax error on line 81 of /var/www/vhosts/mydomain.com/conf/14382806810.59670100_httpd_ip_default.include:
php_admin_value takes two arguments, PHP Value Modifier (Admin)

2015-07-30T19:24:42+01:00 ERR (3): Web server reconfiguration failed: New configuration was not built.
2015-07-30 19:24:43: (mod_fastcgi.c.2746) FastCGI-stderr: PleskUtilException: '/usr/local/psa/admin/bin/apache-config' '-t' failed with code 1.

stdout:


stderr:
[Thu Jul 30 19:24:42 2015] [warn] module ssl_module is already loaded, skipping
Syntax error on line 81 of /var/www/vhosts/mydomain.com/conf/14382806810.59670100_httpd_ip_default.include:
php_admin_value takes two arguments, PHP Value Modifier (Admin)

file: /usr/local/psa/admin/plib/Service/Agent/Transport/Local/Exec.php
line: 66
code: 0
trace: #0 /usr/local/psa/admin/plib/Service/Agent/Transport/Local.php(58): Service_Agent_Transport_Local_Exec->process(13, Object(Service_Agent_Command_Exec), Object(Service_Agent_Log), Object(Service_Agent_Transport_LocalTransaction))
#1 /usr/local/psa/admin/plib/Service/Agent/Transport/Local.php(24): Service_Agent_Transport_Local->_command(13, Object(Service_Agent_Command_Exec), Object(Service_Agent_Transport_LocalTransaction), Object(Service_Agent_Log))
#2 /usr/local/psa/admin/plib/Service/Agent.php(133): Service_Agent_Transport_Local->process('082949a76396340...', Array, Object(Service_Agent_Log))
#3 /usr/local/psa/admin/plib/Template/Writer/Apache.php(31): Service_Agent->commit()
#4 /usr/local/psa/admin/plib/Template/Configuration/Applier.php(203): Template_Writer_Apache->test()
#5 /usr/local/psa/admin/plib/Template/Configuration/Applier.php(117): Template_Configuration_Applier->_applyConfigurationsToServiceNode(1, Array)
#6 /usr/local/psa/admin/panel/application/controllers/SubscriptionController.php(1065): Template_Configuration_Applier->applyConfiguration(true)
#7 /usr/local/psa/admin/panel/application/controllers/SubscriptionController.php(983): SubscriptionController->_webserverConfigurationRebuildSubscription(50)
#8 /usr/local/psa/admin/plib/Zend/Controller/Action.php(513): SubscriptionController->webserverConfigurationRebuildAction()
#9 /usr/local/psa/admin/plib/Zend/Controller/Dispatcher/Standard.php(295): Zend_Controller_Action->dispatch('webserverConfig...')
#10 /usr/local/psa/admin/plib/Zend/Controller/Front.php(954): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#11 /usr/local/psa/admin/panel/application/library/AdminPanel/Application/Web.php(20): Zend_Controller_Front->dispatch()
#12 /usr/local/psa/admin/panel/application/public/index.php(15): AdminPanel_Application_Web->run()
#13 {main}

2015-07-30T19:24:43+01:00 ERR (3): New web server configuration for some of the subscription's domains was not built due to errors in configuration templates. The detailed error message was e-mailed to you, so please check the e-mail, fix the errors, and click <a data-method="post" href="/admin/subscription/webserver-configuration-rebuild/id/50/?returnUrl=%2Fsubscription%2Foverview%2Fid%2F50">here</a> to retry generating configuration.
2015-07-30T19:25:07+01:00 ERR (3): New web server configuration for some of the subscription's domains was not built due to errors in configuration templates. The detailed error message was e-mailed to you, so please check the e-mail, fix the errors, and click <a data-method="post" href="/admin/subscription/webserver-configuration-rebuild/id/50/?returnUrl=%2Fsubscription%2Foverview%2Fid%2F50">here</a> to retry generating configuration.
Error occured while sending feedback. HTTP code returned: 502
2015-07-30T19:27:15+01:00 ERR (3): Apache config (14382808320.47359700) generation failed: [Thu Jul 30 19:27:13 2015] [warn] module ssl_module is already loaded, skipping
Syntax error on line 81 of /var/www/vhosts/mydomain.com/conf/14382808320.47359700_httpd_ip_default.include:
php_admin_value takes two arguments, PHP Value Modifier (Admin)

Error occured while sending feedback. HTTP code returned: 502
[Thu Jul 30 19:27:13 2015] [warn] module ssl_module is already loaded, skipping
Syntax error on line 81 of /var/www/vhosts/mydomain.com/conf/14382808320.47359700_httpd_ip_default.include:
php_admin_value takes two arguments, PHP Value Modifier (Admin)

I forgot to mention that this is only happening on this one domain (it's an irish .ie domain, but I would safely assume this would not be a contributing factor).

We're running Plesk 11.0.9 (was formerly 9, but we upgraded our installation over the last couple of years), but my suspicion is that the upgrades and other installed modules (i.e. ruby, fail2ban, etc) might be causing some conflicts somewhere as I know that with Fail2Ban running, I have to manually start psa-firewall after a reboot, else the plesk firewall rules are ignored.
 
Last edited:
Back
Top