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

0
votes
1answer
277 views

php script killed after 30 seconds and throwing Internal Server Error

I use php_fpm_event on my server and after 30 seconds of execution the process is being killed and I see Internal Server Error. However I've set much larger values: [admin] listen = 127.0.0.1:57797 ...
1
vote
1answer
3k 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 ...
0
votes
1answer
143 views

Reconfiguring or recompiling a PHP installation originally installed via yum

I'm a programmer who currently does not have a sysadmin. I have a decent, but not in-depth, knowledge of Linux OSes such as RedHat and Scientific Linux. Right now I'm writing some programs in PHP ...
0
votes
0answers
98 views

How to define the upload_tmp_dir for all the accounts?

I'm not really a sysadmin, so bear that in mind. We recently set our server and we have multiple cliente accounts. The problem is the upload_tmp_dir configuration is empty. In an upload script that ...
0
votes
0answers
60 views

PHP page not displaying formatting on external slow connection, but does on internal fast connection

Hopefully this is simple. If I access a webpage served using apache2 and php5 via a mobile device with a slower connection like an android phone, the display and formatting of the php page does not ...
1
vote
0answers
375 views

Can't load my php.ini on localhost

I have a server and a local version of it on my hard drive. I am trying to access the local version through localhost. Entering localhost works, I enter the base html file and all that. The problem ...
-1
votes
1answer
220 views

Plesk can't/won't/doesn't-know-how-to reload php.ini

So Plesk is pretty much my daily nightmare but I'm stuck with it. Today's practical joke on me is that it won't seem to load changes I make to the php.ini. I'm trying to get a file's contents (via ...
0
votes
3answers
382 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 ...
1
vote
1answer
762 views

Do we need to explicitly pass php.ini's location to php-fpm?

I am seeing a strange issue where my php.ini is not used if I do not explicitly pass it to php-fpm when starting it. This is the upstart script I am using: start on (filesystem and net-device-up ...
1
vote
0answers
547 views

PHP.ini custom settings through htaccess

I'm confused by this ini list in the PHP Manual: http://www.php.net/manual/en/ini.list.php I want to set some custom php.ini values through htaccess, but which one of these commands is not going to ...
-1
votes
3answers
204 views

Changing php.ini location for localhost

I'm using localhost to run a website locally; my problem is that I can't get the correct php.ini to load. I have set the Directory and DocumentRoot fields in /etc/apache2/sites-available/default, and ...
-2
votes
1answer
304 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 ...
1
vote
2answers
5k 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 ...
1
vote
0answers
162 views

Error after installing mysqlnd_ms

I am working on Amazon EC2 using the Amazon Linux AMI which is based on CentOS. I have installed php54 and php54-mysqlnd. I then do a "sudo pecl install myslqnd_ms" This installs fine. I add the ...
1
vote
0answers
245 views

Custom php.ini with FastCGI seems to disable APC

I'm testing FastCGI and APC on cPanel server (CentOS 5.8, PHP 5.3.18, Apache 2.2.23). I want to allow users to have a custom php.ini by doing the following: Copying server's php.ini to user's ...
1
vote
1answer
1k views

how can i disable safe mode for php on web server? [closed]

I am using wkhtmltopdf for making a pdf of a page. My code executes the shell to run a command using this wkhtmltopdf library. Everything works fine in my wamp server but when the code runs on my ...
0
votes
0answers
104 views

Why is PHP still logging notices and warnings after I change the error_reporting in php.ini

I have changed the error_reporting variable in php5/cli/php.ini and php5/apache2/php.ini. I used several options including: "E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR" "E_ERROR & ...
1
vote
0answers
86 views

mod_vhost_alias + wildcard + custom php.ini

Here's my httpd.conf thats using mod_vhost_alias. The docroot is always in /home/username/domains/domainname/public_html. <VirtualHost *:80> ServerName *.abc.com ServerAlias ...
1
vote
1answer
135 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: ...
1
vote
1answer
1k views

502 Bad gateway on big file uploads : Nginx + PHP-FPM

I'm running php-fpm on nginx I have my php.ini values set as follows upload_max_filesize = 100M post_max_size = 128M max_execution_time = 180 I have also set my client_max_body_size to 4G. When I ...
-2
votes
2answers
562 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
446 views

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

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" ...
0
votes
2answers
4k 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
200 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
241 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
153 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 ...
1
vote
1answer
3k 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
3k 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
308 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
356 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
272 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
1answer
873 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
700 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
381 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
1k 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
911 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
238 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 ...
1
vote
2answers
3k 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
408 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
807 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 ...
1
vote
2answers
2k views

PLESK PostFix Error Local Loop in maillog, how to troubleshoot

I'm using the PHP mail() function, using PostFix, on CentOS6, Plesk 10.4, and my email is not getting delivered to a particular address. My personal GMail and Yahoo email addresses receive email from ...
1
vote
3answers
7k 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
1k 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 ...
0
votes
1answer
922 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
3k 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
5k 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, ...
0
votes
1answer
622 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 ...
0
votes
0answers
301 views

CentOS 6 - eaccelerator & pecl apc

I'm having a few issues enabling both of these at the same time due to extension paths. While APC is installed in: /usr/lib/php/extensions/no-debug-non-zts-200XXXXX eaccelerator is installed in: ...
5
votes
4answers
5k 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
371 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(), ...