• 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

Apache don´t work with upgrade 12.0

JorgeN

New Pleskian
Hi everybody,

I has Parallels Ples 11.X with Cent OS 6.5 and yesterday i tried to upgrade to PLESK 12.0.18.

Now, i can´t start the apache module because it´s impossible to create the config file

The issue is:
-----------------------------------
Details: [2014-09-17 19:46:27] ERR [util_exec] proc_close() failed
[2014-09-17 19:46:34] ERR [panel] Apache config (14109759800.30476400) generation failed: Template_Exception: Can not restart web server: Service /etc/init.d/httpd failed to start
Service /etc/init.d/httpd failed to start

file: /usr/local/psa/admin/plib/Service/Driver/Web/Server/Apache.php
line: 104
code: 0
Can not restart web server: Service /etc/init.d/httpd failed to start
Service /etc/init.d/httpd failed to start

----------------------------------------

I try with cp the certifies and writing a new private key but it didn´t work.

I try to reinstall the Plesk but it didn´t work.

I haven´t any idea more.... Please help
 
nano +104 /usr/local/psa/admin/plib/Service/Driver/Web/Server/Apache.php

What is at that line?

also try running apachectl -t and post the output here. (do this first)
 
with apachectl -t the output is:
Syntax OK

with nano the output is (many symbols):

php die("The file {$_SERVER['SCRIPT_FILENAME']} is part of Plesk distribution. It cannot be run outside of Plesk environment.\n");
__sw_loader_pragma__('PLESK12');
?>
ɮ^@h^T^X���'PB%^^[ܮ's^BX,^]�^Xl��c��/�^B֮Ȳf�v{�i0k~Stòu��Ҳ^K˲t�ڲ��6^X֯^Fiӯ^Xw7,͙F�>��.�_�yB�^ZR^Y�^A?8��w��i"�vܡI�6ي�H<`��^X^AA(j�Gj�؊̊D�p,R���K�r^]���<�Eb�H�^TĊ@i�sfP�]X�7�#�t�^[ϋ���Ӌ�`�^A�^T��A�6m�T͋�����ic�������: QnNI���!���/��q�wU�+�$
�|i[Ӯu٬��A��pv
g^@���&ޮ�Zخ�^Bˮ>C_"^^�39�%�^D�]�ۮ^S��M�o��_Yޮ� ��?�bu��z^K�خ?T� ^T��®��v�^CG^HL���f�^L����j�^PM�j;T^W���[�~w^U���&?ŧ2v�5�/�֧^Pn�*�^G �:#��QLe ���!^Wй����FT���^\<[F�o��A9Sl¹ܹ08IG��;�m����^Cʹι���ʹ,�?Թ^Q�k^@���ǃݤ^�ĻM0�y7λu�ջk^H^F ^FK�T���U]VE�^K^P^\�a��ʮ-
 
the output (apachectl -t) is:

Syntax OK

and the output (nano) is (many symbols) i write the nano for all lines because line 104 is with symbols:

?php
die("The file {$_SERVER['SCRIPT_FILENAME']} is part of Plesk distribution. It cannot be run outside of Plesk environment.\n");
__sw_loader_pragma__('PLESK12');
?>
ɹ^@h^T^X���'PB%^^[ܹ's^BX,^]깫^Xl�c��/�^BֹȲf�v{�i0k~Stòu��Ҳ^K˲t�ڲ沫�6^X֯^Fiӯ^Xw7,͙F�>䙫�.ᙫ_왫yB�^ZR^Y�^A?8��w�㙫i"�vܡI�6ي�H<`��^X^AA(j�Gj�؊̊D�p,R���K�r^]���<�Eb�H�^TĊ@i�sfP�]X�7銫#�t�^[ϋ��㋫Ӌ`�^A�^T��A苫6m狫T͋勫����ic�������: QnNI���!���/$
�|i[Ӈu٬묫�A��pv
g^@�놫솫&ކꆫZ؆憫^Bˆ>C_"^^�39�%�^D�]�ۆ^S��M醫o�_Yކ�׆䆫�?�bu��z^K�؆?T� ^T��^Æ��v�^CG^HL���f�^L����j�^PM�j;T^W���[�~w^U↫��&?ŧ2v�5�/�֧^Pn�*�^G �:#��QLe ���!^Wй����FT���^\<[F�o��A9Sl¹ܹ08IG�ṫ;�m����^Cʹι���ʹ,㹫?Թ^Q�k^@���ǃݤ^�ĻM0�y7λu�ջk^H^F $
E퇫^K^P^\�a��ʇ-
 
The first output is:

Syntax ok

The second output i can´t write here because it´s symbols. At the start of the file is write:

php
die("The file {$_SERVER['SCRIPT_FILENAME']} is part of Plesk distribution. It cannot be run outside of Plesk environment.\n");
__sw_loader_pragma__('PLESK12');

and it is full of symbols like a corrupt file or a code file
 
Last edited:
No,

the first solution give me the same error:
------------------------------------------------------------------

Details: [2014-09-18 00:52:58] ERR [util_exec] proc_close() failed
[2014-09-18 00:53:05] ERR [panel] Apache config (14109943710.04448500) generation failed: Template_Exception: Can not restart web server: Service /etc/init.d/httpd failed to start
Service /etc/init.d/httpd failed to start

file: /usr/local/psa/admin/plib/Service/Driver/Web/Server/Apache.php
line: 104
code: 0
Can not restart web server: Service /etc/init.d/httpd failed to start
Service /etc/init.d/httpd failed to start
-------------------------------------------------------------------------------

the second give me Found errors:0 and Found Warning:1
------------------------------------------------------------------

the warning is in the step 10:

[2014-09-18 12:56:05][INFO] ==> STEP 10: Checking for SElinux state...
[2014-09-18 12:56:05][WARNING] SElinux in enforced mode is detected. It might lead to failures in configs regeneration because of invalid contexts.
Please check http://kb.parallels.com/115299 for details.
[2014-09-18 12:56:05][INFO] Result: Warning

i probe also with this article 115299, and the problem persist.

My apache is down.

When i tries to rebuilt the configuration files of the httpd, the following message appear:

No se ha podido configurar el servidor web:Execution failed. Command: httpdmng Arguments: Array ( [0] => --reconfigure-all ) Details: Error occured while sending feedback. HTTP code returned: 502 Error occured while sending feedback. HTTP code returned: 502 Execution failed. Command: httpdmng Arguments: Array ( [0] => --reconfigure-domains [1] => aldardeco.es,arduinocanarias.es,atavico.es,autoescueladulce.es,impresoras3dcanarias.com,larayuela-tenerife.es,pluscanarias.es,raspberrycanarias.es,rawbits.es,rawbits.eu,zeusnet.es ) Details: [2014-09-18 01:06:56] ERR [util_exec] proc_close() failed [2014-09-18 01:07:02] ERR [panel] Apache config (14109952090.14691800) generation failed: Template_Exception: Can not restart web server: Service /etc/init.d/httpd failed to start Service /etc/init.d/httpd failed to start file: /usr/local/psa/admin/plib/Service/Driver/Web/Server/Apache.php line: 104 code: 0 Can not restart web server: Service /etc/init.d/httpd failed to start Service /etc/init.d/httpd failed to start
 
Back
Top