Document Root in RAM

Alles, was den Apache betrifft, kann hier besprochen werden.

Document Root in RAM

Postby sporex » 10. May 2022 11:57

Hello, pls help me.
I am desparately trying to set up an SD card read only image (Raspberry Pi Debian 11) with Apache2 2.4.53
In /etc/fstab I have transferred the /tmp folder to RAM and to use it as the Document Root
Code: Select all
 tmpfs           /tmp            tmpfs   nodev,nosuid          0 0

Unfortunately this is not possible. Configuration warning AH00112 and no access from browser forbidden
I can shift the Document Root to any other directory on the SD card, thus it is not a misconfiguration on my part.

I have the same setup (Document Root in RAM /tmp) on other RPi units with Debian 8 and Apache2 2.4.10 where it works.

The question is now: Is that a problem of Apache version 2.4.53 or a problem of Debian 11?
And most important: Is there a solution to it
Pls note: I want to set up a very basic web server that only serves text files, the most basic you could imagin!

Kind regards Sporex
sporex
 
Posts: 2
Joined: 10. May 2022 11:27
XAMPP version: 1.1
Operating System: debian 11

Re: Document Root in RAM

Postby sporex » 11. May 2022 12:45

Fortunately I found the answer to this question here:

https://stackoverflow.com/questions/53993255/apache-2-4-wont-serve-from-tmp#new-answer

The /tmp directory is explicitely excluded from usage as a document root.

I will use /srv and make it tmpfs
sporex
 
Posts: 2
Joined: 10. May 2022 11:27
XAMPP version: 1.1
Operating System: debian 11


Return to Apache

Who is online

Users browsing this forum: No registered users and 224 guests