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

3
votes
1answer
485 views

How to disallow use of disable_functions in?

I'm obviously not the first one to have this problem, but I cannot not find an answer to this situation. I want to lock down PHP a bit, more specifically the use of disable_functions. The environment ...
1
vote
1answer
3k views

PHP memory_limit local value does not match php.ini value

CentOS system. Summary: changed memory_limit in master and local php.ini and yet no change in the local value for a particular virtual host. Trying to improve performance, I set the memory_limit to ...
0
votes
1answer
2k views

Best way to handle PHP sessions across Apache vhost wildcard domains

I'm currently running a site that allows users to use custom domains (i.e. so instead of mysite.com/myaccount, they could have myaccount.com). They just change the A record of their domain and we then ...
2
votes
1answer
504 views

How do I prevent Apache/PHP from showing the environment variables section in phpinfo()?

I need to prevent users from accidentally exposing private data stored in the environment variables with phpinfo(). Is there a way to configure apache or php.ini to disallow sections rendered with ...
2
votes
2answers
5k views

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: ...
1
vote
3answers
511 views

php.ini date.timezone usefulness?

I'm not sure if this is a question for serverfault or stackoverflow but it seems like it has a lot to do with server config. We have a server in chicago and the server's clock is on chicago time. But ...
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 ...
3
votes
3answers
12k views

Hide STRICT errors on PHP 5.4

I've upgraded from PHP 5.3 to PHP 5.4 today. Now my script is displaying a lot of error messages. How to hide them without using error_reporting(0); inside php file ? I use this: error_reporting = ...
0
votes
3answers
2k views

Apache 2.4 and PHP 5.4 getting connection reset errors in the browser

In the weekend I upgraded my development web server to Apache 2.4 and PHP 5.4. In my web application which was previously working great on Apache 2.2 and PHP 5.3 it now starts getting these messages ...
1
vote
1answer
1k views

Installing xdiff locally with Apache + PHP [closed]

I'm trying to get the xdiff library for PHP installed on my localhost so that I can do some testing with it. My set up is PHP 5.3 + Apache + Mac OS X. Unfortunately, there is no macports port for ...
7
votes
1answer
5k views

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?
0
votes
2answers
8k views

How to enable mysqli extension on redhat?

My php.ini says: Additional .ini files parsed /etc/php53/php.d/curl.ini, /etc/php53/php.d/fileinfo.ini, /etc/php53/php.d/json.ini, /etc/php53/php.d/mysqli.ini, /etc/php53/php.d/mysql.ini, ...
1
vote
1answer
775 views

How to add a extention to the php.ini file

Hi have Centos 6 installed and busy installing wkhtmltopdf, I only have one step left and that is to include extension=phpwkhtmltox.so to the php.ini file, I added it to /etc/php.ini and reloaded ...
5
votes
4answers
7k views

PHP date.timezone warning

I keep getting this error: Message: date() [function.date]: It is not safe to rely on the system's timezone settings. You are required to use the date.timezone setting or the ...
0
votes
1answer
550 views

Packages are installed on server but not displaying in phpinfo()

I have installed imagemagick and ffmpeg on my CentOs 5.5 Godaddy VPS. I have added extension in php.ini also. I can able to see the installed packages in /usr/local/bin. But when I print phpinfo(), ...
0
votes
1answer
364 views

php.ini is not loading on my local machine mac os x

I have a localhost running on my mac osx machine, everything works fine apart from I get this error when running some applications: Warning: strtotime() [function.strtotime]: It is not safe to rely ...
0
votes
2answers
1k views

Installed PHP on CentOS, some features not working

I followed this guide to install PHP 5.3 on my CentOS 5 server: http://www.webtatic.com/packages/php53/ I have phpMyAdmin extracted in a directory but it says it can't find the mysql extension. ...
-1
votes
1answer
1k 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 ...
2
votes
1answer
269 views

Updated php.ini but php.info shows different values

I've updated php.ini using root with some value changes in max time out and upload file size and such, but when I checked mywebsite.com/info.php I don't see the changes on what I've edited. What ...
0
votes
1answer
98 views

php error reporting

I have a problem i have a simple lamp server and i want it to display php errors. (apache2) so i go into my php.ini file and error_reporting = E_ALL | E_STRICT The web says this should do the trick ...
2
votes
1answer
477 views

Suhosin per-URL exceptions?

I am using SimpleID as my OpenID provider and it turns out that if I log on via pages like those on StackExchange, one of the parameters of the GET request gets dropped by Suhosin. The name of the ...
1
vote
0answers
174 views

Zend autoloader not working from PHP config

Is the PHP config file (php.ini) supposed to have something in it that will enable Zend Autoloader support? Cause I am using it in my application and on one server and it's not working (it says it ...
1
vote
4answers
3k views

Unable to upload files larger than 128KB error because of ​MaxRequestLen update

server : Plesk panel 10.3.1, PHP 5, Apache2 When I updated the plesk panel, I noticed a strange error while uploading files. My server does not allow any file to be uploaded above the 128kb, even ...
0
votes
1answer
358 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 ...
0
votes
3answers
2k views

PHP enable sqlite phpinfo states --without-sqlite

I've seen similar questions but none that address my situation adequately. I'm running Apache and PHP 5.3.6 on a amazon cloud server. phpinfo keeps stating that sqlite is disabled. At least that ...
8
votes
3answers
14k views

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

Configuring php.ini to prevent attacks

I have been attacked on a shared host server (heartinternet) and they said I should configure my own php.ini file properly. Well I have a little php/MySQL program with a registering function, a ...
4
votes
3answers
219 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
votes
2answers
776 views

PDO not showing in phpinfo() with custom php.ini file [closed]

I have a custom php.ini file which sets my session.save_path=./ With this file in place, my phpinfo() does not show PDO or PDO mysql being enabled. If I rename the php.ini file, the phpinfo() does ...
1
vote
3answers
998 views

How to get path of php.ini?

I have currently 3 php.iniS files in my /etc/php5 path. tree: ./php5_ ./php5_/cli ./php5_/cli/conf.d ./php5_/cli/php.ini ./php5_/apache2 ./php5_/apache2/conf.d ./php5_/apache2/php.ini ./php5_/conf.d ...
1
vote
2answers
273 views

max_execution_time (PHP) <- when does it start to count?

I have few very-long-executing scripts, and my max_execution_time is 5 However, when I was taking some information from plus.google.com, it took about five minutes. It all worked well but it was just ...
3
votes
1answer
421 views

PHP DL Function

Is allowing dynamic extension loading dangerous for some reason? I ask because I need it to include the pecl oauth.so extension to make the Google Adwords PHP SDK work using dl(). I've tried all ...
0
votes
1answer
733 views

SMTP implementation on EC2 using Pear Mail package (PHP)

I am working on sending out SMTP relay email's using Gmail as my server using Pear Mail package in PHP. I have installed Pear package using YUM. Also I have located the path for pear_dir and included ...
0
votes
2answers
483 views

PHP as FastCGI: Custom php.ini not working

I'm running PHP as FastCGI (I needed multiple versions of PHP). .htaccess AddHandler php5-fastcgi .php Action php5-fastcgi /cgi-bin/php-5.2.17.fcgi cgi-bin/php-5.2.17.fcgi #!/bin/sh ...
0
votes
1answer
84 views

PHP error logging to file, with display_errors OFF

In my PHP.ini, I have it set to log errors to a file, and display_errors is OFF. However, my errors are NEVER being logged... anyone know what common issues are, or what could be preventing them from ...
0
votes
1answer
150 views

How do you share php.ini for a webfarm?

we have a IIS 7.5 webfarm (3 servers ATM) running php. Using web deploy we keep the servers in sync, but this only applies to the files used by the sites and the configuration of the IIS. Is there a ...
0
votes
1answer
1k 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 ...
0
votes
1answer
572 views

How to make apache display “only” PHP errors?

Trying without succes to make apache display on screen errors on our development server. Basically I understand that my: error_reporting = E_ERROR & E_RECOVERABLE_ERROR & E_STRICT Has no ...
3
votes
2answers
15k 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, ...
0
votes
1answer
260 views

php GD2 lib uncommented, but still doesn't work!

i have installed Apache/2.2.17 (Win64) PHP/5.2.8-x64 . i need GD2 lib... so i went to php.ini, uncomment php_gd2.dll and restarded server. nothing! gd lib doesn't work! help!
1
vote
2answers
820 views

Able to configure/compile PHP --with-ldap, but LDAP is not listed in phpinfo()

I am trying to compile PHP with LDAP support using these lines: ./configure --prefix=/app/php --with-ldap=/usr sudo make sudo make install Everything appears to install fine without ...
0
votes
2answers
480 views

local php.ini file does not load in IIS 7

I have PHP 5.3.5 installed on IIS 7 which I installed through WebPI (Web Platform Installer). I would like to have some global settings controlled on a site by site basis but I am unable to have the ...
1
vote
0answers
946 views

Expert opinions on optimal Wordpress PHP settings

I recently decided to include a great system stats plugins with every wordpress install. LINK: http://wordpress.org/extend/plugins/tpc-memory-usage/screenshots/ One of the features of this plugin ...
2
votes
2answers
6k views

How do I configure multiple PHP.INI files on shared host running Apache?

I would like to use a different PHP.INI file for each site hosted on a shared server. I have modified the Apache vhosts file for each of the sites, adding the line… PHPINIDir /srv/www/my-domain.com/ ...
0
votes
1answer
488 views

Install APC on Solaris

I Apache and PHP 5.3 installed from Blastware. I run pecl install apc and everything went ok. apc.so is in the extension library. I declared the extension in php.ini and enabled it with ...
2
votes
2answers
3k views

Changes made to cli's php.ini not taking effect

I have two php.ini files - /etc/php.ini which loads in case of cli /opt/lampp/etc/php.ini which loads in case of browser. I am able to use PHP's Mailparse extension after adding the line ...
1
vote
2answers
5k views

Failed to write session data

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 ...
1
vote
1answer
485 views

Issues after upgrading the servers PHP version

I have created my project in Symfony 1.4.8 with Propel ORM. previously server had PHP version 5.2.* and i have upgraded it to 5.3.4, then the problem started giving some error in Propel. the errors ...
5
votes
2answers
9k views

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

Need ability to set configuration options using single method which will work across multiple server configurations

I'm trying to set post_max_size and upload_max_filesize in a specific directory for a web application I'm building. I've tried the following in a .htaccess file in the script directory. (upload.php is ...