Ns8-lamp needs testers

will try to reproduce this wk

1 Like

I coverd this problem by increasing the value of Rate Limiting within the firewall.

one additionaly question

What are the correct values for owner and group that you have to set recursively with chown if you want to run PHP scripts in a subdirectory?
lampN: lampN or numeric values that are defined in the lamp environment?

And if the latter, how do I determine the correct values?

Ps.: the Manufacturer’s recommendations

From outside the container it’s

[root@ns8rockytest ~]# ls -l /home/lamp1/.local/share/containers/storage/volumes/app/_data/
total 8
-rw-r--r--. 1 625292 624337 2318 Aug 28 11:14 index.php
--w-------. 1 lamp1  lamp1    22 Nov 27 21:07 phpinfo.php
drwxr-xr-x. 2 lamp1  lamp1    25 Nov 27 21:19 test
-rw-r--r--. 1 lamp1  lamp1     0 Nov 27 21:09 test.php

lampN is mapped to root in the container so from inside the container it’s root:root

Just for writing to files you’ll need www-data:staff, see ns8-lamp/README.md at main · stephdl/ns8-lamp · GitHub

[root@ns8rockytest ~]# runagent -m lamp1 podman exec -ti apache2-app ls -l /app
total 8
-rw-r--r--. 1 www-data staff 2318 Aug 28 09:14 index.php
--w-------. 1 root     root    22 Nov 27 20:07 phpinfo.php
drwxr-xr-x. 2 root     root    25 Nov 27 20:19 test
-rw-r--r--. 1 root     root     0 Nov 27 20:09 test.php
3 Likes

I did not catch really the question, but permission in web folder are interesting

look at the example at ns8-lamp/README.md at main · stephdl/ns8-lamp · GitHub

indeed the user is www-data (user) and at least this user must be allowed to write, but not in all the folder

The common error is chown -R www-data:staff /app

You need to do it only where apache needs to write a persistent data. Where you have php files, only the execution and read is needed. If the php app is able to modify the php files who knows what it could happen.

2 Likes

If I have a current webserver running on my NethServer 8. Do I have to remove webserver app to start an instance of NS8-LAMP?

@oneitonitram
@stephdl

No everything can live together

2 Likes

I have setup a test NS8 server to help test and try out NS8-LAMP as well as Vvveb CMS.

I have been looking at other options to WordPress. I believe this is a welcome addition that many people want to have as another app in NethServer 8.

1 Like

Wordpress is in nethforge

2 Likes

Search bar on this site is broken, or I would have found this topic before posting this:

2 Likes

Did you try to hit “Enter” two times after typing something in the search bar?

No, and if it needs that, it’s very broken. It does work if I press Enter twice.

1 Like