Questions tagged [php.ini]

php.ini is the configuration file used by the PHP preprocessor to setup the default settings and certain security restrictions.

272 questions
0
votes
1 answer

How do you configure the mime_content_type() function to work correctly in php5?

I have a ubuntu 9.04 desktop that i'm using for my development machine with apache2 installed. What are the steps that I need to go through to ensure that the mime types for files are determined correctly? Currently all files are resolving to a…
Josiah
  • 269
  • 1
  • 5
  • 10
0
votes
1 answer

PHP default_charset NOT changing

I have modified the php.ini file shown in the Loaded Configuration File value of phpinfo() to set the default_charset to UTF-8: default_charset = "UTF-8" However, when I re-run the phpinfo(), I see no change whatsoever. What else do I need to do…
MB34
  • 167
  • 2
  • 10
0
votes
1 answer

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 these files. Now i have a system working, but it…
ragebunny
  • 113
  • 5
0
votes
1 answer

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 are overridden and everything else is taken the…
Hosh Sadiq
  • 106
  • 3
  • 15
0
votes
1 answer

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 some attack which is called Symlink, and when…
Luka
  • 375
  • 5
  • 21
0
votes
1 answer

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
Julio Fong
  • 201
  • 1
  • 3
  • 7
0
votes
1 answer

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) [function.require]: failed to open stream: No such file…
behz4d
  • 105
  • 1
  • 4
0
votes
1 answer

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: error_reporting = E_ALL & ~E_DEPRECATED &…
don
  • 215
  • 1
  • 4
0
votes
1 answer

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 the core one?
mariotanenbaum
  • 382
  • 5
  • 14
0
votes
1 answer

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 listen.backlog = -1 listen.allowed_clients =…
Spacedust
  • 568
  • 5
  • 13
  • 28
0
votes
1 answer

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 for a webserver running on Scientific Linux 6.3…
DeeDee
  • 333
  • 2
  • 7
  • 16
0
votes
2 answers

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 any default in your main php.ini file (highly…
Owen
  • 356
  • 5
  • 20
0
votes
2 answers

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 returned in the response indicate that my server is…
Tola Odejayi
  • 334
  • 1
  • 4
  • 19
0
votes
2 answers

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 file so i wanted to know if there is a way to…
Dany Khalife
  • 209
  • 3
  • 17
0
votes
1 answer

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: http://www.howtoforge.com/installation-of-zendoptimizer-and-ioncubeloader-using-lighttpd-on-centos Then I…
user131274
  • 21
  • 5