• 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.

Issue 502 nginx error

Sinair P. Junior

New Pleskian
I am using aws and ec2, the instance is t2.mediun.
installed with centos webhost, by default the hd is 10gb
I created a volume of 500gb and I inserted in this instance
when srv normal srv, works perfectly.
when I enable the 500gb hd with transvhosts
I can not view published site content.
I used Plesk Repair Utility and it still gives error

Can someone help?
 
I am using aws and ec2, the instance is t2.mediun.
installed with centos webhost, by default the hd is 10gb
I created a volume of 500gb and I inserted in this instance
when srv normal srv, works perfectly.
when I enable the 500gb hd with transvhosts
I can not view published site content.
I used Plesk Repair Utility and it still gives error

Can someone help?
When you open your hosted sites what sort of error do you have exactly? What error messages do you have in error logs of your sites?
 
Home-Plesk Onyx:
New configuration files for the Apache web server were not created due to the errors in configuration templates: Can not restart web server: Feb 13 10:28:47 hulk.sinair.biz systemd[1]: Starting The Apache HTTP Server... Feb 13 10:28:47 hulk.sinair.biz httpd[24610]: httpd: Syntax error on line 353 of /etc/httpd/conf/httpd.conf: Syntax error on line 7 of /etc/httpd/conf.d/zz010_psa_httpd.conf: Could not open configuration file /etc/httpd/conf/plesk.conf.d/vhosts/dracristinalopes.com.br.conf: Permission denied Feb 13 10:28:47 hulk.sinair.biz systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE Feb 13 10:28:47 hulk.sinair.biz kill[24612]: kill: cannot find process "" Feb 13 10:28:47 hulk.sinair.biz systemd[1]: httpd.service: control process exited, code=exited status=1 Feb 13 10:28:47 hulk.sinair.biz systemd[1]: Failed to start The Apache HTTP Server. Feb 13 10:28:47 hulk.sinair.biz systemd[1]: Unit httpd.service entered failed state. Feb 13 10:28:47 hulk.sinair.biz systemd[1]: httpd.service failed. . Detailed error descriptions were sent to you by email. Please resolve the issues and click here to generate broken configuration files once again or here to generate all configuration files. See the details in Configuration Troubleshooter
 

Attachments

  • Captura de tela de 2018-02-14 07-39-15.png
    Captura de tela de 2018-02-14 07-39-15.png
    174.4 KB · Views: 3
What is the output of command:

# ls -la /etc/httpd/conf/plesk.conf.d/vhosts/dracristinalopes.com.br.conf
 
lrwxrwxrwx. 1 root root 61 Fev 14 07:55 /etc/httpd/conf/plesk.conf.d/vhosts/dracristinalopes.com.br.conf -> /public_vhosts/system/dracristinalopes.com.br/conf/httpd.conf
 
Try to repair permissions and settings with

# plesk repair fs
# plesk repair web

BTW, I see that site Home works fine at the moment.
 
Thanks for the feedback
the link: dracristinalopes.com.br directs to another server that I have without plesk. I'm migrating to plesk. I put this as a test.

I executed the commands:
plesk repair fs (all ok)

plesk repair web
error:
Repair server-wide configuration parameters for web servers? [Y/n] y
Repairing server-wide configuration parameters for web servers .. [2018-02-14 08:03:57] ERR [util_exec] proc_close() failed ['/usr/local/psa/admin/bin/httpdmng' '--reconfigure-server'] with exit code [1]
[FAILED]
- httpdmng failed: [2018-02-14 08:03:53] ERR [util_exec]
proc_close() failed ['/usr/local/psa/admin/bin/apache-config'
'-t'] with exit code [1]
[2018-02-14 08:03:54] ERR [util_exec] proc_close() failed
['/usr/local/psa/admin/bin/apache-config' '-t'] with exit code
[1]
[2018-02-14 08:03:56] ERR [panel] Apache config
(15186026320.97077900) generation failed: Template_Exception:
httpd: Syntax error on line 353 of /etc/httpd/conf/httpd.conf:
Syntax error on line 7 of
/etc/httpd/conf.d/zz010_psa_httpd.conf: Could not open
configuration file
/etc/httpd/conf/plesk.conf.d/vhosts/dracristinalopes.com.br.conf:
Permission denied

file:
/usr/local/psa/admin/plib/Template/Writer/Webserver/Abstract.php
line: 75
code: 0
httpd: Syntax error on line 353 of /etc/httpd/conf/httpd.conf:
Syntax error on line 7 of
/etc/httpd/conf.d/zz010_psa_httpd.conf: Could not open
configuration file
/etc/httpd/conf/plesk.conf.d/vhosts/dracristinalopes.com.br.conf:
Permission denied
 
[root@hulk centos]# ll /public_vhosts/system/dracristinalopes.com.br/conf/httpd.conf
-rw-------. 1 root apache 4485 Fev 14 08:08 /public_vhosts/system/dracristinalopes.com.br/conf/httpd.conf
 
Do you have SELinux enabled?
If I'm not mistaken /public_vhosts/ is mounted on another disk? In this case, what is mount options there in fstab?
 
Back
Top