php.ini is the configuration file used by the PHP preprocessor to setup the default settings and certain security restrictions.
Questions tagged [php.ini]
272 questions
1
vote
1 answer
Postfix is Still Sending out SPAM despite closing the Famous "Open Relay"
Lets pretend for a second there , my client's website is thatshowithappened.com
A couple of weeks ago our server was an open relay , we fixed that.
And now after putting
smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated…

Fahad
- 301
- 1
- 3
- 12
1
vote
1 answer
Why should I disable PHP's ini_set() on a server?
I'm starting to manage a VPS, and I have read that I should disable the ini_set() function. but I couldn't find a proper explanation on why I should do this. Any good well-explained reason?

Fahed
- 121
- 1
- 9
1
vote
1 answer
Problems with session data permissions, multiple UIDs on multiple PHP-FPM pools
I run an nginx server with 40 identical webapps on 40 different ports in 40 different PHP-FPM pools. Each pool is run on a separate user.
My sessions.save_path in php.ini is /tmp/php_sessions. Let's say I first visit http://mywebsite.com:5007. I can…

Magnus
- 255
- 1
- 2
- 8
1
vote
2 answers
PHP 5.2.11: Unable to load dynamic library complaints
I installed PHP 5.2.11 and upon enabling the php_mssql.dll module (and the obligatory restart of the services) started receiving warnings about not being able to load the dynamic library. The operating environment is IIS ISAPI under Windows 2003…

OldTroll
- 1,686
- 2
- 12
- 18
1
vote
1 answer
Php.ini: Local Value vs Master Value (safe_mode, specifically)
I can change php.ini values on my Apache and restart to see them in effect via a script showing php_info(). However, one setting is causing problems: safe_mode. I set it to "off" in php.ini but php_info() still shows it as
Local value: On
Master…

Philipp Lenssen
- 155
- 1
- 8
1
vote
2 answers
413 - request entity too large in lighthttpd
When saving configuration settings in Magento I get "413 - request entity too large". We are running lighttpd.
In php.ini memory_limit = -1
In lighttpd.conf server.max-request-size = 1000000
I have restarted lighttpd and the problem is still there.

Andreas
- 11
- 2
1
vote
1 answer
php/php-fpm can't find php.ini
I'm having an issue where php and php-fpm can't find php.ini. I installed 5.6.13 from source. The question
PHP doesn't load php.ini
is very similar but the solutions there haven't helped me.
The config.nice is as follows
#! /bin/sh
#
# Created by…

DrBojingle
- 11
- 2
1
vote
1 answer
php open_basedir not working as expected on synology nas
I'm trying to install gitlist on my synology NAS (DSM 5.2).
I downloaded and configured gitlist in config.ini and pointed it to my repositories folder (/var/services/homes/git/repo).
But when I try to access the application I get this…

Joan
- 11
- 1
- 5
1
vote
1 answer
How do you change the "scan this dir for additional ini files" path?
I managed to get the custom INI to load, but its still loading other .ini files from the default location.
I created an fcgi wrapper that passed the ini value as a parameter. That worked. Now just these other ini's need to be loaded from the same…

qodeninja
- 2,753
- 10
- 32
- 33
1
vote
1 answer
PHP timeout is zero and memory limit is 1024M and script timeout?
on my work server i set PHP settings to be 1024M memory limit and max execution time to zero
after all this the script still timeout !!
what are other options to make script runs forever if i want
thanks in advance.

Macnux
- 149
- 1
- 6
1
vote
0 answers
Possible have 2 php.ini file or 2 extension_dir in php.ini?
i got Fatal error: Class 'mysqli' not found in C:\apache2triad\htdocs\index.php on line 8 error. I checked php.ini file and saw extension=php_mysql.dll is uncommented.Everything is normal. But in php.ini file, it show me extension_dir is
;…

Joe People
- 11
- 2
1
vote
1 answer
How to generate a php.ini file out of current environment?
For some of my running PHP-FPM web applications, I need to set up cronjobs. Currently they are using the CLI default php.ini.
Is there an easy way (e.g. script) to generate a new php.ini from the current environment?
I want to use those…

burnersk
- 2,056
- 5
- 27
- 39
1
vote
1 answer
Debian 7 and PHP 5.4.4 error reporting
I use default php.ini and then in my PHP script (local.settings.php in Drupal) I simply set ini_set('error_reporting', 'E_ALL & ~E_NOTICE & ~E_STRICT');
According to documentation this means "show all messages minus notice and strict warnings". But…

milovan
- 11
- 1
1
vote
0 answers
Running two different PHP fast-cgi instances on windows with OPCache enabled
I'm trying to run two different php 5.5 instances on Windows (one with XDebug, one without, same php executable, different php.ini files) over fast-cgi in Apache 2.4, ideally both with opcache enabled.
However when I enable opcache for both one of…

Patrick Huy
- 111
- 2
1
vote
1 answer
Is it possible to have two different installations of PHP and Apache on the same machine?
There's a motivation in my company to enable a team of coders to develop an upgraded version of an existing product on one of our development servers.
There are two configurations, the one we use now and the new one which is preferred to be…

Itai Ganot
- 10,644
- 29
- 93
- 146