Php.ini configuration changes in shared hosting account

I am trying to override the default php.ini configuration using .htaccess / ini_set, but the configurations are not displayed at runtime. Here, PHP is installed as fastcgi, and I - in a public hosting account. Is there a way to change php.ini settings or do I need to upgrade my account to a virtual dedicated server. Please help in this regard.


Thanks for your answers, to be more complex, I want to change the max_execution_time of my php script, since the data processing with a huge log file needs to be analyzed. This script exceeds the standard configuration in php.in (e.g. 30 seconds). Since my site is on shared hosting, I can’t configure it in php.ini, it gave the file (php.ini) in the root directory of the document and asked us to configure the values, but this does not reflect. I tried dynamic using ini_set, same result.


Inclusion path: ./ usr / local / php5 / lib / php

+3
source share
3 answers

, php.ini . ini_set() , ! , ( , ).

, ?

+2

php.ini , script php.ini. , cPanel, , cPanel.. , -. . , , cPanel?

0

php.ini public_html . - . , , copyini.php

<?php
  system("cp /path/to/php/conf/file/php.ini  /home/yourusername/public_html/php.ini");
?>

/path/to/php/conf/file/php.ini phpinfo(); . ini , ( php.ini, :-))

0
source

Source: https://habr.com/ru/post/1776620/


All Articles