Questions tagged [php.ini]

42 questions
12
votes
3 answers

how to change path of php ini windows

I've downloaded php, addeded it to my path and im trying to enabled openssl php --ini tells me that configuration file is c:\windows which there was nothing there, I dont want to copy php into c/windows. How do I change this to point at my php…
Guest
  • 121
6
votes
2 answers

is there any way to find out how I was hacked? What was the weak point?

one of my site hacked few times :( first I lost all databases, some tables were cleared and some of table's data had changed! than at the second hack, all tables were cleared and some php files' codes had been changed :/ it is hosted in Bluehost,…
art.mania
  • 213
5
votes
1 answer

How do I disable ALL error messages via php.ini?

Despite the following settings below, I often see the path to the file producing the error. How do I turn off ALL errors no matter what? error_reporting = E_ALL display_errors = off log_errors = off
5
votes
2 answers

MediaWiki: increase session timeout

I have a small MediaWiki wiki in a hosted website. It works pretty well, except that I can't find where to configure the session timeout. Right now, my session expires while I'm editing pages. I've seen all kinds of recomendations, including…
ggambetta
  • 367
5
votes
2 answers

How can I change values of the `.ini` files via command line? (linux or windows)

How can I change values of the .ini files via command line? (linux or windows) For example I have a php.ini file: display_errors = On error_reporting = E_ALL & ~E_NOTICE Now, I need be like this command: MAGIC-COMMAND display_errors=Off…
4
votes
3 answers

Securing Apache server against slightly untrusted PHP code?

I have an unusual situation where I need multiple users to be able to upload and execute PHP code on my Apache server, but I cannot allow one user to access another user's PHP source (if concrete examples make you feel better, imagine I'm hosting a…
Alex R
  • 1,862
4
votes
3 answers

PHP CLI not respecting memory limit in php.ini

I am using drush, which is a command-line php app to manage a drupal website. I am running a command to import a lot of data, which is causing me to hit php's memory limit. PHP Fatal error: Allowed memory size of 536870912 bytes exhausted…
user13743
  • 1,751
3
votes
1 answer

Change php.ini used by commandline

I try to run a script from the command line, a script made by zend framework. I used also the Zend Server who has her own php.ini. When I try to start my script on the command line I am not able to connect with my mysql database. It's because from…
3
votes
1 answer

Curl extension not working for php 7, Windows 7 and Apache 2.4

I've recently upgraded to php 7.1.31, starting from an installation of EasyPhp (Windows 7, x86). After installing the files and configuring the php.ini file, all is running well, except a problem with the curl extension: **Fatal error: Uncaught…
Michael
  • 31
3
votes
0 answers

Configuring PHP for MongoDB on Mac OS X Sierra

I'm having some difficulty configuring PHP to integrate with MongoDB on my Mac. I can confirm that PHP is running correctly, and the php.ini file I am tinkering with is the correct one (I can see phpinfo() results change accordingly). I also have…
3
votes
2 answers

php 5.6.20 - /etc/php5/conf.d directory missing

I can't find /etc/php5/conf.d directory in my system. Do they change catalog structure ? I already read /usr/share/doc/php5-common/README.Debian.gz There is information about linking /etc/php5/$SAPI/conf.d to central directory /etc/php5/conf.d…
2
votes
2 answers

Mac OS X 10.5.8 issue with php.ini file (PHP 5.2.10)

I'm running Leopard 10.5.8 with the Apple-supplied versions of PHP (5.2.10) and Apache (2.2.11). Changes made to the /etc/php.ini file are not taking effect after stop/start of Apache. phpinfo() and shell command php -i confirm the 'status quo'. …
2
votes
1 answer

How to enable safe mode for php.ini in Xampp?

I want to put my home server online for private use (using Xammp), so i need to put safe mode on (my OS is Windows XP) So i changed the congif of php.ini in the php folder located in xampp to this: Safe Mode ; safe_mode = On ; By default, Safe…
rzlines
  • 7,678
1
vote
0 answers

Adminer - can't allow for larger file uploads than 2mb

I'm trying to upload my db dump file through adminer, but it is limited to 2MB uploads, even though I went to the php.ini file and chenged it to 35MB. I'm using a vagrant php environment generated by puphpet.com. I tried calling phpinfo() to check…
zkwsk
  • 195
1
vote
0 answers

Implications of Increasing Max File Size In php.ini

For example, is there a risk for data corruption that increases as you allow larger file sizes to be uploaded to the server?
Scandalist
  • 3,119
1
2 3