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
1k views

Plesk, default php.ini?

I can easly change and custom all php.ini-s for each domain, however, i don't know how to customize the core one? I want to be able to limit some settings globally but i don't know which php.ini is ...
1
vote
2answers
2k views

The requested PHP extension ext-mcrypt * is missing from your system

I have updated my php to version 5.4.13 etc and well in the terminal my version of php states this PHP 5.4.12 (cli) (built: Mar 16 2013 21:46:23) But running a composer install io get the ...
1
vote
1answer
236 views

Which function should be disabled/enabled in php.ini for web hosting servers? [closed]

I have a VPS (Ubuntu 12.04) and I'm testing it for hosting services. Currently the VPS is running only one website for testing, so which function should be disabled/enabled in php.ini so that I can ...
0
votes
1answer
364 views

Plesk open_basedir restriction in effect - restart server issue

Hello Everybody, I got Plesk on a dedicated server. I had open_basedir restriction in effect error in my php application, so i have edited the php.ini files on server core and created one within ...
0
votes
1answer
335 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
213 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
127 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 ...
1
vote
0answers
493 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
290 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
827 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 ...
2
votes
1answer
1k 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
733 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
322 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
537 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
8k 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
1answer
192 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. Then I do a sudo pecl install myslqnd_ms. This installs fine. I add the ...
1
vote
0answers
274 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
3k 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 ...
1
vote
0answers
104 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
155 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
2k 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
746 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
517 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
6k 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
265 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
274 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
200 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
4k 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
4answers
4k 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
409 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
408 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
410 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
1k 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
1k 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
425 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
2k 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
1k 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
373 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
4k 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
464 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 ...
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 ...
3
votes
3answers
10k 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
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
4k 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
6k 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
699 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
6k 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 ...