Questions tagged [php-ini]

PHP.ini is very useful and it is a configuration file that is used to customize behavior of PHP at runtime.

The configuration file (php.ini) is read when PHP starts up. For the server module versions of PHP, this happens only once when the web server is started. For the CGI and CLI versions, it happens on every invocation.

php.ini documentation.

You can change the settings in your web server configuration with php_flag, php_admin_value and php_admin_flag as well.

In case of Apache server some configuration settings can be changed using .htaccess files, but the usage is restricted to php_flag.

Related tags:

396 questions
23
votes
8 answers

PHP remove/fix module not found or already loaded warnings?

When i run a php script from the command line like below php test.php i get following output PHP Warning: Module 'memcache' already loaded in Unknown on line 0 PHP Warning: Module 'apc' already loaded in Unknown on line 0 how do i fix or remove…
mahen3d
  • 7,047
  • 13
  • 51
  • 103
22
votes
1 answer

ini_set() scope of effect?

I've had index.php and several files which cascading include,something like this. index.php -> controller.php -> model.php -> view.php In model.php I have a function using ini_set('memory_limit', '-1'); When will the ini_set() change of the…
Persk
  • 639
  • 2
  • 6
  • 15
21
votes
5 answers

Edit php.ini file

I want to increase memory_limit ,max_input_time,max_execution_time in WAMP server. There is 3 php.ini files. 1. C:\wamp\bin\apache\Apache2.4.4\bin\php.ini
2. C:\wamp\bin\php\php5.4.12\php.ini
3.…
Chirag Savsani
  • 6,020
  • 4
  • 38
  • 74
20
votes
5 answers

Xdebug Error: "Failed loading xdebug.so: xdebug.so: cannot open shared object file: No such file or directory"

I recently installed xdebug on my server but restricted it's use to our test site, which uses it's own php.ini file. For example, the test sites php.ini is located at: /home/test_site/public_html/subdomain_name/php.ini Inside this php.ini file I…
Brett
  • 19,449
  • 54
  • 157
  • 290
19
votes
6 answers

Can't enable phar writing

I am actually using wamp 2.5 with PHP 5.5.12 and when I try to create a phar file it returns me the following message : Uncaught exception 'UnexpectedValueException' with message 'creating archive "..." disabled by the php.ini setting…
user3292788
  • 407
  • 1
  • 6
  • 15
18
votes
2 answers

php_ini not set to php.ini location

I'm trying to install MongoDB PHP Driver for XAMPP on OSX, and my terminal says the following: configuration option "php_ini" is not set to php.ini location What does this mean and how can I fix it (if it's even problem at all)?
user4593086
16
votes
6 answers

PHP.ini location on El Capitan

Simple question: where is the correct PHP.INI location in Mac OSX El Capitan? I tried to update the one in /etc folder, but nothing changed.
delphirules
  • 6,443
  • 17
  • 59
  • 108
14
votes
6 answers

Composer setup installation error

I'm trying to install Composer on Windows 7 and XAMPP, but getting those errors/messages when run installation setup. The PHP exe file you specified did not run correctly: C:\xampp\php\php.exe The php.ini used by your command-line PHP is:…
rango
  • 609
  • 1
  • 7
  • 23
14
votes
3 answers

Change PHP version on server using either .htaccess or php.ini

How can I change the PHP version to 5.2 on a server using either an .htaccess of php.ini file?
Anriëtte Myburgh
  • 13,347
  • 11
  • 51
  • 72
13
votes
5 answers

max_input_time= -1 What is the exact meaning of -1?

I couldn't find this in the docs, but does: max_input_time = -1 means there is no limit? I find it odd that max_execution_time = 0 is forever. But what does -1 mean for max_input_time ?
Chris Muench
  • 17,444
  • 70
  • 209
  • 362
13
votes
6 answers

How can enable imap in php.ini

I was trying to install vtiger in my server for installing vtiger we need to enable imap I tried to enable imap using php.ini by removing ; from extension=php_imap.dll but this does not work. Installing page still showing that imap is not enabled.…
RoSe
  • 447
  • 4
  • 7
  • 20
12
votes
5 answers

Can't set default timezone in PHP

I've set this in my php.ini file, and restarted php5-fpm process date.timezone = "UTC" But phpinfo() script still shows this: date.timezone America/New_York America/New_York phpinfo() also shows that correct ini file is being used. I've…
Stann
  • 13,518
  • 19
  • 65
  • 73
11
votes
4 answers

Changes to php.ini not reflected in PHP's phpinfo()

I just can't get php_info() values to change on my localhost setup, or the related phpMyAdmin maximum file size. So I have located the PHP file that phpinfo states is being loaded. I have changed the three…
Jimme
  • 201
  • 2
  • 3
  • 7
11
votes
2 answers

Enable opcache for php in wamp

I try to enable opcache on wamp but it doesnt work. I changed the settings like this :…
I_G
  • 413
  • 1
  • 4
  • 18
11
votes
2 answers

PHP Enable bz2 Extension In Php.ini

I an trying to download a file using composer in php, but the file needs to be decompress with bzipped. Here is the error I get: [UnexpectedValueException] unable to decompress bzipped phar archive…
Alex Pelletier
  • 4,933
  • 6
  • 34
  • 58
1
2
3
26 27