• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

After add 2 new domains httpd stop working! PLEASE HELP!!!

R

RadiR

Guest
After add 2 new domains in plesk admin panel httpd stop working and I get this email:

Generating new Apache configuration on host <###.ovh.net> failed because the following error(s) occurred:

Can not restart web server:

Please fix error(s) in templates of Apache configuration and retry generating the configuration file.


[root@### ~]# rpm -q psa
psa-10.2.0-cos5.build1011110331.10

[root@### ~]# cat /usr/local/psa/version
10.2.0 CentOS 5 1011110331.10

1) I try restart

[root@### ~]# service httpd restart
Stopping httpd: [FAILED]
Starting httpd: [Mon Mar 12 10:53:25 2012] [warn] module ssl_module is already loaded, skipping
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
[FAILED]

2) try to kill process

/sbin/fuser -n tcp 80
80/tcp: 23620
[root@### ~]# kill -9 23620
[root@### ~]# service httpd restart
Stopping httpd: [FAILED]
Starting httpd: [Mon Mar 12 11:06:29 2012] [warn] module ssl_module is already loaded, skipping
[ OK ]
[root@### ~]# service httpd restart
Stopping httpd: [FAILED]
Starting httpd: [Mon Mar 12 11:06:33 2012] [warn] module ssl_module is already loaded, skipping
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
[FAILED]

3) try reconfigure

/usr/local/psa/admin/sbin/httpdmng --reconfigure-server
2012-03-12T11:00:59+01:00 ERR (3): Apache config (13315463250.31625300) generation failed: Can not restart web server:
Can not restart web server:

4) Try bootstrapper

/usr/local/psa/bootstrapper/pp10.9.0-bootstrapper/bootstrapper.sh repair

**** Product repair started.

===> Checking for previous installation ... found.
Unable to upgrade. You have 10.11.0 version installed,
but upgrader is incompatible with this version.
To install new psa copy, please move '/usr/local/psa'
to another place manually.

**** Product repair failed.


5) Try tu upgrade plesk:

ERROR: Unable to proceed with the installation until the package php-sqlite2-5.2.13-1.el5.art.i386 is removed from the system.
Not all packages were installed.
Please resolve this issue and try installing the packages again.
If you cannot resolve the issue on your own, contact product technical support for

6) websrvmng -v -a

/usr/local/psa/admin/bin/websrvmng -v -a
WARNING: You are using obsolete option, use corresponding option of httpdmng.
websrvmng: /usr/local/psa/admin/bin/httpdmng execution failed:
2012-03-12T11:25:19+01:00 ERR (3): Apache config (13315477860.12396600) generation failed: Can not restart web server:
Can not restart web server:
Execution failed.
Command: httpdmng
Arguments: Array
(
[0] => --reconfigure-domains
[1] => ***,****,****
)

Details: Empty error message from utility.
websrvmng: /usr/local/psa/admin/bin/httpdmng execution failed:
2012-03-12T11:25:19+01:00 ERR (3): Apache config (13315477860.12396600) generation failed: Can not restart web server:
Can not restart web server:
Execution failed.
Command: httpdmng
Arguments: Array
(
[0] => --reconfigure-domains
[1] => ***,****,****
)

Details: Empty error message from utility.

7) apachectl -t

# apachectl -t
[Mon Mar 12 11:29:03 2012] [warn] module ssl_module is already loaded, skipping
Syntax OK

8) locate vhost.conf

locate vhost.conf
mv /var/www/vhosts/xxx.pl/conf/vhost.conf /var/www/vhosts/xxx.pl/conf/vhost.conf.debug

service httpd restart
Stopping httpd: [FAILED]
Starting httpd: [Mon Mar 12 11:44:05 2012] [warn] module ssl_module is already l oaded, skipping
httpd: Syntax error on line 216 of /etc/httpd/conf/httpd.conf: Syntax error on l ine 5 of /etc/httpd/conf.d/zz010_psa_httpd.conf: Syntax error on line 194 of /us r/local/psa/admin/conf/generated/13315477840.51191500_server.include: Syntax err or on line 8 of /usr/local/psa/admin/conf/vhosts_bootstrap.conf: Syntax error on line 116 of /var/www/vhosts/xxx.pl/conf/13315477840.80609100_httpd.include: Could not open configuration file /var/www/vhosts/xxx.pl/conf/vhost.conf: N o such file or directory
[FAILED]

10) Upgrade do 10.4.4

Components validation detected at least one important issue:
Parallels Panel pre-upgrade check...
PHP Warning: Module 'ionCube Loader' already loaded in Unknown on line 0
[Mon Mar 12 12:29:00 2012] [warn-phpd] The ionCube PHP Loader is disabled because of startup problems. (pid 7013)
bash: line 1: 7018 Segmentation fault /usr/local/psa/bin/php-cli -r '@session_start();' 2>&1
WARNING: Some customers have e-mail addresses coinciding with the Panel administrator's e-mail address. See the /root/parallels/PSA_10.4.4/examiners/plesk10_preupgrade_checker.log and check http://kb.parallels.com/en/111985 for details.
PHP Warning: in_array(): Wrong datatype for second argument in /root/parallels/PSA_10.4.4/examiners/panel_preupgrade_checker.php on line 1226
WARNING: IP address registered in Plesk is invalid or broken: xx.xxx.xx.xxx
WARNING: Each subdomain registered in Panel has a number of DNS records that derive from the Panel DNS template. Some of these records have been modified from the originals. If you upgrade to Panel 10.4.4 or later, these changes will be lost. Check http://kb.parallels.com/en/113310 for more details.

Proceeding with installation or upgrade without resolving the issues
that were found can corrupt your data
 
Last edited by a moderator:
I upgrade to 10.4.4

Now I get email:

Generating new Apache configuration on host <xxx.ovh.net> failed because the following error(s) occurred:

Can not restart web server: httpd stop failed
1 /usr/sbin/httpd processes are killed
httpd stop failed
1 /usr/sbin/httpd processes are killed

Please fix error(s) in templates of Apache configuration and retry generating the configuration file.

Any ideas how to fix it? =(
 
/usr/local/psa/admin/sbin/httpdmng --reconfigure-server

PleskUtilException: '/usr/local/psa/admin/bin/apache_control_adapter' '--restart' '--restart-interval' '0' '--http-port' '80' '--https-port' '443' failed with code 255.

stdout:
httpd stop failed
1 /usr/sbin/httpd processes are killed
httpd stop failed
1 /usr/sbin/httpd processes are killed


stderr:
httpd stop failed
1 /usr/sbin/httpd processes are killed
httpd stop failed
1 /usr/sbin/httpd processes are killed

file: /usr/local/psa/admin/plib/Service/Agent/Transport/Local/Exec.php
line: 98
code: 0
trace: #0 /usr/local/psa/admin/plib/Service/Agent/Transport/Local.php(58): Service_Agent_Transport_Local_Exec->process(0, 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(0, 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('966ecd31b17ace6...', Array, Object(Service_Agent_Log))
#3 /usr/local/psa/admin/plib/Template/Writer/Apache.php(82): Service_Agent->commit()
#4 /usr/local/psa/admin/plib/Template/Configuration/Applier.php(202): Template_Writer_Apache->restart()
#5 /usr/local/psa/admin/plib/Template/Configuration/Applier.php(117): Template_Configuration_Applier->_applyConfigurationsToServiceNode(1, Array)
#6 /usr/local/psa/admin/plib/WebServerManager/Adapter/Apache.php(125): Template_Configuration_Applier->applyConfiguration(true)
#7 /usr/local/psa/admin/plib/WebServerManager/Adapter/Apache.php(313): WebServerManager_Adapter_Apache->sync()
#8 /usr/local/psa/admin/plib/WebServerManager.php(199): WebServerManager_Adapter_Apache->reconfigureServer(Object(Db_Table_Row_ServiceNode))
#9 /usr/local/psa/admin/plib/api-common/Httpdmng.php(123): WebServerManager->reconfServer()
#10 /usr/local/psa/admin/sbin/httpdmng(13): Httpdmng->__construct()
#11 {main}

2012-03-12T13:48:49+01:00 ERR (3): Apache config (13315563940.50388700) generation failed: Can not restart web server: httpd stop failed
1 /usr/sbin/httpd processes are killed
httpd stop failed
1 /usr/sbin/httpd processes are killed

Can not restart web server: httpd stop failed
1 /usr/sbin/httpd processes are killed
httpd stop failed
1 /usr/sbin/httpd processes are killed
 
[root@xxx~]# rpm -q --queryformat='%{N}-%{V}-%{R}.%{arch}\n' httpd
httpd-2.2.3-63.el5.centos.1.i386
[root@xxx~]# rpm -q --queryformat='%{N}-%{V}-%{R}.%{arch}\n' httpd-devel
httpd-devel-2.2.3-63.el5.centos.1.i386
 
same problem here, any fix?

Everyday i got the apache offline in the morning when i arrive in the office, when i try to restart the apache i got:

Stopping httpd: [FAILED]
Starting httpd: (98)Address already in use: make_sock: could not bind to address [::]:80
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
[FAILED]


then i need to reboot the server, and works again, what could be? Thanks
 
Back
Top