How to set up Yaws web server on Ubuntu Server 10.10?

I would like to develop some web applications using Erlang and the Yaws web server. But I have a problem setting up Yaws on Ubuntu Server 10.10.

First I updated my Ubuntu system with

sudo apt-get update
sudo apt-get upgrade

Setting braking with apt-get

I installed Yaws with apt-get:

sudo apt-get install yaws

But when I start Yaws with yaws -i, I get this error message:

Yaws: Bad conf: "Can't find config file "

Then I tried to start Yaws with yaws -i --conf /etc/yaws/yaws.conf, but then I got this error message:

Yaws: Bad conf: "Can't open config file /etc/yaws/yaws.conf"

I think there are some issues with file permissions.

Install braking using the latest stable build

Now I tried installing Yaws using the latest stable build:

 wget http://yaws.hyber.org/download/yaws-1.89.tar.gz
 tar xfz yaws-1.89.tar.gz
 sudo apt-get install gcc
 cd yaws
 ./configure && make

But then I get errors at compile time:

epam.c:2: fatal error: pam_appl.h: No such file or directory
compilation terminated.
make[1]: *** [epam.o] Error 1
make[1]: Leaving directory `/home/jonas/yaws-1.89/c_src`
make: *** [all] Error 1

How to install Yaws web server on Ubuntu Server 10.10?

+3
2

, Yaws apt-get , Yaws. , , , Yaws:

$ sudo apt-get build-dep yaws

, Erlang, .

Build Config Run .

+5

/etc/yaws/yaws.conf , root. /etc/yaws/conf.d/, . Uncomment "id = debian_yaws" ( ) - .
  , : , : -D -heart - , ! - !

0

All Articles