After modifying SSHD.conf to the new port, and restarting SSHD, per other documentation…
Some errors after doing the above…
(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 has failed. Contact your system administrator if the service does not automagically recover.
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’t create users cpanel.
File / Path to Edit and Save:
(SSHD port entry is at the very end of the conf file.)
One thought on “Centos 7 w/WHM cpanel running CSF firewall (SSHD non-standard port) – Unable to create cpanel users & postgres failing to start”
Hey There. I found your blog using msn. This is a very well written article.
I’ll make sure to bookmark it and come back to read more of your useful info.
Thanks for the post. I will certainly comeback.