Config folder deleted in LAMP Module

NethServer Version: 8
Module: LAMP

Hi everyone! I’m developing a small PHP application for internal use and have installed LAMP module to run it.

The container includes an APP folder (containing the application itself) and a CONFIG folder (kept separate and inaccessible from the internet, containing the configuration files needed for the app to work correctly).

After using it for a few days, I ran into an issue: I noticed that whenever the instance restarts, the CONFIG folder gets deleted, and I have to recreate it every time. Is there a way to fix this?

You could change the document root under advanced settings to a subdirectory of the app directory, for example “public”.

So you could put the app files to the new public directory and the config files to the app directory.
This way everything should be persistent and the config files (in the app directory) are not accessible from the internet.

As an alternative you could add another volume for your config directory as explained here but it’s not included in the backup.

I tried looking but can’t find the setting, these are the settings I see.

Which ns8-lamp version is installed? The current one is 1.3.3.

ns8-lamp is provided by the Nethforge repository. Is it enabled? See Software center | NethServer 8 documentation

Sometimes a browser refresh is needed to show new UI elements.

1 Like