Report this

What is the reason for this report?

FreeBSD + NGINX! How to configure and setup?

Posted on April 26, 2015

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?



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!

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.

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.

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

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.