{"id":219,"date":"2018-12-24T17:05:42","date_gmt":"2018-12-24T17:05:42","guid":{"rendered":"https:\/\/unsrewiki.1sys1.com\/?p=219"},"modified":"2018-12-24T19:39:14","modified_gmt":"2018-12-24T19:39:14","slug":"219","status":"publish","type":"post","link":"https:\/\/server-help.org\/index.php\/2018\/12\/24\/219\/","title":{"rendered":"Centos 7 w\/WHM cpanel running CSF firewall (SSHD non-standard port) &#8211; Unable to create cpanel users &#038; postgres failing to start"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\"><br><\/h2>\n\n\n\n<p>After modifying SSHD.conf to the new port, and restarting SSHD, per other documentation\u2026<\/p>\n\n\n\n<p>Some errors after doing the above\u2026 <br>\n(XID 4f29va) The PostgreSQL service is down. at \/usr\/local\/cpanel\/Whostmgr\/Accounts\/Create.pm line 1226<\/p>\n\n\n\n<p>Failed to start PostgreSQL database server.<br>\nUnit postgresql.service entered failed state.<br>\npostgresql.service failed.<br>\npostgresql has failed. Contact your system administrator if the service does not automagically recover.<\/p>\n\n\n\n<p>To resolve the above error(s) you must also edit the \/etc\/csf\/csf.conf file. Edit the SSHD port from 22 to your non-standard port. Failing to update this, and restarting csf can cause issue. Postgres failing to start. Can&#8217;t create users cpanel.<\/p>\n\n\n\n<p>File \/ Path to Edit and Save:<br>\n\/etc\/csf\/csf.conf<\/p>\n\n\n\n<p>(SSHD port entry is at the very end of the conf file.)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>After modifying SSHD.conf to the new port, and restarting SSHD, per other documentation\u2026 Some errors after doing the above\u2026 (XID 4f29va) The PostgreSQL service is down. at \/usr\/local\/cpanel\/Whostmgr\/Accounts\/Create.pm line 1226 Failed to start PostgreSQL database server. Unit postgresql.service entered failed state. postgresql.service failed. postgresql has failed. Contact your system administrator if the service does not&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,7,1],"tags":[],"_links":{"self":[{"href":"https:\/\/server-help.org\/index.php\/wp-json\/wp\/v2\/posts\/219"}],"collection":[{"href":"https:\/\/server-help.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/server-help.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/server-help.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/server-help.org\/index.php\/wp-json\/wp\/v2\/comments?post=219"}],"version-history":[{"count":3,"href":"https:\/\/server-help.org\/index.php\/wp-json\/wp\/v2\/posts\/219\/revisions"}],"predecessor-version":[{"id":222,"href":"https:\/\/server-help.org\/index.php\/wp-json\/wp\/v2\/posts\/219\/revisions\/222"}],"wp:attachment":[{"href":"https:\/\/server-help.org\/index.php\/wp-json\/wp\/v2\/media?parent=219"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server-help.org\/index.php\/wp-json\/wp\/v2\/categories?post=219"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server-help.org\/index.php\/wp-json\/wp\/v2\/tags?post=219"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}