I’m running a local default PHP installation (under 10.6) and need to
increase the PHP max upload size. What’s the best way to do this?
dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options
I’m running a local default PHP installation (under 10.6) and need to
increase the PHP max upload size. What’s the best way to do this?
dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options
In Terminal, find your php.ini file:
php -info | grep Configuration File
You’ll probably find more than one line that matches that. On my 10.5
machine, that returns
Configuration File (php.ini) Path => /etc
Loaded Configuration File => (none)
So that says it’s looking for a file at /etc/php.ini because that’s
how it was compiled.
Yours will probably be different, but that’s how you find it. You can
also try
locate php.ini
and that may turn up some more suspects. Easiest way to figure out
which one is authoritative if you have lots of choices is to put a big
honking syntax error at the top of one and then bounce the Apache
server (stop and start Web sharing) and see if it blows up.
Walter
On Jul 6, 2011, at 11:56 AM, Todd wrote:
I’m running a local default PHP installation (under 10.6) and need
to increase the PHP max upload size. What’s the best way to do this?
dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options
dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options
I found one file, “php.ini.default” in /etc. I changed the upload limit
from 2M to 100M but I still can’t upload a 86MB file. Does this require
a restart or something else?
Walter Lee Davis wrote:
You’ll probably find more than one line that matches that. On my 10.5
machine, that returnsConfiguration File (php.ini) Path => /etc Loaded Configuration File => (none)
dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options
Anything that ends in .default is just there for you to rename to .ini
and use as your starting point when configuring your server. You will
have to stop and start Apache to get the new ini file to be recognized.
Also, there are five different settings that are critical for large
uploads in PHP:
Walter
On Jul 6, 2011, at 12:47 PM, Todd wrote:
I found one file, “php.ini.default” in /etc. I changed the upload
limit from 2M to 100M but I still can’t upload a 86MB file. Does
this require a restart or something else?Walter Lee Davis wrote:
You’ll probably find more than one line that matches that. On my
10.5 machine, that returnsConfiguration File (php.ini) Path => /etc
Loaded Configuration File => (none)
dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options
dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options
Apparently I’m not allowed to rename the file, change permissions etc.
I’ve tried using my standard user account and also as admin but I get
the same “insufficient privileges” warning.
Walter Lee Davis wrote:
Anything that ends in .default is just there for you to rename to .ini
and use as your starting point when configuring your server.
dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options
It’s owned by root, then. Here’s what you do:
cd /etc
sudo mv php.ini.default php.ini
> you will get a challenge for your password, enter it
> yay, success
You need to do this as an administrator user, and the password you
enter is the same one that user logs in with. sudo says “do this
command as if I was root” and then promptly forgets that you are root
so you don’t proceed to do something tragic like sudo rm -Rf /. Only
administrative users are in the “sudoers” group, which allows them to
do this trick.
Walter
On Jul 6, 2011, at 2:17 PM, Todd wrote:
Apparently I’m not allowed to rename the file, change permissions
etc. I’ve tried using my standard user account and also as admin but
I get the same “insufficient privileges” warning.Walter Lee Davis wrote:
Anything that ends in .default is just there for you to rename
to .ini and use as your starting point when configuring your server.
dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options
dynamo mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options