Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a VPS which has Apache webserver installed.

I'm trying to install Ngnix on it since my new server will be needing to handle large amount of connection simultaneously. I used this install guide and did:

cd  /usr/ports/www/nginx
make install clean

However I get this error:

adding module in /usr/ports/www/nginx/work/arut-nginx-dav-ext-module-0e07a3e
./configure: error: no /usr/ports/www/nginx/work/arut-nginx-dav-ext-module-0e07a3e/config was found
===>  Script "configure" failed unexpectedly.

I'm pretty new to FreeBSD and I am used to controlling my server using Direct Admin.

What shall I do next ?

share|improve this question
Which install guide did you follow? Can't you use any prebuilt / binary packages? – Pothi Oct 6 '13 at 2:16
What shell i do next ? BASH ... SCNR :) – that guy from over there Oct 6 '13 at 7:35
@AsafNevo There are pre-built binaries available for FreeBSD. If you run pkg_add -r nginx it will automatically install the binaries without building them locally. – Chris S Oct 6 '13 at 14:40
@thatguyfromoverthere 1. Bash isn't installed by default in FreeBSD. 2. He's not passing configure-options manually, he's using FreeBSD's automated ports system. It's not like anything in Linux that I'm aware of. – Chris S Oct 6 '13 at 14:42
Well, there is ---one little village--- on linux-distribution which uses a sort of ports. See Gentoo. :-) As for FreeBSD, The lines which come after the part which the OP posted usually contain just what do to. – Hennes Oct 6 '13 at 16:21

Firstly, make sure that your ports tree is up to date. If you haven't used portsnap before then run portsnap fetch ; portsnap extract. If you have used it before, then use portsnap fetch ; portsnap update. If you're not sure, run the first one.

  1. Now in /usr/ports/www/nginx, run make config.
  2. For the first build attempt, untick the HTTP_DAV_EXT and select OK. This is just temporary to make sure that everything else is working.
  3. Now run make which should compile.
  4. When this is completed, re-run make config, re-select HTTP_DAV_EXT and run make clean ; make.
  5. Once this builds then you can run make install which will have everything installed for you.

If you don't need DAV (which you might not), after step 3, just run make install clean.

share|improve this answer
thanks for a detailed answer. i will give it a try – Asaf Nevo Nov 10 '13 at 16:26

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.