kimchi-project / wok

A cherrypy framework for multi-purpose plug-ins
https://github.com/kimchi-project/wok/releases/latest
Other
236 stars 77 forks source link

Already own nginx installed, how can I do ? #257

Open qwrty-ftw opened 5 years ago

qwrty-ftw commented 5 years ago

Hi,

I would like to install wok/kimchi, but I already have my own nginx server in /opt/nginx/

How can I do to install Wok without nginx ?

What configuration should I move to my nginx folder ? Only Nginx conf : "wok.conf" from wok ? and adapt configuration file to my system ?

Thnak you :)

saulhuerta commented 5 years ago

Hello, remember there is a config file por Wok in Nginx's path:

/etc/nginx/conf.d/wok.conf (...in CentOS)

You can add some config there or add another config file for your project. In my case, I added another configuration in wok.conf file and all is ok.

Regards

alinefm commented 5 years ago

Hi @ochbob!

As @saulhuerta pointed out, you only need the https://github.com/kimchi-project/wok/blob/master/src/nginx/wok.conf to make it working with your existing nginx server.

qwrty-ftw commented 5 years ago

Hello, thank you.

But when installing wok package, nginx is required and I havent installed nginx from package management. And I do not want install nginx from package management.

alinefm commented 5 years ago

Hello, thank you.

But when installing wok package, nginx is required and I havent installed nginx from package management. And I do not want install nginx from package management.

So I don't think there is any other solution unless you don't install Wok and Kimchi using package management. Get the code and install it manually.

qwrty-ftw commented 5 years ago

That is what I'm thinking about.

So I finally install the nginx package and move my old nginx installation. When i tried to install the wok's dependencies, I have some issue with pyhton3-pam and python3-ldap As i'm running Debian and not Ubuntu I think it's not the same package (those package does not exist on Debian Stretch)

What packages should I install instead ?

alinefm commented 5 years ago

According to https://packages.debian.org/stretch/python/, you might need to install python3-pampy and python3-ldap3.

Let me know if that works.