<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p style="margin-top:0;margin-bottom:0"></p>
<div>Hello, good afternoon, I'm Juan cuevas a student of systems engineering, greetings from Mexico-Guadalajara I have problem in apache2-localhost
<br>
last week I had some problems installing redmine, I installed ruby, buidler, rails, passenger, passenger module for apache2 and the necessary dependencies<br>
<br>
subsequently I have configured<br>
root @ cuevasalberto-ThinkPad-Edge-E431: / etc / apache2 # vim apache2.conf<br>
adding module:<br>
LoadModule passenger_module /var/lib/gems/2.3.0/gems/passenger-5.2.0/buildout/apache2/mod_passenger.so<br>
<IfModule mod_passenger.c><br>
PassengerRoot /var/lib/gems/2.3.0/gems/passenger-5.2.0<br>
PassengerDefaultRuby /usr/bin/ruby2.3<br>
</ IfModule><br>
<br>
configure add port 3000 in ports.conf<br>
I follow the steps in the following link<br>
https://gist.github.com/rotexdegba/e39b6b4f85ac580fe5e0434dbb00beb0<br>
<br>
<br>
Restart apache2 with the command:<br>
sudo service apache2 restart<br>
and it takes the process, I stopped it with control z<br>
<br>
The following apache2 error message is from today, taking into account that I have deleted the configurations of the .conf and the link<br>
https://gist.github.com/rotexdegba/e39b6b4f85ac580fe5e0434dbb00beb0<br>
being as from the beginning, but I still have the apache2.conf configuration <br>
<br>
<br>
root@cuevasalberto-ThinkPad-Edge-E431:/# systemctl status apache2.service<br>
¡ñ apache2.service - LSB: Apache2 web server<br>
Loaded: loaded (/etc/init.d/apache2; bad; vendor preset: enabled)<br>
Drop-In: /lib/systemd/system/apache2.service.d<br>
©¸©¤apache2-systemd.conf<br>
Active: failed (Result: timeout) since s¨¢b 2018-02-24 15:06:58 CST; 11min ago<br>
Docs: man:systemd-sysv-generator(8)<br>
Process: 7833 ExecStart=/etc/init.d/apache2 start (code=killed, signal=TERM)<br>
CGroup: /system.slice/apache2.service<br>
©À©¤1500 /bin/sh /usr/sbin/apache2ctl start<br>
©À©¤1515 /usr/sbin/apache2 -k start<br>
©À©¤1525 PassengerAgent watchdog <br>
©À©¤7844 /bin/sh /usr/sbin/apache2ctl start<br>
©À©¤7847 /usr/sbin/apache2 -k start<br>
©¸©¤7848 PassengerAgent watchdog <br>
<br>
<br>
feb 24 15:01:58 cuevasalberto-ThinkPad-Edge-E431 systemd[1]: Stopped LSB: Apache2 web server.<br>
feb 24 15:01:58 cuevasalberto-ThinkPad-Edge-E431 systemd[1]: Starting LSB: Apache2 web server...<br>
feb 24 15:01:58 cuevasalberto-ThinkPad-Edge-E431 apache2[7833]: * Starting Apache httpd web server apache2<br>
feb 24 15:01:58 cuevasalberto-ThinkPad-Edge-E431 apache2[7833]: [Sat Feb 24 15:01:58.337147 2018] [so:warn] [pid 7847] AH01574: module passenger_module is already loaded, skipping<br>
<br>
feb 24 15:01:58 cuevasalberto-ThinkPad-Edge-E431 apache2[7833]: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message<br>
feb 24 15:06:58 cuevasalberto-ThinkPad-Edge-E431 systemd[1]: apache2.service: Start operation timed out. Terminating.<br>
feb 24 15:06:58 cuevasalberto-ThinkPad-Edge-E431 systemd[1]: Failed to start LSB: Apache2 web server.<br>
feb 24 15:06:58 cuevasalberto-ThinkPad-Edge-E431 systemd[1]: apache2.service: Unit entered failed state.<br>
feb 24 15:06:58 cuevasalberto-ThinkPad-Edge-E431 systemd[1]: apache2.service: Failed with result 'timeout'.<br>
ESCOC<br>
<br>
<br>
I made this configuration today<br>
in mods-available and mods-enabled I have<br>
<IfModule mod_passenger.c><br>
PassengerRoot /usr/lib/ruby/vendor_ruby/phusion_passenger/locations.ini<br>
PassengerDefaultRuby /usr/bin/ruby<br>
</IfModule><br>
<br>
<br>
How can I fix the problem of apache2 localhost and can I have redmine on my machine?</div>
<br>
<p></p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<br>
<br>
<div style="color: rgb(0, 0, 0);">
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>De:</b> systemd-devel <systemd-devel-bounces@lists.freedesktop.org> en nombre de systemd-devel-request@lists.freedesktop.org <systemd-devel-request@lists.freedesktop.org><br>
<b>Enviado:</b> viernes, 23 de febrero de 2018 06:00 a. m.<br>
<b>Para:</b> systemd-devel@lists.freedesktop.org<br>
<b>Asunto:</b> systemd-devel Digest, Vol 94, Issue 25</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">Send systemd-devel mailing list submissions to<br>
systemd-devel@lists.freedesktop.org<br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
<a href="https://lists.freedesktop.org/mailman/listinfo/systemd-devel" id="LPlnk576284" previewremoved="true">
https://lists.freedesktop.org/mailman/listinfo/systemd-devel</a>
<div id="LPBorder_GT_15195150435460.009925155898639071" style="margin-bottom: 20px; overflow: auto; width: 100%; text-indent: 0px;">
<table id="LPContainer_15195150435320.23854804557453912" style="width: 90%; background-color: rgb(255, 255, 255); position: relative; overflow: auto; padding-top: 20px; padding-bottom: 20px; margin-top: 20px; border-top: 1px dotted rgb(200, 200, 200); border-bottom: 1px dotted rgb(200, 200, 200);" role="presentation" cellspacing="0">
<tbody>
<tr style="border-spacing: 0px;" valign="top">
<td id="TextCell_15195150435430.5662116839414134" style="vertical-align: top; position: relative; padding: 0px; display: table-cell;" colspan="2">
<div id="LPRemovePreviewContainer_15195150435430.2850126543735765"></div>
<div id="LPTitle_15195150435430.5518347992892046" style="top: 0px; color: rgb(33, 33, 33); font-weight: 400; font-size: 21px; font-family: "wf_segoe-ui_light", "Segoe UI Light", "Segoe WP Light", "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif; line-height: 21px;">
<a id="LPUrlAnchor_15195150435440.9599066279146808" style="text-decoration: none;" href="https://lists.freedesktop.org/mailman/listinfo/systemd-devel" target="_blank">systemd-devel Info Page - freedesktop.org</a></div>
<div id="LPMetadata_15195150435450.7254474676386661" style="margin: 10px 0px 16px; color: rgb(102, 102, 102); font-weight: 400; font-family: "wf_segoe-ui_normal", "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif; font-size: 14px; line-height: 14px;">
lists.freedesktop.org</div>
<div id="LPDescription_15195150435450.1829992549952233" style="display: block; color: rgb(102, 102, 102); font-weight: 400; font-family: "wf_segoe-ui_normal", "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif; font-size: 14px; line-height: 20px; max-height: 100px; overflow: hidden;">
This is the main systemd mailing list. The place where technical stuff is discussed and patches should be posted. Mail submission requires subscription.</div>
</td>
</tr>
</tbody>
</table>
</div>
<br>
or, via email, send a message with subject or body 'help' to<br>
systemd-devel-request@lists.freedesktop.org<br>
<br>
You can reach the person managing the list at<br>
systemd-devel-owner@lists.freedesktop.org<br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of systemd-devel digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
1. Why did you set MountFlags=slave in systemd-udevd.service.in<br>
(Hongzhi, Song)<br>
2. Re: Why did you set MountFlags=slave in<br>
systemd-udevd.service.in (Lennart Poettering)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Thu, 22 Feb 2018 20:52:26 +0800<br>
From: "Hongzhi, Song" <hongzhi.song@windriver.com><br>
To: <systemd-devel@lists.freedesktop.org><br>
Subject: [systemd-devel] Why did you set MountFlags=slave in<br>
systemd-udevd.service.in<br>
Message-ID: <2c3136a5-eb82-c201-1230-86c68f8bc332@windriver.com><br>
Content-Type: text/plain; charset="utf-8"; format=flowed<br>
<br>
Hi,<br>
<br>
systemd, upstream commit id c2c13f2df42e0691aecabe3979ea81cd7faa35c7<br>
<br>
You set MountFlags=slave just for keeping mounts done by udev rules <br>
private to udevd.<br>
<br>
So all block device mounted by systemd-udevd is unvisible for host.<br>
<br>
I don't know why. And is there any bad effect, if I change slave to shared ?<br>
<br>
Thanks for your help.<br>
<br>
BR£¬<br>
<br>
Hongzhi.Song<br>
<br>
<br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Fri, 23 Feb 2018 12:06:04 +0100<br>
From: Lennart Poettering <lennart@poettering.net><br>
To: "Hongzhi, Song" <hongzhi.song@windriver.com><br>
Cc: systemd-devel@lists.freedesktop.org<br>
Subject: Re: [systemd-devel] Why did you set MountFlags=slave in<br>
systemd-udevd.service.in<br>
Message-ID: <20180223110604.GA3336@gardel-login><br>
Content-Type: text/plain; charset=us-ascii<br>
<br>
On Do, 22.02.18 20:52, Hongzhi, Song (hongzhi.song@windriver.com) wrote:<br>
<br>
> Hi,<br>
> <br>
> systemd, upstream commit id c2c13f2df42e0691aecabe3979ea81cd7faa35c7<br>
> <br>
> You set MountFlags=slave just for keeping mounts done by udev rules private<br>
> to udevd.<br>
> <br>
> So all block device mounted by systemd-udevd is unvisible for host.<br>
> <br>
> I don't know why. And is there any bad effect, if I change slave to shared ?<br>
<br>
Well, we generally try to run all our services with sandboxes that are<br>
as tight as we can make them. udev can run arbitrary stuff from its<br>
rules hence the sandbox can't be made too tight unfortunately.<br>
<br>
MountFlags=slave is essentially a sandboxing setting: it detaches<br>
mount() operations done within the service from the rest of the<br>
system.<br>
<br>
While udev rules can do pretty much everything, we do know that doing<br>
mount operations themselves is not the best of ideas, and there are<br>
better approaches. That's because udev rules should be quick, and<br>
mounting isn't necessarily (in particular on dirty fs).<br>
<br>
Specifcally, there are three schemes that are much preferable:<br>
<br>
1. Use TAG+="systemd", ENV{SYSTEMD_WANTS}+="foobar.mount" in udev<br>
rules to asynchronously pull in mount units from udev rules. <br>
<br>
2. Invoke "systemd-mount" from udev rules, which will spawn transient<br>
automount and mount units for devices. This is generally the best<br>
way in particular in embedded applications to deal with<br>
hotpluggable media. It optionally runs fsck before mounting for<br>
you, and it it uses automounts for keeping the actual window when a<br>
device is mounted as brief as possible, in order to maximize the<br>
chance that the file system remains in a fully clean state, since<br>
it's essentially unmounted whenever idle. If you have hotplug media<br>
this means you get the best chance of leaving the fs in a clean<br>
state, and getting it back into a clean state if it evers gets into<br>
an unclean state.<br>
<br>
3. Use a daemon such as udisks to manage hotplugs of devices.<br>
<br>
That all said, you can also deviate from upstream and simply drop the<br>
MountFlags=slave, but of course, this means you lose compatibility<br>
with upstream on this.<br>
<br>
Lennart<br>
<br>
-- <br>
Lennart Poettering, Red Hat<br>
<br>
<br>
------------------------------<br>
<br>
Subject: Digest Footer<br>
<br>
_______________________________________________<br>
systemd-devel mailing list<br>
systemd-devel@lists.freedesktop.org<br>
<a href="https://lists.freedesktop.org/mailman/listinfo/systemd-devel" id="LPlnk439778" previewremoved="true">https://lists.freedesktop.org/mailman/listinfo/systemd-devel</a>
<div id="LPBorder_GT_15195150441080.13520196951173424" style="margin-bottom: 20px; overflow: auto; width: 100%; text-indent: 0px;">
<table id="LPContainer_15195150441050.8230474946566314" style="width: 90%; background-color: rgb(255, 255, 255); position: relative; overflow: auto; padding-top: 20px; padding-bottom: 20px; margin-top: 20px; border-top: 1px dotted rgb(200, 200, 200); border-bottom: 1px dotted rgb(200, 200, 200);" role="presentation" cellspacing="0">
<tbody>
<tr style="border-spacing: 0px;" valign="top">
<td id="TextCell_15195150441060.06689300981792068" style="vertical-align: top; position: relative; padding: 0px; display: table-cell;" colspan="2">
<div id="LPRemovePreviewContainer_15195150441060.45356875674301134"></div>
<div id="LPTitle_15195150441060.2574031535535778" style="top: 0px; color: rgb(33, 33, 33); font-weight: 400; font-size: 21px; font-family: "wf_segoe-ui_light", "Segoe UI Light", "Segoe WP Light", "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif; line-height: 21px;">
<a id="LPUrlAnchor_15195150441070.2970364618383363" style="text-decoration: none;" href="https://lists.freedesktop.org/mailman/listinfo/systemd-devel" target="_blank">systemd-devel Info Page - freedesktop.org</a></div>
<div id="LPMetadata_15195150441070.8034097675652659" style="margin: 10px 0px 16px; color: rgb(102, 102, 102); font-weight: 400; font-family: "wf_segoe-ui_normal", "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif; font-size: 14px; line-height: 14px;">
lists.freedesktop.org</div>
<div id="LPDescription_15195150441070.45246391232341254" style="display: block; color: rgb(102, 102, 102); font-weight: 400; font-family: "wf_segoe-ui_normal", "Segoe UI", "Segoe WP", Tahoma, Arial, sans-serif; font-size: 14px; line-height: 20px; max-height: 100px; overflow: hidden;">
This is the main systemd mailing list. The place where technical stuff is discussed and patches should be posted. Mail submission requires subscription.</div>
</td>
</tr>
</tbody>
</table>
</div>
<br>
<br>
<br>
------------------------------<br>
<br>
End of systemd-devel Digest, Vol 94, Issue 25<br>
*********************************************<br>
</div>
</span></font></div>
</div>
</div>
</body>
</html>