D
D
DNS_Connect2011-02-05 23:59:46
Nginx
DNS_Connect, 2011-02-05 23:59:46

Nginx + ISPmanager Lite?

There is a VPS running Debian 5 Lenny. There is an ISPmanager Lite license and it is actually installed. The problem is that you need to somehow completely abandon Apache2 and completely switch to Nginx with the ability to manage it directly from the ISP (restart nginx, add domains to its folder, etc.). I've been suffering for a week now, I tried it according to different manuals, including from habr.
Khabrovchane, you are the only ones who can suggest a solution to me. Many thanks in advance for any insight.

Answer the question

In order to leave comments, you need to log in

6 answer(s)
D
DorBer, 2011-02-07
@DNS_Connect

Did something similar for myself. Apache cannot be abandoned, because, as mentioned above, ispmanager works on it, but it can already be trimmed in resources.
The isp list of hosts is taken from the Apache config, so we specify a different config in the isp settings. I copied the real one under a different name (apache2.isp.conf) and pointed it to /usr/local/ispmgr/etc/ispmgr.conf.
Now the Apache does not interfere with us. But it may turn out that a tricky setup for nginx hosts is required. As far as I know, the template in isp is not so easy to change. Then you need to pick the documentation on the topic of events. In my case, I hung several hooks for certain actions with hosts and I myself form the nginx configs. To do this, I made a file /usr/local/ispmgr/etc/ispmgr_mod_vhosts.xml:

<?xml version="1.0" encoding="UTF-8"?>
<mgrdata>
    <handler name="vhosts_edit" type="cgi">
    	<event after="yes">wwwdomain.edit</event>
    </handler>
</mgrdata>

And put vhosts_edit in the /usr/local/ispmgr/addon folder. On what to write it, your business, at least in php.

D
DorBer, 2011-02-07
@DorBer

Regarding the update of nginx:
1. Download the sources of the latest
2. Download the sources of pcre (it seems 8.12 is the latest)
3. See the build parameters of the current version of nginx -V
4. And then in the folder with the nginx sorts:
./configure ... a lot of things that happened ... --with-pcre=<path to pcre sorts>
make
make install

S
Sergey Tsepelev, 2011-02-06
@tsepelev

It will not be possible to completely abandon Apache, because. it is needed for ISPManager to work. The Apache + nginx bundle can be easily configured, but it is not clear how to leave only the latter (if you only tweak the configs manually). Try writing to ISPManager support, they should help.

S
Stanislav Chernov, 2014-07-10
@uinx

Everything is described here: en.5.ispdoc.com/index.php/%D0%9D%D0%B0%D1%81%D1%82...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question