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
2
votes
2 answers

php-gd installed but gd not showing up in phpinfo on CentOS 5.3 server running nginx

Logged in as root, I installed the php-gd libraries using $ yum install php-gd it said everything worked fine, so i did $ /etc/init.d/nginx restart But the code I had been working on still complained of not having the gd libraries and when I went…
Neil Sarkar
  • 283
  • 1
  • 4
  • 10
2
votes
3 answers

How can I get my mediawiki to stop thinking I have cookies disabled?

I've searched half a day for how to resolve this issue, and can't figure it out. Shortly after I made my wiki a simple private wiki according to the instructions at Mediawiki's website, it started giving me this weird login error message: Wiki…
PakG1
  • 31
  • 6
2
votes
2 answers

How to disable PHP mail function on one apache virtualhost?

I want to disable PHP function mail via Apache2 virtual host configuration file. I want to do it for one virtual host, not for all virtual hosts, and I don't want disable this function in php.ini How to do it correctly? Thanks in advance!
darkw1nd
  • 137
  • 1
  • 8
2
votes
2 answers

How do I get Apache to use a different local PHP.ini for different domains?

is there some sort of .htaccess directive. I dont have access to httpd.conf. I have php5 in a fastcgi/cgi module. Multiple domains. But for some reason all the domains are pointing to the first domains php.ini (the one I installed php with in the…
qodeninja
  • 2,753
  • 10
  • 32
  • 33
2
votes
0 answers

What is the right value for memcache.session_redundancy?

The PHP manual for Memcache doesn't have any explanation for the memcache.session_redundancy option. The comment on that page (which is 4 years old) says it sets the number of copies of a session object. In another old question on memcache this…
A.Jesin
  • 424
  • 1
  • 4
  • 14
2
votes
0 answers

Apache2 - 500 server error when trying to access .php file

I have a webserver (Apache2, configured on Ubuntu Saucy Salamander 13.0x). On this server I have the following file in question: /var/www/xxxxx.com/insertToDB.php Accessing this file using GET results with 500 Internal Server Error. I have tried…
2
votes
1 answer

php.d/*.ini not overriding php.ini in PHP 5.5

My /etc/php.ini has the following configuration: upload_max_filesize = 2M post_max_size = 32M And /etc/php.d/app.ini contains: upload_max_filesize = 64M post_max_size = 64M With PHP 5.4, PHP was giving precedence to the app.ini values over the…
BenMorel
  • 4,507
  • 10
  • 57
  • 85
2
votes
1 answer

Amazon Linux, PHP 5.5: php.ini ignored

On our Amazon EC2 instance, I uninstalled PHP5.3 (yum remove php) and installed PHP 5.5, which also bundled in Apache 2.4 (yum install php54). For some reason, my php.ini file is no longer being read. It looks like it may be deprecated, and maybe I…
DOOManiac
  • 791
  • 6
  • 12
  • 26
2
votes
1 answer

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 That produces error and access logs in…
linski
  • 121
  • 1
  • 4
2
votes
1 answer

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 mysql mysql mysqli pdo_mysql I am on a Debian…
Matthias
  • 302
  • 4
  • 16
2
votes
2 answers

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 php.ini file. I am not getting any php version info…
user145862
  • 41
  • 1
  • 2
  • 5
2
votes
1 answer

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

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 web-server it does not work and gives the following…
Bushra Shahid
  • 123
  • 1
  • 1
  • 5
2
votes
1 answer

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 try small uploads they work, but when I try a big…
ryan
  • 125
  • 2
  • 6
2
votes
3 answers

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 there any reason why I wouldn't want to bump…
Jolva
  • 21
  • 1
  • 2
2
votes
2 answers

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, /etc/php53/php.d/pdo_mysql.ini,…
nuthan
  • 131
  • 1
  • 1
  • 7