The official website says that it can be disabled only in the php.ini configuration file itself. I have Ubuntu with Apache2 and PHP as a module for Apache . There these php.ini as many as 3 files. I have disabled this directive at all and after restarting the server it still works. How is that even possible? I erased everything in php.ini . Pat I look through phpinfo() ; and there is a whole list of these functions. In general, I do not understand where he takes them. Maybe this directive should be disconnected somewhere else?

I did everything under the root. All changes are preserved.

  • php_ini_set in .htaccess and in vhost? - zb '
  • one
    Run echo phpinfo (); look at what path php.ini is loaded (at the very beginning), this is the file in which you need to make changes. If you installed PHP5, then the configuration file usually lies along this path: /etc/php5/apache2/php.ini - Jony

1 answer 1

Did you do it? sudo gedit /etc/php5/apache2/php.ini should help!

The bottom line is that if you edit php.ini not under root, the changes may not be saved due to lack of rights!