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

-1
votes
1answer
9 views

php.ini 500 error when register_globals = On

i am using PHP Version 5.4.44 and have a setting in my php.ini as register_globals = Off i am trying to set it as register_globals = On but it is not working and through me an error as 500 ...
0
votes
0answers
74 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 ...
0
votes
0answers
35 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
1answer
148 views

centos 6.6, sh: zip: command not found [closed]

Centos 6.6 64bit on OpenVZ VPS. I tried a phpinfo.php file using only the following code: <?php var_dump( exec('zip -r domains.zip "domains"') ); // phpinfo(); ?> . The php error log is ...
0
votes
0answers
14 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 ...
0
votes
1answer
88 views

Reverting PHP-CLI back to default path on Ubuntu, NGINX, HHVM

While experimenting with optimizations on my brand new LEMH (Linux, Nginx, MariaDB, HHVM) stack; I changed the PHP-CLI config to use HHVM for /usr/bin/php by using the following command: $ sudo ...
1
vote
1answer
27 views

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

Another Place to Edit Error Reporting Aside from php.ini, httpd.conf, or apache2.conf

Is there another place to edit error reporting aside from php.ini, httpd.conf, or apache2.conf (I am using Apache 2.2.15 so it uses httpd.conf). The issue is not php.ini or httpd.conf since they are ...
0
votes
1answer
32 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 = ...
-3
votes
1answer
61 views

PHP Fatal error: Call to undefined function mysql_pconnect() [closed]

I'm Having same Problem. PHP Fatal error: Call to undefined function mysql_pconnect() in I gone through PHP Fatal error: Call to undefined function mysql_pconnect() in. i have same problem. but ...
1
vote
0answers
50 views

PHP sendmail_path not getting updated [closed]

Environment: Debian 7; PHP 5.4.39; Apache 2.2; ISPConfig Using the Perfect Server Debian guide from howtoforge, I built a web server to serve some PHP applications. My intention is to use an external ...
0
votes
0answers
63 views

When using Apache mod_php, what's the precedence of loaded php.ini files?

I'm having some troubles with php.ini configuration when Apache executes PHP using mod_php. I can't understand how/the order of configuration files. Here is how phpinfo() Apache section: ...
1
vote
0answers
39 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 ...
0
votes
0answers
67 views

Per-pool php.ini with PHP-FPM without php_value workaround

I'd like to use separate php.ini files for each PHP-FPM pool. I've checked similar questions and they all say to use php_value, but that's a really dirty workaround and would require to manually (or ...
0
votes
1answer
129 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
0answers
31 views

PHP error reporting without notices

I have been trying to set up php.ini file for error reporting. I wanted for my log file to show everything except notices. Referring to my researches, solution was to use this command: ...
0
votes
1answer
20 views

changing max upload limit doesn't affect

A drupal website i run gets an error that says the php limit is 2Mb. i changed it to 10 from /etc/php5/apache2/php.ini. This doesn't make any change (im using a phpinfo to look if any change to ...
0
votes
1answer
386 views

PHP session handler using redis not work

I was sets 3 servers : 192.168.7.147:6379 <-- redis server 192.168.7.162 <-- web server 1 (using phpredis, with local devdomain jttest.com ) 192.168.7.218 <-- web server 1 (using phpredis, ...
-2
votes
1answer
348 views

Accidently removed all PHP dynamic libraries [closed]

I was trying to remove a startup module folder(ioncube) and accidently removed the PHP startup modules/extensions folder (debian) Now I'm getting this PHP Warning: PHP Startup: Unable to load ...
1
vote
1answer
113 views

How can I specify which php.ini file to use in my nginx conf file?

I'm running 2 PHP sites on the same server. I would like to use 2 different php.ini files for them. I've googled this issue with no luck. Here is what my php location looks like: location ~ \.php$ { ...
0
votes
1answer
136 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
61 views

WHM - php.ini in public_html stops default php.ini [closed]

I have a server with WHM panel. OS is CentOS. When I put a php.ini in public_html PHP stops reading /usr/local/lib/php.ini. When I compare results of phpinfo() what I see is; error_log error_log ...
0
votes
1answer
168 views

Enable curl_exec() in a sub-folder

Curl is enabled on the server but curl_exec function is disabled for security reasons. disable_functions = exec,passthru,shell_exec,system,proc_open,popen, ...
0
votes
1answer
222 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. ...
2
votes
2answers
4k views

PHP Startup: Unable to load dynamic library '/usr/lib/php5/20100525/apc.so'

I have updated my php from 5.3.3 to 5.4.31. I have a Debian 6 Squeeze. PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20100525/apc.so' - /usr/lib/php5/20100525/apc.so: ...
0
votes
1answer
477 views

Centos 6.5 — backported upgrades/php.ini directives included in php 5.3.3

PHP 5.3.3 is the latest version of PHP available with the official CentOS 6.5 repos. As most of you know, calling it version '5.3.3' is slightly deceptive because critical bug fixes are actually back ...
0
votes
2answers
187 views

MySQL performance problems on particular vhosts

I have a dedicated server setup (8 cores, 16 GB of RAM), running Ubuntu 12.04 LTS with latest updates, and I am experiencing some performance problems related to MySQL. I have multiple vhosts active. ...
3
votes
1answer
328 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 ...
8
votes
4answers
11k views

Increase PHP-FPM's max upload/post size

I'm running php5-fpm under Nginx on Ubuntu 14.04. I want to increase the max upload size. I have edited my /etc/php5/fpm/php.ini to have the following lines defined as below: upload_max_filesize = ...
1
vote
0answers
301 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 ...
0
votes
1answer
4k views

Unbuntu 14.04 + Nginx + PHP5-FPM + sqlite3 : pdo sqlite could not find driver

phpinfo() says I have SQLite 3.x driver for PDO. php.ini only mentions sqlite like so: [sqlite] ; http://php.net/sqlite.assoc-case ;sqlite.assoc_case = 0 [sqlite3] ;sqlite3.extension_dir = I ...
0
votes
1answer
703 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 ...
1
vote
0answers
375 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
1answer
113 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 ...
3
votes
1answer
390 views

Restrict Overriding memory_limit in php.ini

We have a issue that just came to our notice, some of our developers used ini_set('memory_limit', -1) to over-ride the php.ini memory_limit settings in their code files. Due to which sometimes our ...
0
votes
1answer
115 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 ...
1
vote
3answers
4k views

PHP Errors are not stored on CentOS Server

I just adjusted the php.ini on my CentOS 64 Bits VPS in /etc/php.ini to log PHP errors: cat /etc/php.ini | grep php-errors.log error_log = /var/log/php-errors.log I also have log_errors = on I ...
0
votes
0answers
207 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 ...
3
votes
1answer
4k views

APCu and APC setting unclear

Please help me to understand where is difference between APC and APCu lies. While inspecting CentOS web-server (set up not by me) found that it has APCu 4.0.2 installed and phpinfo(); reports that APC ...
0
votes
1answer
299 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
714 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
0answers
198 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 ...
1
vote
1answer
1k views

php.d/*.ini not overriding php.ini in PHP 5.5

My /etc/php.ini has the following configuration: upload_max_filesize = 2M post_max_size = 32M And /etc/php.d/app.ini contains: upload_max_filesize = 64M post_max_size = 64M With PHP 5.4, PHP was ...
0
votes
1answer
42 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 ...
1
vote
1answer
2k views

Amazon Linux, PHP 5.5: php.ini ignored

On our Amazon EC2 instance, I uninstalled PHP5.3 (yum remove php) and installed PHP 5.5, which also bundled in Apache 2.4 (yum install php54). For some reason, my php.ini file is no longer being ...
0
votes
1answer
90 views

APC and xCache memory configuration

In PHP xCache and APC, there are options that allows to set maximum memory. Do xCache and APC actually RESERVE the memory, or they just use it whenever they need to?
0
votes
1answer
285 views

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 ...
2
votes
3answers
2k views

PHP cli uses different php.ini file when run by cron

My CakePHP console script is having problems executing under cron. It complains about missing Mysql connections and such. After a little investigating I found that php run by cron uses a different ...
1
vote
0answers
1k 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 ...
0
votes
1answer
287 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 ...