Author Topic: Where do you put a custom php.ini file?  (Read 6982 times)

0 Members and 1 Guest are viewing this topic.

Offline webslingers

  • Newbie
  • *
  • Posts: 38
    • View Profile
Where do you put a custom php.ini file?
« on: November 03, 2005, 07:10:48 PM »
I have searched and searched for this information. I did find out that to get around the 2mb php limit set by the servers php.ini file, a custom php.ini file can be made and placed into the directory somewhere in 4images. This sounds perfect. The problem is I don't know where to put the php.ini file that I will make. And what does go into this php.ini file? Should I copy the php.ini file from my main server and just change the upload things and save it in the directory somewhere?

So my main 2 questions are:

1. Where do I put my custom php.ini file to make uploads larger than 2mb work?
2. What exactly do I put into my php.ini file? (the whole php.ini or?)

Thanks everyone,

Frank


Offline webslingers

  • Newbie
  • *
  • Posts: 38
    • View Profile
Re: Where do you put a custom php.ini file?
« Reply #2 on: November 03, 2005, 08:38:30 PM »
Thanks for the link, however it didn't work for me. It gave me "500" error.

I have seen on this board where people have placed a custom php.ini file somewhere and it worked for them. I need to know what goes in that php.ini file and where it needs to be placed to work for 4images.

Thanks Acidgod.

Offline Acidgod

  • Moderator
  • 4images Guru
  • *****
  • Posts: 2.421
  • It's me?
    • View Profile
    • Flash-Webdesign
Re: Where do you put a custom php.ini file?
« Reply #3 on: November 03, 2005, 08:43:37 PM »
want have you put in the .htaccess?

Offline webslingers

  • Newbie
  • *
  • Posts: 38
    • View Profile
Re: Where do you put a custom php.ini file?
« Reply #4 on: November 03, 2005, 08:59:58 PM »
Since I know nothing about .htaccess I put the following line into it. (it was blank)

php_value memory_limit "16M"

 
What format should I use for that file? Is there more that needs to be in there for it to work?

Thank you.

Offline Acidgod

  • Moderator
  • 4images Guru
  • *****
  • Posts: 2.421
  • It's me?
    • View Profile
    • Flash-Webdesign
Re: Where do you put a custom php.ini file?
« Reply #5 on: November 03, 2005, 11:57:02 PM »
try without the ""

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Where do you put a custom php.ini file?
« Reply #6 on: November 04, 2005, 12:37:58 AM »
1) I've never heard about custom php.ini feature.
2) it might be that your host does not allow change php setting through .htaccess.
3) in any case, I think it would be better if you ask this question to your host admin...well, atleast about if pissible change php settings through .htaccess
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline webslingers

  • Newbie
  • *
  • Posts: 38
    • View Profile
Re: Where do you put a custom php.ini file?
« Reply #7 on: November 04, 2005, 01:44:03 AM »
I got the idea from this post in which it seemed to work for them.

http://www.4homepages.de/forum/index.php?topic=1780.0

I will talk more with my host about this. If anyone has any ideas in the meantime, I'd be glad to hear them. If I were to use the .htacess method, what should my .htaccess file look like to accomplish this?

Thanks