It is imperative that most Linux and Unix server config files are free of syntax errors! Otherwise, you may end up with a disaster. But fear not; there is an easy way to check for such mistakes in most common Unix services before you reload/restart them https://www.cyberciti.biz/tips/check-unix-linux-configuration-file-for-syntax-errors.html 👇 #linux #unix #opensource #freebsd
Here's a helpful tip for those using #Linux or #Unix web servers. Before you hit that reload command, it's always a good idea to test your server config file for syntax errors. You can do this easily as follows:
- For nginx: nginx -t
- For lighttpd: lighttpd -t -f lighttpd.conf
- For apache2: apache2 -t
If you want to check for syntax errors on other Linux/Unix servers, I have compiled a complete list for you https://www.cyberciti.biz/tips/check-unix-linux-configuration-file-for-syntax-errors.html
24 Examples To Make Sure Your #Unix / #Linux Configuration Files Are Free From Syntax Errors https://www.cyberciti.biz/tips/check-unix-linux-configuration-file-for-syntax-errors.html
076萌SNS is a social network, courtesy of 076. It runs on GNU social, version 2.0.2-beta0, available under the GNU Affero General Public License.
All 076萌SNS content and data are available under the Creative Commons Attribution 3.0 license.