Questions tagged [php.ini]

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

268 questions
38
votes
6 answers

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 = 20M post_max_size = 25M and I restarted php5-fpm…
harryg
  • 841
  • 2
  • 10
  • 19
36
votes
4 answers

How To Change What Version of PHP Apache2 Uses?

Ubuntu 10.04, MySQL 5.1, Apache 2.2, and PHP 5.2/5.3: I just discovered that I am using the wrong version of PHP for a CRM application. Once I figured out how to make a simple phpinfo() script to tell me what Apache2 is using, I tried changing the…
nicorellius
  • 565
  • 2
  • 5
  • 23
13
votes
4 answers

How do I enable SQLite on Linux/Apache/PHP?

To enable SQLite on my Windows/Apache/PHP setup, I uncomment the following lines in the php.ini file and restart Apache: extension=php_pdo.dll extension=php_pdo_sqlite.dll Now I have a VPS with Suse Linux 10.3 and Apache/PHP was set automatically.…
Edward Tanguay
  • 1,139
  • 4
  • 20
  • 30
12
votes
7 answers

php.ini changes don't have any effect

When I make any changes in php.ini located in /usr/local/lib on centos, the changes don't appear to be applied, for example, when I clear all the content of php.ini and restart Apache everything works fine... I searched for php.ini and it is in…
Fcoder
  • 341
  • 1
  • 4
  • 8
11
votes
2 answers

How can I create separate configuration files for php (cli) and php-fpm on an arch linux

Is it possible to create separate php.ini files for php (cli) and php-fpm, like it is possible on debian and ubuntu with two folders /etc/php/7.0/cli and /etc/php/7.0/fpm? I will be also cool if I can load independent modules with a conf.d directory…
Fiete
  • 331
  • 2
  • 9
11
votes
8 answers

How to configure php.ini with remote SMTP?

How do I configure PHP to send mail using mail() via a remote SMTP server? I've tried to do this using php.ini but it seems that you can only do that under Windows32 and I want to do this on my Unix server. Also I've tried to change the…
Brayn
  • 281
  • 2
  • 3
  • 9
11
votes
3 answers

Separate php.ini file for each Apache virtual host?

Is it possible to have a separate php.ini file that overrides the default php.ini file for each virtual host? I'm running Apache/2.2.14, PHP 5.3.2-1. For example, I have several vhosts pointing to domains in my /var/www/…
Calvin
  • 403
  • 1
  • 4
  • 14
10
votes
2 answers

Allow using php_value and php_flag in .htaccess

I am running an Apache web server with PHP5 as a module (notice: as an Apache module, not CGI!). In some of my .htaccess files (the one that comes with the gallery3 software, http://gallery.menalto.com/), there are php_value and php_flag…
tvooo
  • 103
  • 1
  • 1
  • 5
10
votes
2 answers

Php.ini disable "Scan this dir for additional .ini files"?

I want to lock my php configuration and disable loading other php configurations rather than the default (which in my case is located at /usr/local/php/lib/php.ini) I want to disable the "Scan this dir for aditional.ini" or if there's a way to set…
tftd
  • 1,480
  • 7
  • 24
  • 38
9
votes
1 answer

Apache restart needed for PHP to re-read php.ini?

Does PHP read php.ini on each request or do I have to restart Apache for php to be aware of changes on php.ini?
Petruza
  • 285
  • 3
  • 9
8
votes
3 answers

php writing deprecated errors to apache error log

I just upgraded from Debian Lenny to Squeeze and noticed that my /var/log/apache2/errors.log is getting bombarded with the following errors: Warning: Directive 'magic_quotes_gpc' is deprecated in PHP 5.3 and greater in Unknown on line…
gardarh
  • 189
  • 1
  • 1
  • 5
7
votes
4 answers

The requested PHP extension ext-mcrypt * is missing from your system

I have updated my php to version 5.4.13 etc and well in the terminal my version of php states this PHP 5.4.12 (cli) (built: Mar 16 2013 21:46:23) But running a composer install io get the following error. The requested PHP extension…
Simon Davies
  • 205
  • 1
  • 2
  • 9
7
votes
3 answers

PHP - Extensions - no-debug-non-zts-xxxxxxxx

I am compiling php extensions (memcached and xdebug), and when I run make install, they keep getting installed into /usr/local/php/lib/php/extensions/no-debug-non-zts-20090626. So a few questions: What does no-debug-non-zts-20090626 even mean, and…
Mike Purcell
  • 1,688
  • 7
  • 30
  • 53
7
votes
2 answers

Disabling PHP Deprecation Warnings and Notices

I've been using and configuring PHP, but now I'm stuck in a weird problem, so I am going to ask you guys for help. I don't want to see Deprecation Warnings and Notices in a production server, however I would like to see other error messages, such…
stivlo
  • 739
  • 3
  • 10
  • 24
6
votes
1 answer

"failed to open stream: Read-only file system" when trying to create file outside webroot with php

I'm trying to setup nextcloud on a RaspberryPi 3 running arch linux (alarm) for a week now. I've setup apache, php with php-fpm, postgresql and installed nextcloud-testing from the AUR (because nextcloud 17 does not support php 7.4). apache's…
random access
  • 63
  • 1
  • 4
1
2 3
17 18