[prev in list] [next in list] [prev in thread] [next in thread] 

List:       apache-httpd-users
Subject:    [users@httpd] Multiple-instances script doesn't create the init script. Some help please.
From:       Stephane Kolijn <stephane.kolijn () gmail ! com>
Date:       2021-01-15 22:35:38
Message-ID: CAKt4vNUqdV4fQCgmMcgmq_Y1nnZu0=q2qOZ9ZZaU+22B9BsDMQ () mail ! gmail ! com
[Download RAW message or body]

Hi everyone,


I am trying to install a second instance of apache on debian. I used the
multiple instance script. during the installation it says:

root@nextcloudpi:/usr/share/doc/apache2/examples# sudo sh
setup-instance suitecrm2
Setting up /etc/apache2-suitecrm2 ...
systemd is in use, no init script installed
use the 'apache2@suitecrm2.service' service to control your new instance
sample commands:
systemctl start apache2@suitecrm2.service
systemctl enable apache2@suitecrm2.service
Setting up symlinks: a2enmod-suitecrm2 a2dismod-suitecrm2
a2ensite-suitecrm2 a2dissite-suitecrm2 a2enconf-suitecrm2
a2disconf-suitecrm2 apache2ctl-suitecrm2
Setting up /etc/logrotate.d/apache2-suitecrm2 and /var/log/apache2-suitecrm2 ...
Setting up /etc/default/apache-htcacheclean-suitecrm2
root@nextcloudpi:/usr/share/doc/apache2/examples#

So systemd is in use and i don't get a service file in init.d When i try to
start the service as mentioned in the code it says there is no
apache2-suitecrm2.service.

I have spent several hours googling this problem but although countless
hours reading I couldn't find anything similar.

How do i create a correct init.d file to start the service, or how do i
stop systemd from working so it is not in use and the script to create a
second instance is allowed to place the script.

I have looked in the documentation and found that there is a script
secondary-init-script, also to be found in /use/share/doc/Apache2/examples.
But I don't understand how this works or how to run it( see
https://alioth-lists-archive.debian.net/pipermail/pkg-apache-commits/2010-February/000296.html

Thanks

[Attachment #3 (text/html)]

<div dir="auto"><p style="margin-top:0px;margin-right:0px;margin-left:0px;padding:0px;border:0px;line-height:inherit;font-family:&quot;helvetica \
neue&quot;,helvetica,arial,sans-serif;font-size:15px;vertical-align:baseline;color:rgb(12,13,14);background-color:rgb(255,255,255)">Hi \
everyone,</p><p style="margin-top:0px;margin-right:0px;margin-left:0px;padding:0px;border:0px;line-height:inherit;font-family:&quot;helvetica \
neue&quot;,helvetica,arial,sans-serif;font-size:15px;vertical-align:baseline;color:rgb(12,13,14);background-color:rgb(255,255,255)"><br></p><p \
style="margin-top:0px;margin-right:0px;margin-left:0px;padding:0px;border:0px;line-height:inherit;font-family:&quot;helvetica \
neue&quot;,helvetica,arial,sans-serif;font-size:15px;vertical-align:baseline;color:rgb(12,13,14);background-color:rgb(255,255,255)">I \
am trying to install a second instance of apache on debian. I used the multiple \
instance script. during the installation it says:</p><pre \
style="margin-top:0px;padding:12px;border:0px;line-height:1.30769;font-family:consolas,menlo,monaco,&quot;lucida \
console&quot;,&quot;liberation mono&quot;,&quot;dejavu sans \
mono&quot;,&quot;bitstream vera sans mono&quot;,&quot;courier \
new&quot;,monospace,sans-serif;font-size:13px;vertical-align:baseline;max-height:600px;width:auto;border-radius:5px"><code \
style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font- \
weight:inherit;line-height:inherit;font-family:consolas,menlo,monaco,&quot;lucida \
console&quot;,&quot;liberation mono&quot;,&quot;dejavu sans \
mono&quot;,&quot;bitstream vera sans mono&quot;,&quot;courier \
new&quot;,monospace,sans-serif;vertical-align:baseline;max-height:300px;border-radius:0px">root@nextcloudpi:/usr/share/doc/apache2/examples# \
sudo sh setup-instance suitecrm2 Setting up /etc/apache2-suitecrm2 ...
systemd is in use, no init script installed
use the &#39;apache2@suitecrm2.service&#39; service to control your new instance
sample commands:
systemctl start apache2@suitecrm2.service
systemctl enable apache2@suitecrm2.service
Setting up symlinks: a2enmod-suitecrm2 a2dismod-suitecrm2 a2ensite-suitecrm2 \
a2dissite-suitecrm2 a2enconf-suitecrm2 a2disconf-suitecrm2 apache2ctl-suitecrm2 \
Setting up /etc/logrotate.d/apache2-suitecrm2 and /var/log/apache2-suitecrm2 ... \
Setting up /etc/default/apache-htcacheclean-suitecrm2 \
root@nextcloudpi:/usr/share/doc/apache2/examples# </code></pre><p \
style="margin-top:0px;margin-right:0px;margin-left:0px;padding:0px;border:0px;line-height:inherit;font-family:&quot;helvetica \
neue&quot;,helvetica,arial,sans-serif;font-size:15px;vertical-align:baseline;color:rgb(12,13,14);background-color:rgb(255,255,255)">So \
systemd is in use and i don&#39;t get a service file in init.d When i try to start \
the service as mentioned in the code it says there is no \
apache2-suitecrm2.service.</p><p \
style="margin-top:0px;margin-right:0px;margin-left:0px;padding:0px;border:0px;line-height:inherit;font-family:&quot;helvetica \
neue&quot;,helvetica,arial,sans-serif;font-size:15px;vertical-align:baseline;color:rgb(12,13,14);background-color:rgb(255,255,255)">I \
have spent several hours googling this problem but although countless hours reading I \
couldn&#39;t find anything similar.</p><p \
style="margin-top:0px;margin-right:0px;margin-left:0px;padding:0px;border:0px;line-height:inherit;font-family:&quot;helvetica \
neue&quot;,helvetica,arial,sans-serif;font-size:15px;vertical-align:baseline;color:rgb(12,13,14);background-color:rgb(255,255,255)">How \
do i create a correct init.d file to start the service, or how do i stop systemd from \
working so it is not in use and the script to create a second instance is allowed to \
place the script.</p><p \
style="margin-top:0px;margin-right:0px;margin-left:0px;padding:0px;border:0px;line-height:inherit;font-family:&quot;helvetica \
neue&quot;,helvetica,arial,sans-serif;font-size:15px;vertical-align:baseline;color:rgb(12,13,14);background-color:rgb(255,255,255)">I \
have looked in the documentation and found that there is a script \
secondary-init-script, also to be found in /use/share/doc/Apache2/examples. But I \
don&#39;t understand how this works or how to run it( see  <a \
href="https://alioth-lists-archive.debian.net/pipermail/pkg-apache-commits/2010-February/000296.html" \
style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font- \
weight:inherit;line-height:inherit;font-family:inherit;vertical-align:baseline;text-de \
coration-line:none;color:rgb(0,119,204)">https://alioth-lists-archive.debian.net/pipermail/pkg-apache-commits/2010-February/000296.html</a></p><p \
style="margin:0px;padding:0px;border:0px;line-height:inherit;font-family:&quot;helvetica \
neue&quot;,helvetica,arial,sans-serif;font-size:15px;vertical-align:baseline;color:rgb(12,13,14);background-color:rgb(255,255,255)">Thanks</p></div>




[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic