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
86 views

PHP upload system on Windows server checklist

i have an upload system in php, i want it to upload large files, some may get up to 200mb. This means that it will not only take a lot f bandwidth, server memory space but also a lot of time to upload ...
-3
votes
1answer
149 views

How to block ini_get('disable_functions')

I want to block ini_get('disable_functions') without blocking ini_get() in disable_functions section because when i block ini_get() in my server the roundcube dosen't load, how can i do that?
0
votes
0answers
96 views

Different php.ini variables for each host in Nginx

We have couple of sites on our web server. Most of them are static content with very low traffic. There are some hosts with blog, forum etc. software. Plus i have a development domain running on ...
0
votes
1answer
337 views

Apache VirtualHosts define php.ini but extend main php.ini

I have a main php.ini file and am wondering if it is possible to specify a custom php.ini for a virtualhost, but this php.ini would extend the main php.ini file, so that only the specified settings ...
0
votes
1answer
89 views

Custom PHP.ini file

One of my clients is requesting register_globals to be turned on so his site can normally work. But I disabled custom php.ini files with suphp because of security issues. I must do this because of ...
0
votes
1answer
40 views

Limit Php.ini File Change Per User

I'm using suPHP with Apache 2 and users is allowed to use their own php.ini How can I limit changes of global php.ini values to only few modications? Thanks
1
vote
1answer
2k views

Can't configure PHP error log

I'm running apache2 with php5 on Linux Mint 13 Maya. I have defined a virtual host and these two entries there: ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined ...
2
votes
1answer
1k views

PHP CLI: Call to undefined function mysql_connect() even with mysql module enabled

I try to run a PHP script from the command line, but get the following error: Call to undefined function mysql_connect() However, the mysql module is loaded: root /var/www/scripts # php -m | grep ...
-3
votes
2answers
1k views

Can't install PHP PDO [closed]

I have now tried to install PHP PDO in 2 hours without any luck, and i have searched everywhere to get a solution - but without any luck. yum install php-pdo doesn't work and i cannot find ...
-1
votes
1answer
287 views

php.ini are these settings excessive?

Author of the script that I'd like to run on my VPS asked me to make following changes to php.ini: output_buffering = on (4000 default) register_argc_argv = on (What is this for?) max_execution_time ...
0
votes
1answer
1k views

ini_set include_path not working

It seems something on my server has been changed, and I'm seeing the inclusion failed error message on my every website on the server, here is one example: Warning: require(xconstants_fa.php) ...
0
votes
1answer
47 views

LAMP not working after php.ini change (even if resetted)

My LAMP machine on Ubuntu 12.04 was working fine, then I tried to modify the etc/php5/apache2/php.ini file opening nautilus through the terminal with sudo nautilus. I have edited this line: ...
0
votes
1answer
505 views

How do i set a open_basedir with php using fastcgi/apache2 on linux?

I tried to add this line to my virtual hosts in Apache, but failed: php_admin_value open_basedir "/var/www/users/test" My installation: root# apt-get install apache2 apache2-suexec ...
0
votes
1answer
2k views

Plesk, default php.ini? [closed]

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 ...
4
votes
4answers
6k views

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

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
293 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
371 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 ...
2
votes
1answer
4k 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
335 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
149 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
558 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
370 views

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

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 ...
1
vote
3answers
2k 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
2k 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
871 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
503 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
800 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
11k 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
240 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
1answer
4k 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
110 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
172 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
876 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
556 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
8k 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
293 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
295 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
255 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
5k 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
6k 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
482 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
447 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
520 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
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
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
464 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
452 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 ...