Questions tagged [php.ini]

php.ini is the configuration file used by the PHP preprocessor to setup the default settings and certain security restrictions.

272 questions
2
votes
1 answer

Updated php.ini but php.info shows different values

I've updated php.ini using root with some value changes in max time out and upload file size and such, but when I checked mywebsite.com/info.php I don't see the changes on what I've edited. What could be wrong?
2
votes
1 answer

Suhosin per-URL exceptions?

I am using SimpleID as my OpenID provider and it turns out that if I log on via pages like those on StackExchange, one of the parameters of the GET request gets dropped by Suhosin. The name of the variable is s and I presume it's responsible for the…
0xC0000022L
  • 1,516
  • 2
  • 22
  • 42
2
votes
0 answers

Expert opinions on optimal Wordpress PHP settings

I recently decided to include a great system stats plugins with every wordpress install. LINK: http://wordpress.org/extend/plugins/tpc-memory-usage/screenshots/ One of the features of this plugin provides a tab where it analyses specific php/server…
2
votes
2 answers

How do I configure multiple PHP.INI files on shared host running Apache?

I would like to use a different PHP.INI file for each site hosted on a shared server. I have modified the Apache vhosts file for each of the sites, adding the line… PHPINIDir /srv/www/my-domain.com/ So the vhosts file…
duncmc
  • 175
  • 2
  • 8
2
votes
2 answers

Changes made to cli's php.ini not taking effect

I have two php.ini files - /etc/php.ini which loads in case of cli /opt/lampp/etc/php.ini which loads in case of browser. I am able to use PHP's Mailparse extension after adding the line extension=mailparse.so in the /opt/lampp/etc/php.ini and…
Sandeepan Nath
  • 647
  • 6
  • 13
  • 29
2
votes
2 answers

Failed to write session data

I have a VPS running on CentOS 5 with Plesk 9. My website us running on FastCGI. I'm having problems reading / writing sessions. On my servers error_log I get the following errors: (...) Failed to write session data (files). Please verify that the…
Steven
  • 275
  • 2
  • 9
  • 21
2
votes
1 answer

Using separate php.ini files per vhost in Xampp

My web host provides separate php.ini files per web root, which is quite useful as I host some websites which require different PHP settings. But on my dev system where I use Xampp, I can only find a single global php.ini file, which makes altering…
Spoonface
  • 207
  • 3
  • 8
2
votes
1 answer

What should I change in php.ini to enable usage of sqlite from PHP?

At the moment I cannot use sqlite from PHP. Probably I need to change something in my php.ini file. In my php.ini file I found 2 lines containing "sqlite": [sqlite] ;sqlite.assoc_case = 0 Does semicolon in front of the line means that line is…
Roman
  • 2,569
  • 10
  • 32
  • 32
2
votes
0 answers

Webmail application (php) slow when consulting messages via IMAP. What to optimize to improve speed?

I have configured a couple of webmail applications (open source), to consult external email accounts (gmail). The applications are in Php and Mysql. Once installed, I can link my mail through IMAP. And consult the mail from these…
Jhoedram
  • 153
  • 4
2
votes
1 answer

Apache with HTTP/2 and per-directory upload_max_filesize

I just upgraded my apache2 server on Debian 9.13 Stretch to start using HTTP/2. As far as I'm concerned, that requires switching from mod_php to PHP-FPM. The problem is that PHP-FPM does not obey certain apache directives from .htaccess. For…
2
votes
3 answers

php.ini not loading on Windows7 x64

I have manually configured PHP in the past without any problems. Now I'm trying to set up a dev environment with PHP 5.3.1 on Windows 7 x64, and it won't load the php.ini file! I'm new to both Win7 and the 64bit OS, so it could be something there…
user32782
  • 121
  • 1
  • 3
2
votes
2 answers

Cannot get PHP PAM authentication to work

This question is split between the realm of SO and SF. It's for a coding project but I believe the error I'm encountering has more to do with system administration than code, so I'll put it here. I'm trying to make a PHP login page that…
DWilliams
  • 953
  • 2
  • 20
  • 29
1
vote
1 answer

Allowed characters in php-fpm pool name

php-fpm allows to configure individual pools. [poolname] user = ... group = ... listen = 127.0.0.1:9000 ... Which characters are allowed within the square brackets in the first line?
turbophi
  • 71
  • 4
1
vote
1 answer

Apache2 php_admin_flag opcache.enable on is ignored

I run Apache 2.4.10 with PHP 7.1.17 on my Debian 8.10 server. When I try to enable opcache in a vhost the changed setting isn't applied. If I enable opcache globally in the php.ini everything is working as expected. I also checked that php settings…
oivlis111
  • 21
  • 4