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

learn more… | top users | synonyms

3
votes
1answer
565 views

Enforce loading of php.ini files from current folder

My goal is to increase the maximum file size for uploads in WordPress. I have followed the steps on this SE answer and this tutorial (except the .htaccess part, because it's runnning nginx and AFAIK ...
1
vote
1answer
168 views

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. ...
1
vote
1answer
140 views

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 "...
1
vote
1answer
952 views

Problems with my.cnf and php.ini - Using mysql tuner

My server was running fine until a recent update in Plesk and now it has been slow. My server tech had to rebuild the Apache configuration file and ever since the sites have been slow. The server is ...
1
vote
1answer
388 views

PHP throwing XDebug errors ONLY in command line mode

I've been having a few problems running PHP-based utilities within the command line ever since I enabled the XDebug. It runs just fine when executing script through a browser, but once I try an ...
0
votes
1answer
29 views

php 7 ignores ini files, but claims to load

Ubuntu 16.04, Lighty 1.4.35, PHP 7.0.4-7ubuntu2 (in a Hyper-V VM) I browsed all (or at least many) of the other questions about php.ini. No matter what value I set for any of the directives; ...
0
votes
1answer
22 views

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):...
0
votes
1answer
52 views

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 ...
0
votes
1answer
33 views

Php can't find hash function

I'm using apache with php on amazon linux. I've updated php from 5.3 to 5.5 and apache from 2.2 to 2.4. Now calling echo hash('sha256','wtf'); is behaving in a strange way. It works for a while and ...
0
votes
1answer
34 views

Can you set multiple mbstring.language in php.ini?

Can I set multiple mbstring.language in php.ini for multi-language websites? Or I have to set only one. mbstring.language = English mbstring.language = Japanese mbstring.language = Korean
0
votes
1answer
133 views

Get PHP extension APC not running on Ubuntu 14.04.3 - undefined symbol: php_pcre_exec

I installed the PHP extension APC on the server but I get it not running. It gets not listed in phpinfo(). After activating the php error log I get the following error: PHP Startup: Unable to load ...
0
votes
1answer
78 views

Do I require setting the full path to files in php.ini?

I have "merged" php with apache bin directory, however for years I have been hardcoding the path to files as follows : curl.cainfo = d:/server/bin/cacert.pem - browscap = d:/server/bin/browscap....
0
votes
1answer
291 views

iis 7.5 laravel 3.2 app log failed to open stream: Permission denied

I've been given a Laravel 3.2 app that is working on production to move over to an IIS 7.5 server. I've set the production php.ini so that it works with 5.4.37 and can't get past a 500 error so that I ...
0
votes
1answer
387 views

How to generate a php.ini file out of current environment?

For some of my running PHP web applications (running under PHP-FPM) I need to setup cronjobs. Currently all those cronjobs are using the CLI default php.ini. Is there any easy way (e.g. script) ...
0
votes
1answer
306 views

Apache2 internal server error not being logged

I'm doing some web development with the Laravel framework, and I have my jQuery set up so that it sends a request on click of a button to a PHP file, which then returns the result back to my jQuery. ...
0
votes
1answer
968 views

another php.ini for domain with nginx php-fpm working in fastcgi

I working with nginx and php-fpm and use unix:/cls/php-fpm.socket; I have enable xcache for hole server setting it in php.ini and want to disable xcache for 1 domain I did it with this in server ...
0
votes
1answer
157 views

phpMyAdmin logs-off after default 1440 seconds, though all settings seems fine

Following are set and confirmed: I've set $cfg['Servers'][$i]['LoginCookieValidity'] = 259200; in config.inc.php, I've set session.gc_maxlifetime = 259200 in php.ini, I see value 259200 in Settings &...
0
votes
1answer
409 views

PHP Settings [pm.max_children, pm.start_servers, pm.min_spare_servers and pm.max_spare_servers]

In the midst of transferring a website from a GoDaddy shared server to an EC2 instance. Handling the traffic, which during peak times on a typical day is around 300 active visitors, has been ...
0
votes
1answer
953 views

php.ini does not update date.timezone

I have apache and php running on OSX. I have a simple page printing phpinfo(). <?php phpinfo(); In my php.ini, no matter what I write for date.timezone, phpinfo says Europe/Zurich (both Local ...
0
votes
1answer
48 views

Load php.ini in each folder

I have a question for the php.ini in root folder, how it can be loaded when reading the page and overwrite the original value. When I was using the webhosting service, I could simply put the php.ini ...
0
votes
1answer
445 views

curl lot loaded after adding SFTP support

I installed Tartarus, and since my current curl didn't have SFTP support I've done this . Tartarus worked fine but I started to receive mails: PHP Warning: PHP Startup: Unable to load dynamic ...
0
votes
1answer
426 views

Apache VirtualHosts define php.ini but extend main php.ini

I have a main php.ini file and am wondering if it is possible to specify a custom php.ini for a virtualhost, but this php.ini would extend the main php.ini file, so that only the specified settings ...
0
votes
1answer
802 views

How do i set a open_basedir with php using fastcgi/apache2 on linux?

I tried to add this line to my virtual hosts in Apache, but failed: php_admin_value open_basedir "/var/www/users/test" My installation: root# apt-get install apache2 apache2-suexec libapache2-mod-...
0
votes
1answer
491 views

php.ini on Apache - does it reset to 'defaults'

I heard somewhere that, if you place a php.ini in a website root or subdirectory it will basically use default settings for everything that is not included in this php.ini file. So if you have changed ...
0
votes
1answer
815 views

default session file Permits

i need to edit the default permits of the session file i know it's high security risk, The default permits is :600 [root@server sessions]# stat sess_06pqdthgi49oq7jnlvuvsr95q1 File: `...
0
votes
1answer
1k views

installing zend debugger, ubuntu 12.04

I'm trying to install zend debugger in my ubuntu desktop with php 5.3 which I installed from ubuntu repositories. I have copied debugger plugin 5.3.x from zend.com to /usr/lib/php5/20090626+lfs and ...
0
votes
1answer
603 views

php.ini is not loading on my local machine mac os x

I have a localhost running on my mac osx machine, everything works fine apart from I get this error when running some applications: Warning: strtotime() [function.strtotime]: It is not safe to rely ...
0
votes
1answer
837 views

SMTP implementation on EC2 using Pear Mail package (PHP)

I am working on sending out SMTP relay email's using Gmail as my server using Pear Mail package in PHP. I have installed Pear package using YUM. Also I have located the path for pear_dir and included ...
0
votes
1answer
298 views

php GD2 lib uncommented, but still doesn't work!

i have installed Apache/2.2.17 (Win64) PHP/5.2.8-x64 . i need GD2 lib... so i went to php.ini, uncomment php_gd2.dll and restarded server. nothing! gd lib doesn't work! help!
0
votes
1answer
531 views

Install APC on Solaris

I Apache and PHP 5.3 installed from Blastware. I run pecl install apc and everything went ok. apc.so is in the extension library. I declared the extension in php.ini and enabled it with 'apc....
1
vote
0answers
70 views

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....
1
vote
0answers
369 views

What is the right value for memcache.session_redundancy?

The PHP manual for Memcache doesn't have any explanation for the memcache.session_redundancy option. The comment on that page (which is 4 years old) says it sets the number of copies of a session ...
1
vote
0answers
645 views

Apache2 - 500 server error when trying to access .php file

I have a webserver (Apache2, configured on Ubuntu Saucy Salamander 13.0x). On this server I have the following file in question: /var/www/xxxxx.com/insertToDB.php Accessing this file using GET ...
1
vote
0answers
313 views

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....
1
vote
0answers
2k views

PHP-SOAP extension is not loaded

I am trying to install Opencats.For that it is required to enable soap.I have enabled Soap. soap Soap Client => enabled Soap Server => enabled soap.wsdl_cache => 1 => 1 soap....
1
vote
0answers
734 views

Can't load my php.ini on localhost

I have a server and a local version of it on my hard drive. I am trying to access the local version through localhost. Entering localhost works, I enter the base html file and all that. The problem ...
1
vote
0answers
1k views

PHP.ini custom settings through htaccess

I'm confused by this ini list in the PHP Manual: http://www.php.net/manual/en/ini.list.php I want to set some custom php.ini values through htaccess, but which one of these commands is not going to ...
1
vote
0answers
117 views

mod_vhost_alias + wildcard + custom php.ini

Here's my httpd.conf thats using mod_vhost_alias. The docroot is always in /home/username/domains/domainname/public_html. <VirtualHost *:80> ServerName *.abc.com ServerAlias *.abc....
1
vote
0answers
178 views

Zend autoloader not working from PHP config

Is the PHP config file (php.ini) supposed to have something in it that will enable Zend Autoloader support? Cause I am using it in my application and on one server and it's not working (it says it can'...
1
vote
0answers
1k views

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 ...
0
votes
0answers
82 views

nginx 500 error when accessing large file from php script

I am using nginx/1.8.0 and to debug a large file upload issue I am facing in WordPress, I post a file with a simple script: Index file: <html> <!-- index.html --> <head><...
0
votes
0answers
15 views

TMPDIR not set on Ubuntu Server

Just got a brand new Ubuntu server from my hosting company which will be mainly used for Wordpress sites. I'm going through apache and php settings to harden the server but when testing a Wordpress ...
0
votes
0answers
15 views

Server auto disabling pdo

PDO mysql plugin wasn't enabled by default in my server , so i added a line extension=pdo_mysql.so to a php.ini file i created, and it works fine , but every once in a while it is ...
0
votes
0answers
36 views

PHP Output Buffering - Disable PHP Phar - GZip Compression

I am trying to show echo'd statements as a PHP script is running. I have tried every variant of flushes I can find, I have turned on Output Buffering in my server's PHP settings, tried disabling GZIP ...
0
votes
0answers
162 views

php 5.6 make test errors

I am in the process of doing php upgrades on our various servers from 5.5 to 5.6. I am down to the last 2 (out of like 8 or so) and running into the following when performing make test (after ...
0
votes
0answers
590 views

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 ...
0
votes
0answers
326 views

E: Unable to locate package php5-apcu

trying to install APCu on Ubuntu: apt-get install php5-apcu Getting an error: E: Unable to locate package php5-apcu Following someone's suggestion I added: deb http://packages.dotdeb.org wheezy-...
0
votes
0answers
257 views

php.d/*.ini files loading for root but not other users (CLI)

Using PHP from the commandline, as root, everything in the php.d/ directory is loaded as expected: root@tlsv2-eepweb-01:/home/web>php --ini Configuration File (php.ini) Path: /etc Loaded ...
0
votes
0answers
55 views

php5-embed does not load extensions

While setting up php on my Ubuntu server (using php5-embed under uwsgi/nginx), I noticed curl.so was not being loaded. The file /etc/php5/embed/conf.d/20-curl.ini exists and contains extension=curl.so....
0
votes
0answers
252 views

uploadprogress.so is installed, but does not appear in phpinfo

I'm on RHEL6 (Red Hat Enterprise Linux Server release 6.5 (Santiago)), but I've upgraded PHP to version 5.4.16. I've downloaded and installed the PECL uploadprogress library version 1.0.3.1 that is ...