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

-2
votes
2answers
1k views

How to restore php.ini in CentOS [closed]

I have a problem in restoring my php.ini in the server. I was changing some line but I accidentally cut off and save. Any idea how to restore it back? Environment: CentOS release 6.3 (Final) ...
0
votes
1answer
620 views

Working with different PHP version at the same time, php_value extension_dir not working? [duplicate]

I need both PHP 5.4.7 and 5.3.17 running on Windows 7 x64 with Apache 2.2.23. This is my virtual host configuration: <VirtualHost *:80> DocumentRoot "C:/WAMP/Apache/htdocs/php54" ...
1
vote
2answers
11k 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 ...
0
votes
1answer
431 views

php.ini on Apache - does it reset to 'defaults'

I heard somewhere that, if you place a php.ini in a website root or subdirectory it will basically use default settings for everything that is not included in this php.ini file. So if you have changed ...
0
votes
2answers
320 views

Content not being compressed even though I'm using zlib in php.ini

I've edited my php.ini file so that it has these two entries: zlib.output_compression = On zlib.output_compression_level = 4 However, after restarting apache, when I request php pages, the headers ...
-1
votes
1answer
371 views

Steps to add ssl certificate in Virtual private server and PHP configurations

I have a Virtual Private Server(VPS) in CtrlS. I need to add SSL certificate to my VPS server. What are the steps to add SSL Certificate on VPS? In my Web Application i have lot of PHP files to ...
2
votes
1answer
7k views

Can we have 2 'extension_dir' in php.ini?

When I installed pdo-pgsql, the extension was installed into /usr/lib/php/extensions/no-debug-non-zts-20090626/ and thus not automatically loaded. In php.ini, I have extension_dir = ...
1
vote
5answers
8k 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 ...
0
votes
2answers
598 views

Change php's auto-append-file from a script

I am using the php config auto-append-file to append code that i need to be executed on all pages on a particular domain. But my problem is that there are other domains that share the same php.ini ...
0
votes
1answer
524 views

Cannot install Ioncube on php

I have downloaded Ioncube then using unzip tar and placed it in document root. Then changed the php.ini file.. I did all according to: ...
0
votes
1answer
720 views

default session file Permits

i need to edit the default permits of the session file i know it's high security risk, The default permits is :600 [root@server sessions]# stat sess_06pqdthgi49oq7jnlvuvsr95q1 File: ...
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 ...
1
vote
3answers
2k views

Setting memory_limit in php.ini - can I use all of the available system memory?

Sorry in advance for the newbie question, but I have a dedicated virtual server I'm working on that has 512MB of RAM memory. I've recently changed the memory_limit from the default of 128M to 256M. Is ...
3
votes
1answer
554 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
4k 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
668 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 ...
3
votes
2answers
7k 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
566 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 ...
4
votes
3answers
14k 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 ...
3
votes
1answer
2k 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
6k 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?
1
vote
2answers
10k 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
1k 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
9k 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
633 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
507 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
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 ...
2
votes
1answer
331 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
103 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
521 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
177 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
4k 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
372 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
2answers
17k 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
904 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
238 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
944 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
2k 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
294 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
475 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
792 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
520 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
85 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
157 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
2k 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 ...