the php.ini file change the php.ini file change
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

the php.ini file change

Started by harvard, January 09, 2007, 09:51:23 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

harvard

When I ask my host to change my php.ini, so that i can upload larger files, how should i ask them? like this:
QuoteI need the server-side php.ini file changed from this
==========================
Size and Time
------------------
Directive | Local Value | Master Value
max_execution_time | 30 | 30
max_input_time | 60 | 60
upload_max_filesize | 3.5M | 3.5M
post_max_size | 8M | 8M
==========================
to this:
==========================
Size and Time
------------------
Directive | Local Value | Master Value
max_execution_time | 30 | 30
max_input_time | 60 | 60
upload_max_filesize | 12M | 12M
post_max_size | 12M | 12M
==========================
Will they know what to do?
Also is there a way to make your own php.ini file and put it in the public_html directory to call your own functions?

Joachim Müller

Depends on webserver setup. You'll have to ask your webhost if they will change things or if you're allowed to have a custom php.ini file. As suggested in the FAQ thread, this is not something we could help you with.

harvard

they said I can have a custom php.ini file in the public_html section. but how do I know what tp put in there and how to I change the path?

Nibbler

Nothing to do with Coppermine. Read the php manual or seek support from your host.

Joachim Müller


harvard

ahh, so its the same standard thing for all php.ini files. okay. thanks for that. What about changing the path in the coppermine script so it points to the right path?

Nibbler


harvard

well i successfully created a php.ini file and changed the max upload size from 2M to 10M but when I  look at the phpinfo() (at the bottom under the debug stuff) it still show the file to the php.ini file being somewhere I cant edit (and remains 2M).
but when I execute the phpinfo() command from a file it shows the correct path and the right upload limits. There has to be something I must change within the script right?

Nibbler

No, Coppermine doesn't read your php.ini so it doesn't care where it is. This is not a Coppermine issue.

harvard

okay, ty. My host said they changed the max file upload size but its not showing up for some reason...

Joachim Müller

The webserver might need a restart. As suggested various times already: not a coppermine issue. This means: nothing we could help you with. No advice we could give. The only places you could turn for help are your webhost and the PHP documentation. There's little use in discussing this here.

harvard

okay its fixed. Heres what I think happen in case someone runs into a similar problem. I simply asked my host to raise the upload_max_filesize to 10MB from 2MB. They new what I was talking about and everything and if you have a cool host they will do it for you.

When I Look under the debug mode at the phpinfo() file it still showed me at 2MB I contacted my host once again and they said its a bug in the script. So I reinstalled Coppermine and it then showed at the right max upload limit of 10M.

Hope that helps someone.