php.ini is the configuration file used by the PHP preprocessor to setup the default settings and certain security restrictions.
Questions tagged [php.ini]
272 questions
0
votes
2 answers
Where are the settings of xcache?
I'm on Dreamhost PS, using their preset xcache. I need to increase the size of the var memory but can't find the definitions for xcache. Its not in the php.ini file. I searched for xcache files and couldn't find something that looks like xcache…

Niro
- 1,401
- 4
- 20
- 36
0
votes
1 answer
Configure Linux and PHP to send email via script instead of SMTP
I have a server with a static IP and also a domain pointing to it. Because it is behind a firewall that blocks SMTP (ingoing and outgoing), I am not able to send any EMail from it.
To be able to send and receive EMail with the domain anyways, I use…

paolo
- 387
- 3
- 14
0
votes
1 answer
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 then starts working only 50% of the time. Apache…

clorz
- 269
- 2
- 10
0
votes
1 answer
How to modify allow_url_fopen Local Value
This is a question about PHP configuration on a LAMP server.
I want to turn off allow_url_fopen on one virtual host but not the other (i.e. can't turn it off globally in php.ini). The other day I had the same requirement but with register_globals…

Tom
- 4,277
- 11
- 42
- 52
0
votes
1 answer
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

shin
- 333
- 3
- 8
- 16
0
votes
1 answer
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 dynamic library…

megloff
- 403
- 4
- 11
0
votes
0 answers
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-php55 all
deb-src http://packages.dotdeb.org…

VladaP
- 1
- 2
0
votes
0 answers
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 Configuration File: /etc/php.ini
Scan for additional…

Harry Slaughter
- 1
- 2
0
votes
1 answer
centos 6.6, sh: zip: command not found
Centos 6.6 64bit on OpenVZ VPS.
I tried a phpinfo.php file using only the following code:
.
The php error log is now: [Sat Jul 04 17:44:27 2015] [error] [client…

Cazzette
- 63
- 1
- 11
0
votes
1 answer
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.ini
-
session.save_path =…

Kraang Prime
- 215
- 1
- 2
- 11
0
votes
1 answer
How do you setup your domains to use same php.cgi but different PHP.ini
I thought I had this figured out.
I built a php.cgi, but rather than have a copy of php.cgi in the /cgi-bin/ dir for each domain I have. I create a sym link to a common directory so they could all use the same php.cgi ref. Only problem is they are…

qodeninja
- 2,753
- 10
- 32
- 33
0
votes
3 answers
How do I get linux server to use local PHP.ini in a shared environment?
I'm on shared server environment (Dreamhost.com uses Linux/Debian).
I followed their instructions here on setting up a local PHP5 instance on my user account so that I could use APC (php5 accelerator)
A caveat is that I don't have php5 installed on…

qodeninja
- 2,753
- 10
- 32
- 33
0
votes
2 answers
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 can troubleshoot what needs to be done to get it…

sam452
- 269
- 1
- 6
- 15
0
votes
1 answer
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 upload limit has happened). Can anyone suggest what…

Arun Anson
- 3
- 3
0
votes
2 answers
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, with local devdomain jttest.com )
both of 192.168.7.162 and…

Lezir Opav
- 111
- 1
- 6