Gandi Wiki


You are on a question's page

PHP 5.2
reopened

Question "Need to customize php.ini file", by James F.

I too need access to this file. For example the upload limits for individual files using php is set at the default of 2megs. That's just too low for my needs. Please tell us what we can do to configure this file, it has to be configurable.

Answer, by Ryan A. (Gandi)

update: it is possible to change the php.ini file by ssh through the admin user at /etc/php5/conf.d/user.ini

Follow-up, by Daniel Taylor.

I used putty to open the user.ini file and added the lines:

admin@alfred:/etc/php5/conf.d$ cat user.ini #dans edit upload_max_filesize = 100M

I then tried to restart the server, but I got an error: admin@alfred:/etc/init.d$ apache2 -k restart apache2: Syntax error on line 292 of /etc/apache2/apache2.conf: Could not open ion file /etc/apache2/conf.d/gandiai: Permission denied

Last modified: 08 Apr 2011 at 02:50 by Baptiste H.