Questions tagged [php.ini]

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

Filter by
Sorted by
Tagged with
11 votes
8 answers
44k views

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 ...
Brayn's user avatar
  • 281
4 votes
3 answers
4k 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; ini_get ...
Titus's user avatar
  • 261
13 votes
4 answers
118k views

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 ...
Edward Tanguay's user avatar
4 votes
5 answers
3k views

Can't get PHP to stop showing errors

Contrary to most people's problem I cannot get PHP to stop showing errors, I have in my php.ini display_errors set to off but it still shows them, I have also tried .htaccess, and inline ini_set and ...
unknowndomain's user avatar
1 vote
5 answers
1k views

User Specific Php.ini When php is ran as a module?

I have a php setting that can only be changed in the ini file. I can't change this setting in the global php.ini due to conflicts, so I'll need to have this user specific. Can this be done if php is ...
SeanDowney's user avatar
0 votes
2 answers
7k views

Enable json_decode() on my system

I am developing on a server that I don't really have all that control over... I just started working for a Kiosk company about 3 months ago. I am used to developing on my localhost (MAMP) and porting ...
Derek Adair's user avatar
40 votes
4 answers
219k views

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 ...
nicorellius's user avatar
12 votes
3 answers
15k views

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 ...
Calvin's user avatar
  • 413
11 votes
2 answers
7k views

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 ...
Fiete's user avatar
  • 331
9 votes
1 answer
12k views

"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 ...
random access's user avatar
7 votes
2 answers
34k views

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, ...
stivlo's user avatar
  • 749
4 votes
1 answer
3k views

Store session files in different directories in PHP

I have several sites hosted on the same server, in different directories (e.g: server.com/site_one, server.com/site_two) and I want to store the session files for each site in a different directory. ...
Alex's user avatar
  • 217
3 votes
3 answers
11k views

PHP sessions directory keeps filling until overflowing

I have a problem with my PHP session data folder. It seems to not be expiring sessions and has hit some sort of limit, presumably the filesystem limit for files in a directory. Requests that involve ...
Tony H's user avatar
  • 133
3 votes
2 answers
2k views

php session.save.path that is not from my ini file

I have set up a custom php.ini for a dev site (the production site will eventually be on the same server) - it sets the session.save path to a directory specific to the site. You can see the result ...
Richard Grevers's user avatar
2 votes
2 answers
28k views

register_globals error in php

I was stuck up with the error directive 'register_globals' is no longer available in PHP in unknown on line 0 when tried to check the php version using "php -v" after enabling register_globals in ...
user145862's user avatar
2 votes
1 answer
5k 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 ...
linski's user avatar
  • 121
2 votes
2 answers
13k views

Failed to write session data [closed]

I have a VPS running on CentOS 5 with Plesk 9. My website us running on FastCGI. I'm having problems reading / writing sessions. On my servers error_log I get the following errors: (...) Failed to ...
Steven's user avatar
  • 275
1 vote
2 answers
2k views

PHP 5.2.11: Unable to load dynamic library complaints

I installed PHP 5.2.11 and upon enabling the php_mssql.dll module (and the obligatory restart of the services) started receiving warnings about not being able to load the dynamic library. The ...
OldTroll's user avatar
  • 1,706
1 vote
2 answers
6k views

PHP doesn't load php.ini

I have this strange and stupid problem I'm trying to resolve for a couple of hours now. I have installed apache 2.2.10 (it was compiled from source a long time ago), and PHP-5.3.6. Both are working ...
tftd's user avatar
  • 1,540
1 vote
2 answers
24k views

Phpize, Cannot find config.m4, Centos6, SAPRFC Install

I'm trying to install a PHP module, which requires phpize and I'm being met with a warning, even though it exists and is installed. Cannot find config.m4.Make sure that you run '/usr/bin/phpize' in ...
RCNeil's user avatar
  • 615
0 votes
1 answer
519 views

why "php -i|grep php.ini" is not finding the correct path to php.ini?

I know that my php.ini is located at /etc/php.ini but when i run php -i|grep php.ini I get this output Configuration File (php.ini) Path => /usr/local/lib there's nothing in that directory and i ...
user's user avatar
  • 869
0 votes
3 answers
2k views

Trouble enabling display_error in php.ini

I'm trying to enable PHP error output to the browser. phpinfo() shows that the path to php.ini is /etc/httpd/php.ini. So as root I edited it by adding a line: display_errors = On I restarted apache ...
liewl's user avatar
  • 227
-1 votes
1 answer
3k views

php.ini Error on "error_reporting"

I found the error by trying to change php.ini. root:/etc/php5/fpm# php5-fpm -i | grep "post_max" PHP: syntax error, unexpected '|' in /etc/php5/fpm/php.ini on line 110 post_max_size => 8M =&...
Case's user avatar
  • 321