Question

FreeBSD + NGINX! How to configure and setup?

I’ve been trying to setup NGINX with freeBSD with no luck. I’m quite new to the platform and programming in general. I’m just a web designer but I’m trying to expand my skill set and knowledge base on the backend.

I’ve found a few tutorials on the web about setting up NGINX with freeBSD but none of them seem to work. I’ve spent all of last night trying to setup up NGINX and get it to serve my web pages.

Can anyone help me with this? I recently created a droplet and installed NGINX. Where do I go from here?

Show comments

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

freeBSD+NGINX install

NGINX Port Step 1. cd /usr/ports/www/nginx

Pre-Install Configuration Step2. make config-recursive

Installation Step3. make install clean

Enable NGINX Step4. echo ‘nginx_enable=“YES”’ >> /etc/rc.conf

Start NGINX Step5. /usr/local/etc/rc.d/nginx start

Pay attention to permissions, users, and groups . Read the log files for error messages. Read the FreeBSD manual: https://www.freebsd.org/doc/handbook/

A 5. second Google search: “freebsd nginx” (w/o the quotes) gave me in the very 1st search result: A very promising web page on digitalocean.com “How To Install an Nginx, MySQL, and PHP (FEMP) Stack on FreeBSD 10.1” https://www.digitalocean.com/community/tutorials/how-to-install-an-nginx-mysql-and-php-femp-stack-on-freebsd-10-1

Learn how use a search engine, or use a search engine before you ask, please.