php.ini is the configuration file used by the PHP preprocessor to setup the default settings and certain security restrictions.
Questions tagged [php.ini]
272 questions
0
votes
1 answer
WHM - php.ini in public_html stops default php.ini
I have a server with WHM panel. OS is CentOS. When I put a php.ini in public_html PHP stops reading /usr/local/lib/php.ini.
When I compare results of phpinfo() what I see is;
error_log error_log error_log
becames
error_log no value no…

borayeris
- 213
- 1
- 9
0
votes
1 answer
Enable curl_exec() in a sub-folder
Curl is enabled on the server but curl_exec function is disabled for security reasons.
disable_functions = exec,passthru,shell_exec,system,proc_open,popen,
curl_exec,curl_multi_exec,parse_ini_file,show_source
I know that I can enable this function…

vv_vv
- 105
- 4
0
votes
1 answer
Apache2 internal server error not being logged
I'm doing some web development with the Laravel framework, and I have my jQuery set up so that it sends a request on click of a button to a PHP file, which then returns the result back to my jQuery.
However, every time I click this button I get an…

kibowki
- 109
- 2
0
votes
1 answer
Centos 6.5 -- backported upgrades/php.ini directives included in php 5.3.3
PHP 5.3.3 is the latest version of PHP available with the official CentOS 6.5 repos. As most of you know, calling it version '5.3.3' is slightly deceptive because critical bug fixes are actually back ported into version 5.3.3, so in effect 'version…

Byte Lab
- 103
- 5
0
votes
2 answers
MySQL performance problems on particular vhosts
I have a dedicated server setup (8 cores, 16 GB of RAM), running Ubuntu 12.04 LTS with latest updates, and I am experiencing some performance problems related to MySQL. I have multiple vhosts active. Did some basic performance tuning. See below.…

Mark
- 1
- 1
0
votes
1 answer
Unbuntu 14.04 + Nginx + PHP5-FPM + sqlite3 : pdo sqlite could not find driver
phpinfo() says I have SQLite 3.x driver for PDO.
php.ini only mentions sqlite like so:
[sqlite]
; http://php.net/sqlite.assoc-case
;sqlite.assoc_case = 0
[sqlite3]
;sqlite3.extension_dir =
I tried running sudo apt-get install php5-sqlite3 and it…

Rayhan Muktader
- 103
- 1
- 3
0
votes
1 answer
another php.ini for domain with nginx php-fpm working in fastcgi
I working with nginx and php-fpm
and use unix:/cls/php-fpm.socket;
I have enable xcache for hole server setting it in php.ini
and want to disable xcache for 1 domain
I did it with this in server config in nginx
location ~ ^/.+\.php {
…

ezak
- 13
- 1
- 6
0
votes
1 answer
phpMyAdmin logs-off after default 1440 seconds, though all settings seems fine
Following are set and confirmed:
I've set $cfg['Servers'][$i]['LoginCookieValidity'] = 259200; in config.inc.php,
I've set session.gc_maxlifetime = 259200 in php.ini,
I see value 259200 in Settings > Features > General tab, in Login cookie validity…

trejder
- 143
- 10
0
votes
1 answer
PHP Settings [pm.max_children, pm.start_servers, pm.min_spare_servers and pm.max_spare_servers]
In the midst of transferring a website from a GoDaddy shared server to an EC2 instance. Handling the traffic, which during peak times on a typical day is around 300 active visitors, has been problematic to say the least. My CPU usage slowly rises…

panoramic
- 21
- 1
- 7
0
votes
1 answer
php.ini does not update date.timezone
I have apache and php running on OSX.
I have a simple page printing phpinfo().

nute
- 791
- 2
- 11
- 22
0
votes
0 answers
uploadprogress.so is installed, but does not appear in phpinfo
I'm on RHEL6 (Red Hat Enterprise Linux Server release 6.5 (Santiago)), but I've upgraded PHP to version 5.4.16. I've downloaded and installed the PECL uploadprogress library version 1.0.3.1 that is supposed to be compatible with my version of…

Free Radical
- 131
- 9
0
votes
1 answer
Load php.ini in each folder
I have a question for the php.ini in root folder, how it can be loaded when reading the page and overwrite the original value.
When I was using the webhosting service, I could simply put the php.ini into root folder, then file will overwrite the…

Till
- 99
- 2
0
votes
1 answer
APC and xCache memory configuration
In PHP xCache and APC, there are options that allows to set maximum memory.
Do xCache and APC actually RESERVE the memory, or they just use it whenever they need to?

ComMania
- 61
- 2
- 7
0
votes
1 answer
curl lot loaded after adding SFTP support
I installed Tartarus, and since my current curl didn't have SFTP
support I've done this .
Tartarus worked fine but I started to receive mails:
PHP Warning: PHP Startup: Unable to load dynamic library
'/usr/lib/php5/20100525/curl.so' -…

nordashi
- 15
- 4
0
votes
1 answer
php.ini file starts with 0[PHP]
In my httpd error_log I keep getting the following error:
syntax error, unexpected END_OF_LINE, expecting '=' in /usr/local/lib/php.ini on line 2
When I look at the php.ini file line 2 reads:
0[PHP]
If I remove the 0 and save the file, when I try…
user140816