mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-08-18 21:33:39 -09:00
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 <fiona.klute@gmx.de> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
304 B
304 B