Another migration is coming which is going to primarily concern non-docker people (i.e. people who like doing things the hard way).
For everyone else, environment-based configuration is going to become a lot more useful, by including all core tunables (with extensibility for e.g. plugin options).
Unless you’re using compose, you will have to migrate your old config.php defaults into new putenv()-based format like this (keep plugin defines as-is for the time being):
I confess I made a series of bad decisions: the first one being on shared hosting, the second one git updating without really thinking of the consequences nor knowing enough to revert the chanes, the third one not being able to succesfully editing the new config.php in order to have TT-RSS working and being stuck with Exception while creating PDO object:could not find driver
I have updated classes/config.php with db user name and password but still get an exception
Exception while creating PDO object:SQLSTATE[08006] [7] fe_sendauth: no password supplied
disregard, now connection success, but config.php is mandatory
Also, config.php is becoming optional.
Is there any way of not setting one of the consts from the config class? In my old config I had define(‘DB_HOST’, ‘’); which made the driver use a unix socket rather than a TCP network socket.
With the new config not setting that means that it tries to use db as a hostname, setting it to something empty means it is still set as seen in the above post about that always being true rather than false.
For now I’ve got it working by just setting that to localhost, but now it’s using the TCP socket. Not a problem, but just wondered if there’s any way now to make it use the unix socket again.
SO, I’ve edited my config.php and replaced all options
define(‘OPTION’, ‘falue’);
which have definitions in classes/config.php with
putenv(“OPTION=VALUE”);
All the rest (legacy, I suppose) I left the same. Restarted my nginx, and still cannot get TT-RSS working *HTTP error 500)
You’re right fox, I’ll just forget about the unix sockets. Pointless these days anyway.
Something else though. The documentation in the wiki and examples in config.php-dist you have for pushenv do not have ; on the end. Isn’t that a syntax error in PHP? I’ve had to add ; on the end of all those lines in config.php for it to work.