Helpful Information
 
 
Category: PHP / MySQL
Question about my local php.ini and custom changes

I know I have seen this answered somewhere but have not been able to find this again.

According to phpinfo() my php.ini file that is used is located in /ftp/usr/lib/php.ini. Okay fine. So, I want to edit this file and make changes like turning on full messaging or something. This file is owned by root and I do not have permission to change it.

Somewhere I read that I can create my own local copy and present (I think in my cgi-bin) it will be used instead of the global php.ini located in /ftp/usr/lib.

Can anyone advise on this proceedure?
Paul
:?:

Also, I did find this in PArt 6 of the WH manual. It states nothing about an alternate php.ini file only a warning about making changes to php.ini

PHP

PHP is a very popular web scripting language allowing you to make your site dynamic, use databases, etc. With your installation of PHP, you will have direct control of the php.ini file which sets various options for PHP. You can find the php.ini here:

/ftp/usr/lib/php.ini
Note: Modifying the php.ini is only recommended for advanced users as you can break your scripts if not done properly.

In my site, php.ini is owned by root but is part of the vuser group, so you should be able to edit it.

-rw-rw-r-- 1 root vuser 29366 Oct 3 04:27 php.ini










privacy (GDPR)