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
0
votes
2 answers

CPU spikes on small site- possibly apache or php config related

I hope you can help me. I have a site that I'm moving to a new datacenter. The server is pretty much vanilla, no control panel, and also no optimizations. When I hit a page, the site takes an extremely long time to load, despite it being…
Mike
0
votes
1 answer

IIS 502 - Web server received an invalid response while acting as a gateway or proxy server

Good day all, i am a newbie in windows server environment forgive me for any technical jargon. I created a php web application in an enterprise environment i.e following the 3 tier architecture(db ,application and web server) . The issue i have is…
bgreatfit
  • 1
  • 1
  • 3
0
votes
1 answer

php.ini is not read after upgrading to PHP 5.6.25 from RHSC on RHEL7 with SELinux. How to debug?

Configuration: I run a web server with RHEL7 with the SELinux kernel module and php-fpm. By default, RHEL7 ships with PHP 5.4. This version of PHP is too old for my software, so I've upgraded to PHP 5.6.25 from RHSC. Before upgrading, everything…
Free Radical
  • 131
  • 9
0
votes
1 answer

How to use PHP memcached for session storage with Auto Scaling?

I already have memcached installed in my servers and I've modified the default php.ini to: session.save_handler = memcached session.save_path = "127.0.0.1:11211" I'm using Amazon EC2 instances (Ubuntu 16.04 LTS) with Auto Scaling and Load Balancer,…
0
votes
1 answer

Unicode characters in my PHP configuration

Earlier today I was having an issue where I couldn't setup my PHP7 remote interpreter on PhpStorm I ended up finding out that I have unicode characters in my PHP configuration: I have no idea how that happened and I probably would never have…
Raph Petrini
  • 101
  • 3
0
votes
1 answer

Determinate witch Php cache system is currently used

How can i find what php cache system is used by my server (APC/opcache/Zend...) ? If I run this command line, i've no information : php -v PHP 5.4.45-0+deb7u5 (cli) (built: Aug 30 2016 20:15:34) Copyright (c) 1997-2014 The PHP Group Zend Engine…
NicoMinsk
  • 125
  • 8
0
votes
1 answer

pgsql is not loading (centOS 6.8)

*First of all don't answer "php.ini >> uncomment extension=pgsql.so and restart httpd". did that millions of times, did not solve my problem. *Tried hundreds of methods described in different sites including stackoverflow, but unfortunately did not…
MD TAREQ HASSAN
  • 111
  • 1
  • 5
0
votes
1 answer

Adding multiple extensions to PHP.INI

I have two extensions I want to add. Do I add these separately like: extension=php_ftp.dll extension=php_openssl.dll Or are they added like an array? extension=php_ftp.dll,php_openssl.dll
Daniel Williams
  • 105
  • 1
  • 4
0
votes
1 answer

Yet another request entity too large issue, Apache

When I try to upload any kind of file to my server/website I get an Request Entity Too Large error. (Trying to upload a 1.73mb picture produces a 413 error while a 25.6kb picture does not) I tried various "fixes" but they didn't work for me, it…
PhysiOS
  • 432
  • 7
  • 15
0
votes
1 answer

What is using php_error.log in /var/log on my Nginx server

On my Nginx server in /var/log there is php5-fpm.log and php_error.log The php_error.log has all kind of notices so that it's size grows to hundreds of Mb's. I tried to find which php.ini managed this file, but no luck. php…
C.A. Vuyk
  • 632
  • 10
  • 18
0
votes
1 answer

php.ini exists but is not loaded

I know this gets asked a lot here but I've done my homework and cant seem to solve my particular problem. It doesn't seem like my php.ini file is being loaded, even though php -i and php --ini say it is. Specs: CentOS 7.2 PHP 5.6.24 Apache 2.4.6 …
Michael
  • 105
  • 2
  • 8
0
votes
1 answer

How to override the previous defined PHP value via Ansible PHP role?

I'm trying to apply override PHP's opcache.max_accelerated_files setting via geerlingguy's Ansible Role for PHP onto geerlingguy/centos6's VM using the following lines (as part of provisioning script): php_opcache_enabled_in_ini:…
kenorb
  • 6,499
  • 2
  • 46
  • 54
0
votes
1 answer

nginx seems to use wrong php service

i wanted to increase my max. upload file size and install cURL to php5-fpm today. I have installed a LAMP stack on my Ubuntu 14.04. But the changes doesn't take any effect after reloading/restarting php5-fpm and nginx.. Now i have removed everything…
nipeco
  • 101
0
votes
1 answer

Cloudlinux + CageFS + PHP Selector - how to update default php.ini for each PHP version or for each domain account?

My server runs Cloudlinux 5.11 with CageFS and PHP Selector. Default PHP version is 5.3. I have one account using PHP 5.3, one account using PHP 5.5, and one account using PHP 5.6. I'm trying to figure out how to update each account's php.ini or…
Shawn
  • 101
  • 3
0
votes
2 answers

Installing libevent extension for php on Centos

How to install the libevent extension for php on Centos 7? I spent many many hours trying this, googling many times and really really struggled, so I'm going to document my own answer to this in the hope I help someone else. I tried firstly on a MAC…