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

0
votes
1answer
46 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. ...
1
vote
2answers
122 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
115 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
76 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
156 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 ...
0
votes
0answers
103 views

Set disable_functions parameter per vhost

I'm trying to use the disable_functions directive for php with different values for each of my domains. First time a tried with nginx's fastcgi_param PHP_VALUE. It worked well until I had more than ...
2
votes
2answers
1k 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 = ...
0
votes
0answers
128 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
909 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
223 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
168 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 ...
0
votes
0answers
91 views

Wildcard in php.ini configuration - editing open_basedir directive

Is there a way to add wildcards in the global php.ini file? I'm trying to modify the open_basedir directive in the php.ini file as follows: open_basedir = ...
1
vote
1answer
82 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
84 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
66 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
490 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
148 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 ...
1
vote
1answer
982 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
189 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
0answers
134 views

php.ini changes doesn't apply in virtualmin nginx

I can't make changes to php.ini in virtualmin-nginx for mysite.com. phpinfo() says: Loaded Configuration File /home/mysite/etc/php5/php.ini So, I edited the file /home/mysite/etc/php5/php.ini ...
0
votes
1answer
242 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
81 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 ...
0
votes
1answer
342 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
34 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
752 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
65 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
234 views

CentOS: 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
637 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
534 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
124 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
304 views

Different PHP-configs in Nginx

I have a web-server running multiple server (virtual hosts) using nginx and fastcgi passing to a unix-socket. What I want to accomplish is a set-up with beta.example.com and live.example.com, where ...
0
votes
1answer
222 views

php.ini file starts with 0[PHP]

In my httpd error_log I keep getting the following error: syntax error, unexpected END_OF_LINE, expecting '=' in /usr/local/lib/php.ini on line 2 When I look at the php.ini file line 2 reads: ...
0
votes
0answers
81 views

nginx + “filename part could not be saved, because the source file could not be read” error?

I am delivering ~ 100-300mb files using the following php code from my nginx setup : header("Pragma: public"); // required header("Expires: 0"); header("Cache-Control: must-revalidate, post-check=0, ...
1
vote
1answer
576 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 ...
2
votes
1answer
564 views

Is there an equivalent to Debian's cli/php.ini on Redhat?

How do you configure the command line version of PHP to have different settings on a Redhat system? On Debian based systems, php has a separate command-line version config file: /etc/php5/cli. On ...
-1
votes
1answer
374 views

Windows Server 2008 R2 Datacenter 64Bit - Apache not starting with PHP module

I am running Windows Server 2008 R2 Datacenter 64Bit. On it I installed Apache 2.2.25-win32-x86-openssl, the Apache server runs fine without a PHP-module. But when I try to load the ...
0
votes
1answer
509 views

PHP default_charset NOT changing

I have modified the php.ini file shown in the Loaded Configuration File value of phpinfo() to set the default_charset to UTF-8: default_charset = "UTF-8" However, when I re-run the phpinfo(), I ...
0
votes
1answer
60 views

PHP upload system on Windows server checklist

i have an upload system in php, i want it to upload large files, some may get up to 200mb. This means that it will not only take a lot f bandwidth, server memory space but also a lot of time to upload ...
-3
votes
1answer
113 views

How to block ini_get('disable_functions')

I want to block ini_get('disable_functions') without blocking ini_get() in disable_functions section because when i block ini_get() in my server the roundcube dosen't load, how can i do that?
0
votes
0answers
81 views

Different php.ini variables for each host in Nginx

We have couple of sites on our web server. Most of them are static content with very low traffic. There are some hosts with blog, forum etc. software. Plus i have a development domain running on ...
0
votes
1answer
259 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
84 views

Custom PHP.ini file

One of my clients is requesting register_globals to be turned on so his site can normally work. But I disabled custom php.ini files with suphp because of security issues. I must do this because of ...
0
votes
1answer
38 views

Limit Php.ini File Change Per User

I'm using suPHP with Apache 2 and users is allowed to use their own php.ini How can I limit changes of global php.ini values to only few modications? Thanks
1
vote
1answer
1k views

Can't configure PHP error log

I'm running apache2 with php5 on Linux Mint 13 Maya. I have defined a virtual host and these two entries there: ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined ...
2
votes
1answer
616 views

PHP CLI: Call to undefined function mysql_connect() even with mysql module enabled

I try to run a PHP script from the command line, but get the following error: Call to undefined function mysql_connect() However, the mysql module is loaded: root /var/www/scripts # php -m | grep ...
-3
votes
2answers
907 views

Can't install PHP PDO [closed]

I have now tried to install PHP PDO in 2 hours without any luck, and i have searched everywhere to get a solution - but without any luck. yum install php-pdo doesn't work and i cannot find ...
-1
votes
1answer
137 views

php.ini are these settings excessive?

Author of the script that I'd like to run on my VPS asked me to make following changes to php.ini: output_buffering = on (4000 default) register_argc_argv = on (What is this for?) max_execution_time ...
0
votes
1answer
807 views

ini_set include_path not working

It seems something on my server has been changed, and I'm seeing the inclusion failed error message on my every website on the server, here is one example: Warning: require(xconstants_fa.php) ...
0
votes
1answer
45 views

LAMP not working after php.ini change (even if resetted)

My LAMP machine on Ubuntu 12.04 was working fine, then I tried to modify the etc/php5/apache2/php.ini file opening nautilus through the terminal with sudo nautilus. I have edited this line: ...
0
votes
1answer
400 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 ...