• 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

All Domains Displaying Apache 2 Default Page

M

Mkokes

Guest
Currently all domains within my Plesk installation are showing the default Apache 2 page. We had upgraded from plesk 9 to 11 and were running fine, but I believe a tech made a change to our config and now we're receiving default pages for all of our domains, when I try to log into the plesk control panel I recieve this message.

PHP Notice: Indirect modification of overloaded property Service_Agent_Command_Exec::$stdin has no effect
Line: 50
File: /usr/local/psa/admin/plib/Service/Agent/Transport/Local/Exec.php
Stack Trace:
#0 Smb_Exception_Syntax::handleError(8, Indirect modification of overloaded property Service_Agent_Command_Exec::$stdin has no effect, /usr/local/psa/admin/plib/Service/Agent/Transport/Local/Exec.php, 50, Array ([bid] => 0,[command] => Service_Agent_Command_Exec Object ([command] => exec,[] => Array ([script] => packagemng,[version] => 1.0,[args] => Array ([0] => --list),[env] => Array (),[stdin] => ),[] => ),[log] => Service_Agent_Log Object ([] => 0f192ab80714b6316669953eb648a931,[_level] => 3),[transaction] => Service_Agent_Transport_LocalTransaction Object ([] => 6e5250d99f988f9d14f00aafe7e0de2b),[cmd] => '/usr/local/psa/admin/bin/packagemng' '--list',[cwd] => /usr/local/psa/tmp/agent6e5250d99f988f9d14f00aafe7e0de2b,[timeStart] => 1343662447.3571,[env] => Array (),[pipes] => Array ([0] => Resource id #167,[1] => Resource id #168,[2] => Resource id #169),[descriptorSpec] => Array ([0] => Array ([0] => pipe,[1] => rb),[1] => Array ([0] => pipe,[1] => wb),[2] => Array ([0] => pipe,[1] => wb)),[process] => Resource id #170,[stdout] => ,[stderr] => )) called at [/usr/local/psa/admin/plib/Service/Agent/Transport/Local/Exec.php:50]
#1 Service_Agent_Transport_Local_Exec->process(0, Service_Agent_Command_Exec Object ([command] => exec,[] => Array ([script] => packagemng,[version] => 1.0,[args] => Array ([0] => --list),[env] => Array (),[stdin] => ),[] => ), Service_Agent_Log Object ([] => 0f192ab80714b6316669953eb648a931,[_level] => 3), Service_Agent_Transport_LocalTransaction Object ([] => 6e5250d99f988f9d14f00aafe7e0de2b)) called at [/usr/local/psa/admin/plib/Service/Agent/Transport/Local.php:58]
#2 Service_Agent_Transport_Local->_command(0, Service_Agent_Command_Exec Object ([command] => exec,[] => Array ([script] => packagemng,[version] => 1.0,[args] => Array ([0] => --list),[env] => Array (),[stdin] => ),[] => ), Service_Agent_Transport_LocalTransaction Object ([] => 6e5250d99f988f9d14f00aafe7e0de2b), Service_Agent_Log Object ([] => 0f192ab80714b6316669953eb648a931,[_level] => 3)) called at [/usr/local/psa/admin/plib/Service/Agent/Transport/Local.php:24]
#3 Service_Agent_Transport_Local->process(0f192ab80714b6316669953eb648a931, Array ([0] => Service_Agent_Command_Exec Object ([command] => exec,[] => Array ([script] => packagemng,[version] => 1.0,[args] => Array ([0] => --list),[env] => Array (),[stdin] => ),[] => )), Service_Agent_Log Object ([] => 0f192ab80714b6316669953eb648a931,[_level] => 3)) called at [/usr/local/psa/admin/plib/Service/Agent.php:133]
#4 Service_Agent->commit() called at [/usr/local/psa/admin/plib/Service/Node/Components/Unix.php:341]
#5 Service_Node_Components_Unix->_syncProperties(, )

#6 call_user_func_array(Array ([0] => (too much stuff here to copy and paste it all)

#7 Service_Node_Properties->sync(, ) called at [/usr/local/psa/admin/plib/Service/Node/Components.php:20]
#8 Service_Node_Components->sync() called at [/usr/local/psa/admin/plib/Service/Node/Properties.php:32]
#9 Service_Node_Properties-> (too much stuff here to copy and paste it all)
#10 Db_Table_Row_ServiceNode->components() called at [/usr/local/psa/admin/plib/Billing/Integration.php:13]
#11 Billing_Integration::isLocalBillingInstalled() called at [/usr/local/psa/admin/plib/Billing/Connection.php:421]
#12 Billing_Connection->isAvailable() called at [/usr/local/psa/admin/plib/sso/RelyingParty.php:18]
#13 isSsoEnabled() called at [/usr/local/psa/admin/auto_prepend/auth.php3:201]

Warning: Releasing semaphore 36 in request cleanup in Unknown on line 0

I've tried to run...

/usr/local/psa/admin/sbin/websrvmng -a

With no luck, I've also tried...

bootstrapper.sh repair

with no luck as well

and also /usr/local/psa/admin/sbin/httpdmng --reconfigure-all

Can anyone point me in the right direction for where I should be looking?
 
The stack trace is a red herring. Better to use E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED error reporting for admin PHP.

If you're into that, do
# /usr/local/psa/admin/sbin/httpdmng --reconfigure-all
and then check configuration files consistency. Make sure config zz010_psa_httpd.conf in Apache conf.d includes configs like *_server.include and psa/admin/conf/vhosts_bootstrap.conf*. Then make sure that proper vhost configs are included from /usr/local/psa/admin/conf/vhosts_bootstrap.conf and they are correct as well.

Or address this issue to support.
 
And if there any errors while running,

/usr/local/psa/admin/sbin/httpdmng --reconfigure-all

Let's know of them ...
 
Here is the result of running /usr/local/psa/admin/sbin/httpdmng --reconfigure-all

I had to trim a few of the lines since the output is too large for a forum post

PHP Notice: Indirect modification of overloaded property Service_Agent_Command_Exec::$stdin has no effect; File: /usr/local/psa/admin/plib/Service/Agent/Transport/Local/Exec.php, Line: 50

PHP Notice: Indirect modification of overloaded property Service_Agent_Command_Exec::$stdin has no effect
Line: 50
File: /usr/local/psa/admin/plib/Service/Agent/Transport/Local/Exec.php
Stack Trace:
#0 Smb_Exception_Syntax::handleError(8, Indirect modification of overloaded property Service_Agent_Command_Exec::$stdin has no effect, /usr/local/psa/admin/plib/Service/Agent/Transport/Local/Exec.php, 50, Array ([bid] => 0,[command] => Service_Agent_Command_Exec Object ([command] => exec,[] => Array ([script] => packagemng,[version] => 1.0,[args] => Array ([0] => --list),[env] => Array (),[stdin] => ),[] => ),[log] => Service_Agent_Log Object ([] => 3e62a87a95356c75afbcd881c6455b8f,[_level] => 3),[transaction] => Service_Agent_Transport_LocalTransaction Object ([] => da50f56be5757c225f4704d7d3dc6ccd),[cmd] => '/usr/local/psa/admin/bin/packagemng' '--list',[cwd] => /usr/local/psa/tmp/agentda50f56be5757c225f4704d7d3dc6ccd,[timeStart] => 1343677590.9752,[env] => Array (),[pipes] => Array ([0] => Resource id #189,[1] => Resource id #190,[2] => Resource id #191),[descriptorSpec] => Array ([0] => Array ([0] => pipe,[1] => rb),[1] => Array ([0] => pipe,[1] => wb),[2] => Array ([0] => pipe,[1] => wb)),[process] => Resource id #192,[stdout] => ,[stderr] => )) called at [/usr/local/psa/admin/plib/Service/Agent/Transport/Local/Exec.php:50]
#1 Service_Agent_Transport_Local_Exec->process(0, Service_Agent_Command_Exec Object ([command] => exec,[] => Array ([script] => packagemng,[version] => 1.0,[args] => Array ([0] => --list),[env] => Array (),[stdin] => ),[] => ), Service_Agent_Log Object ([] => 3e62a87a95356c75afbcd881c6455b8f,[_level] => 3), Service_Agent_Transport_LocalTransaction Object ([] => da50f56be5757c225f4704d7d3dc6ccd)) called at [/usr/local/psa/admin/plib/Service/Agent/Transport/Local.php:58]
#2 Service_Agent_Transport_Local->_command(0, Service_Agent_Command_Exec Object ([command] => exec,[] => Array ([script] => packagemng,[version] => 1.0,[args] => Array ([0] => --list),[env] => Array (),[stdin] => ),[] => ), Service_Agent_Transport_LocalTransaction Object ([] => da50f56be5757c225f4704d7d3dc6ccd), Service_Agent_Log Object ([] => 3e62a87a95356c75afbcd881c6455b8f,[_level] => 3)) called at [/usr/local/psa/admin/plib/Service/Agent/Transport/Local.php:24]
#3 Service_Agent_Transport_Local->process(3e62a87a95356c75afbcd881c6455b8f, Array ([0] => Service_Agent_Command_Exec Object ([command] => exec,[] => Array ([script] => packagemng,[version] => 1.0,[args] => Array ([0] => --list),[env] => Array (),[stdin] => ),[] => )), Service_Agent_Log Object ([] => 3e62a87a95356c75afbcd881c6455b8f,[_level] => 3)) called at [/usr/local/psa/admin/plib/Service/Agent.php:133]
#4 Service_Agent->commit() called at [/usr/local/psa/admin/plib/Service/Node/Components/Unix.php:341]
#5 Service_Node_Components_Unix->_syncProperties(, )

#6 call_user_func_array(Array ([0] => (Too much text to paste into post here)

#7 Service_Node_Properties->sync(, ) called at [/usr/local/psa/admin/plib/Service/Node/Components.php:20]
#8 Service_Node_Components->sync() called at [/usr/local/psa/admin/plib/Service/Node/Properties.php:32]
#9 Service_Node_Properties-> (Too much text to paste into post here)
#10 Db_Table_Row_ServiceNode->components() called at [/usr/local/psa/admin/plib/WebProxyManager.php:109]
#11 WebProxyManager::isInstalled((Too much text to paste into post here)

#12 WebProxyManager::isConfigGenerationRequired (Too much text to paste into post here)

#13 WebServerManager::make(2) called at [/usr/local/psa/admin/plib/api-common/cu.php:222]
#14 cu->cu() called at [/usr/local/psa/admin/plib/api-common/Httpdmng.php:71]
#15 Httpdmng->__construct() called at [/usr/local/psa/admin/sbin/httpdmng:13]
PHP Warning: Releasing semaphore 36 in request cleanup in Unknown on line 0

Warning: Releasing semaphore 36 in request cleanup in Unknown on line 0
 
My zz010_psa_httpd.conf file only contains one entry with

ServerName (Name of My Host)

How would I go about rebuilding it?
 
Make sure your /etc/my.cnf does not contain quick mysql timeouts if it does, please increase it and try again. Otherwise, if your my.cnf was already in good shape, then please try by bootstrapper repairing with

/usr/local/psa/bootstrapper/pp11.0.9-bootstrapper/bootstrapper.sh repair
 
Bootstrapper won't help.

First make Plesk error reporting less verbose - replace error_reporting value in /usr/local/psa/admin/conf/php.ini with the one from my previous post. Then do '/etc/init.d/sw-cp-server restart'.

To fix your problem just remove zz010_psa_httpd.conf and call 'httpdmng --reconfigure-all'. If this doesn't help, post messages that appeared in /var/log/sw-cp-server/error_log.
 
Same problem empty error Apache web server config files

Just upgraded to 11.0.9 from 10.4.4 and all vhost configurations are shot and cannot be reconfigured:

/usr/local/psa/admin/sbin/httpdmng --reconfigure-all
2012-11-16T15:47:04-05:00 ERR (3): Apache config (13530987870.74476700) generation failed:

Details: Empty error message from utility.

same error shows in /usr/local/psa/admin/logs/panel.log
again no details.

mysql> SELECT * FROM Configurations WHERE status!='ok';

lists all rows of attempted configurations like so:

| id | name | file | version | objectType | objectId | status | description | serviceNodeId | active |
+------+--------------------+------+----------------------+------------+----------+--------+-------------+---------------+--------+
| 1920 | domainVhost | | 13530533250.94273800 | domain | 512 | error | | 1 | false |
| 1921 | domainWebmailHorde | | 13530533250.94273800 | domain | 512 | error | | 1 | false |
| 1922 | domainVhost | | 13530733310.99607700 | domain | 5728 | error | | 1 | false |
| 1923 | domainWebmailHorde | | 13530733310.99607700 | domain | 5728 | error | | 1 | false |
|


as you can see, again no detail in the description column


Does anyone have a solution for this? I have looked at all of the other KB articles I could find several times..

Thanks
 
Back
Top