NethServer Version: 8 Module: Webserver
I need to modify the php.ini for one of my virtual host in NS8 Modul Webserver.
Where do I find the php ini? phpinfo gave me as path /opt/bitnami/php/lib/php.ini. but I could’nt find it
What is the righr way to make changes? Can I just edit it in vim and restart the webserver?
Thank you for your Help.
When I do this, adding just the things I would cange in a default php.ini, then php does’nt work at all. When I try to open the index.php I’ll get a 404 file not found error.
I just added this lines
short_open_tag = ON
extension=pdo_mysql
pdo_mysql.default_socket=
The correct command in a php-fpm .conf file (for example php8.3-fpm-custom.d/dyn-9001.custom) is
php_admin_flag[short_open_tag] = on
I wasn’t able to change extension and pdo_mysql.default_socket values, maybe ns8-lamp/README.md at main · stephdl/ns8-lamp · GitHub which uses apache instead of nginx where php is configurable using .htaccess is the better choice for your app.
This is already set to pdo_mysql,mysqli in the webserver app.
it’s a self written database application.
It did run on an older php version I had on ns7.
Strange enough now the pdo error is’nt there anymore when I did remove the dyn-900X.custom lines again
There is still an error but i‘ll have to Look deeper into it. Maybe there are still some Setting missing. Or its becouse it was written for an older php Version.