I will enable user_ini.filename = ".user.ini"
like this you will be able to do what you want manually
I will enable user_ini.filename = ".user.ini"
like this you will be able to do what you want manually
That’s great. May be the same in the WordPress App?
https://github.com/search?q=repo%3ANethServer%2Fns8-wordpress%20uploads.ini&type=code
not sure it works, but you could have a custom php.ini, look the uploads.ini
I should have renamed differently
Hello Stephane
I’ve thought about it again. Actually, you need the option to change the PHP versions of an operative server during operation - as in NS7.
upgrade to new versions if they are required by the server scripts (e.g. Wordpress plugins).
downgrade to older versions if errors occur with new versions.
A different container is of little use if the server scripts (e.g. Worpress) have to be reinstalled and completely rebuilt.
Or I have misinterpreted your idea.
Sincerely, Marko
people stated that webserver was complicated, so this time I did a module with a bundle, php, mariadb & phpmyadmin, apache
one version of php is available: 8.3
I tried it in a test VM and solved it like that (the instructions from your link here helped a lot):
Assuming your wordpress instance is wordpress1, else change the file path accortingly.
Create a file named /home/wordpress1/.local/share/containers/storage/volumes/wordpress-app/_data/.htninja
with following content:
<?php
/*
+===========================================================================================+
| NinjaFirewall optional configuration file |
| |
| See: https://blog.nintechnet.com/ninjafirewall-wp-edition-the-htninja-configuration-file/ |
+===========================================================================================+
*/
// Connect to the DB and store the link into "$GLOBALS['nfw_mysqli']":
$GLOBALS['nfw_mysqli'] = new mysqli( 'mariadb-app', 'wordpress', 'wordpress', 'wordpress', '3306' );
// We need the table prefix too:
$GLOBALS['nfw_table_prefix'] = 'wp_';
Go to the NinjaFirewall Dashboard page in Wordpress and enable the Full WAF mode.
Awesome! Thank you Markus.