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
vote
1answer
2k 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
0answers
8 views

How intensive is PHP's session garbage collection [migrated]

If I configure session.gc_* such that probability of the GC running is 1% or greater, how intensive is that? Does it slow the site down for the request where garbage collection is happening? If so, is ...
4
votes
5answers
261 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 ...
1
vote
4answers
5k views

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 ...
0
votes
3answers
632 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 ...
0
votes
1answer
29 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; ...
0
votes
1answer
1k views

installing zend debugger, ubuntu 12.04

I'm trying to install zend debugger in my ubuntu desktop with php 5.3 which I installed from ubuntu repositories. I have copied debugger plugin 5.3.x from zend.com to /usr/lib/php5/20090626+lfs and ...
-2
votes
1answer
38 views

Apache Extended Logs of php files

I am using apache and I want to log each php or any script file with its location which runs for more than 30 seconds or so. I tried to find solutions extensively, but no luck has come true. Is this ...
0
votes
4answers
6k views

error in php not logging or displaying

I can not get any errors to display on screen on write to a log file. When check phpinfo() print out I have same value of master a local for display_errors On display_startup_errors On error_log /...
0
votes
1answer
44 views

php.ini not being loaded [closed]

I have been trying to configure my Apache server all day, however I am having major issues with getting a php.ini file to be loaded. When I try to connect to my database I get this error: Call to ...
0
votes
1answer
21 views

How to override the previous defined PHP value via Ansible PHP role?

I'm trying to apply override PHP's opcache.max_accelerated_files setting via geerlingguy's Ansible Role for PHP onto geerlingguy/centos6's VM using the following lines (as part of provisioning script):...
0
votes
0answers
81 views

nginx 500 error when accessing large file from php script

I am using nginx/1.8.0 and to debug a large file upload issue I am facing in WordPress, I post a file with a simple script: Index file: <html> <!-- index.html --> <head><...
0
votes
0answers
15 views

Server auto disabling pdo

PDO mysql plugin wasn't enabled by default in my server , so i added a line extension=pdo_mysql.so to a php.ini file i created, and it works fine , but every once in a while it is ...
0
votes
1answer
51 views

nginx seems to use wrong php service

i wanted to increase my max. upload file size and install cURL to php5-fpm today. I have installed a LAMP stack on my Ubuntu 14.04. But the changes doesn't take any effect after reloading/restarting ...
0
votes
0answers
15 views

TMPDIR not set on Ubuntu Server

Just got a brand new Ubuntu server from my hosting company which will be mainly used for Wordpress sites. I'm going through apache and php settings to harden the server but when testing a Wordpress ...
0
votes
1answer
121 views

Cloudlinux + CageFS + PHP Selector - how to update default php.ini for each PHP version or for each domain account?

My server runs Cloudlinux 5.11 with CageFS and PHP Selector. Default PHP version is 5.3. I have one account using PHP 5.3, one account using PHP 5.5, and one account using PHP 5.6. I'm trying to ...
0
votes
0answers
35 views

PHP Output Buffering - Disable PHP Phar - GZip Compression

I am trying to show echo'd statements as a PHP script is running. I have tried every variant of flushes I can find, I have turned on Output Buffering in my server's PHP settings, tried disabling GZIP ...
0
votes
2answers
110 views

Installing libevent extension for php on Centos

How to install the libevent extension for php on Centos 7? I spent many many hours trying this, googling many times and really really struggled, so I'm going to document my own answer to this in the ...
1
vote
2answers
96 views

How can I get my mediawiki to stop thinking I have cookies disabled?

I've searched half a day for how to resolve this issue, and can't figure it out. Shortly after I made my wiki a simple private wiki according to the instructions at Mediawiki's website, it started ...
0
votes
1answer
180 views

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 ...
0
votes
1answer
32 views

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

Server not recognizing that wget is installed on OS X Yosemite [closed]

I'm trying to install some software (called Prohits, used for mass spectrometry data management) on a localhost server I set up. One of the requirements for the install is that I have wget installed. ...
1
vote
2answers
226 views

Custom php ini files for IIS7

I have a Windows 2008 Web edition server setup with IIS7.5 and PHP 5.4.6 FastCGI installed. I would like to make use of the user INI files as described here: http://php.net/manual/en/configuration....
1
vote
2answers
16k 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 ...
8
votes
8answers
33k 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 ...
0
votes
1answer
32 views

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
1
vote
2answers
281 views

413 - request entity too large in lighthttpd

When saving configuration settings in Magento I get "413 - request entity too large". We are running lighttpd. In php.ini memory_limit = -1 In lighttpd.conf server.max-request-size = 1000000 I have ...
0
votes
1answer
133 views

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 ...
1
vote
2answers
985 views

How to disable PHP mail function on one apache virtualhost?

I want to disable PHP function mail via Apache2 virtual host configuration file. I want to do it for one virtual host, not for all virtual hosts, and I don't want disable this function in php.ini How ...
10
votes
4answers
72k 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 ...
1
vote
1answer
168 views

php/php-fpm can't find php.ini

I'm having an issue where php and php-fpm can't find php.ini. I installed 5.6.13 from source. The question PHP doesn't load php.ini is very similar but the solutions there haven't helped me. ...
0
votes
0answers
162 views

php 5.6 make test errors

I am in the process of doing php upgrades on our various servers from 5.5 to 5.6. I am down to the last 2 (out of like 8 or so) and running into the following when performing make test (after ...
0
votes
0answers
587 views

php open_basedir not working as expected on synology nas

I'm trying to install gitlist on my synology NAS (DSM 5.2). I downloaded and configured gitlist in config.ini and pointed it to my repositories folder (/var/services/homes/git/repo). But when I try ...
-1
votes
1answer
85 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
1answer
1k 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, ...
3
votes
2answers
7k views

php-fpm Bad file descriptor errors

I'm using php-fpm with customer separate pools. Sometimes page are freezing, then showing 500 internal server error, and I'm getting such errors in error log: [11-Feb-2013 22:12:39] ERROR: unable to ...
14
votes
4answers
20k 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
325 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 wheezy-...
0
votes
0answers
255 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
299 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 now:...
0
votes
0answers
54 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 extension=curl.so....
2
votes
5answers
9k views

PHP short_open_tag Won't Enable (CentOS 6)

I'm setting up an Apache2, PHP 5.3.3 server running on CentOS 6. My web application uses the short tags <? and <?=. I can't seem to get the short tags enabled. When I run phpinfo() I see ...
2
votes
2answers
2k views

Settings on php.ini ignored

I can't get my server to obey the settings from php.ini (I'm trying to change memory_limit and upload_max_filesize). As far as I can tell, I'm editing the correct file. phpinfo() gives: Loaded ...
2
votes
1answer
650 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
51 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
1answer
78 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 = d:/server/bin/browscap....
-3
votes
1answer
376 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
104 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 ...
-1
votes
1answer
2k views

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

I have recently updated my server to the latest version of PHP 5.1.27, except now - a few of the scripts used by my websites come up with the following error: Fatal error: Call to undefined function ...
1
vote
0answers
70 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 php....