Mattermost is an open source, self-hosted Slack-alternative from https://mattermost.org.
It’s written in Golang and React and runs as a single Linux binary with MySQL or Postgres. Every month on the 16th a new compiled version is released under an MIT license.
I had a script working perfectly on a server…
after moving it to another, I got PHP Parse error: syntax error, unexpected end of file.
In my case, I had to allow short_open_tag to ON in php.ini … probably located at /etc/php.ini.
While trying to renew the letsencrypt cert I got the following error
produced an unexpected error: Problem binding to port 443: Could not bind to IPv4 or IPv6.. Skipping.
A simple solution – in my case – was to stop nginx, renew the cert and start nginx.
AuthUserFile /path/to/.htpasswd AuthType basic AuthName "Restricted Access" require valid-user <Files admin-ajax.php> Order allow,deny Allow from all Satisfy any </Files> <Files admin-post.php> Order allow,deny Allow from all Satisfy any </Files> <Files "\.(css|gif|png|js)$"> Order allow,deny Allow from all Satisfy any </Files>
yum clean all rm -rf /var/cache/yum
If we are just allowing both on AllowUsers in file
/etc/ssh/sshd_config, new users won’t be allowed to access the server.
So!, lets edit it a add the new user. Find AllowUser line and add it there.
sudo nano /etc/ssh/sshd_config
This should look something like
#PermitRootLogin without-password PermitRootLogin no StrictModes yes AllowUsers bofh newuser
Save and Exit!
service ssh restart
Now the user!
addgroup --system filetransf usermod -G filetransf username chown root:root /home/username chmod 755 /home/username cd /home/username chown username:filetransf *