Koozali.org: home of the SME Server

Changing a php.ini setting for only one version of PHP

Offline wdepot

  • ****
  • 113
  • +0/-0
    • http://westerndepot.com
Changing a php.ini setting for only one version of PHP
« on: April 25, 2026, 09:20:19 PM »
I'm using an SME11beta server as a test server for web programming and as such I have used Webhosting to enable all PHP error messages so I can see when something is wrong. However when trying to test with PHP8.5 I now get the following error message on EVERY page regardless of fact that I don't use that feature:
Code: [Select]
Deprecated: Deriving $_SERVER['argv'] from the query string is deprecated. Configure register_argc_argv=0 to turn this message off in Unknown on line 0
Just as a test I tried a file that contained only the following:
Code: [Select]
<?php echo "Hello."?>and still got the error message.

Looking at the documentation for php-fpm it would appear that I need to create a custom template  that contains a line reading
Code: [Select]
php_admin_flag[register_argc_argv] = off

The question is what should I name the file, where exactly in the custom-templates folder should I put it, and how do I make sure that it only gets added to PHP 8.5?

Offline ReetP

  • *
  • 4,049
  • +6/-0
Re: Changing a php.ini setting for only one version of PHP
« Reply #1 on: April 26, 2026, 01:28:28 PM »
Yet again open a bug please.

That's it.
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline ReetP

  • *
  • 4,049
  • +6/-0
Re: Changing a php.ini setting for only one version of PHP
« Reply #2 on: April 26, 2026, 01:33:17 PM »
And just to confirm.... You are using a Beta.

Things that normally should 'just work' are likely broken - we need more people to test. Just nowhere near enough help.

PHP85 has only just had support added, and likely the defaults need modifying.

Forums are not the place for these issues, just general help.

Either talk to us on Rocket, or open a bug.

Thanks.
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline Jean-Philippe Pialasse

  • *
  • 2,978
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com