Re: [Buildroot] [PATCH 1/2] package/apache: use "Debian" filesystem layout to fix read-only rootfs
Thomas Petazzoni via buildroot <[email protected]>
| Newsgroups | net.busybox.buildroot |
|---|---|
| Message-ID | <aoHRf8QWmhNWsjZC@windsurf> |
On Thu, Jul 02, 2026 at 01:04:08AM +0200, Fiona Klute via buildroot wrote: > The previous configuration placed both logs and PID file in /var/logs, > which is not writable with a read-only rootfs (e.g. squashfs), as well > as non-standard. Starting HTTPD during boot failed with: > > (30)Read-only file system: AH00091: httpd: could not open error log file /var/logs/error_log. > AH00015: Unable to open logs > > An additional issue was that the Buildroot-default --prefix=/usr > override meant various Apache-internal directories (e.g. htdocs) were > placed directly in /usr. Note that the upstream default prefix is > /usr/local/apache2, not /usr/local. > > Using the "Debian" layout provides a standard-compatible layout with > logs in /var/log/apache2 and PID file in /var/run/apache2 (both in > tmpfs with the default Buildroot fstab). Both directories need to > exist when the server starts, so handle that in the init script. > > Signed-off-by: Fiona Klute <[email protected]> Thanks, series applied! Thomas -- Thomas Petazzoni, co-owner and CEO, Bootlin Embedded Linux and Kernel engineering and training https://bootlin.com _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot