Jump to content

Recommended Posts

I need ot increase my max upload size using the php.ini. I don't have any php.ini files on the hosting so I have been told to make one. But I don't know what code it has to have along with the max_upload code to make the setting work. Can someone send me to some instructions or help me out with this one please?

 

Thank you

Link to comment
https://forums.phpfreaks.com/topic/187816-phpini-increase-upload-size/
Share on other sites

Someone on SMF website.

 

I ran the phpinfo thingo and it says its in "/web/conf/php.ini " but there is no folder called that and I even tried looking for hidden files.

 

I then asked my host provider ( I am using "shared linux" hosting with dedicated IP address ). They said and I quote "If you do not have a php.ini file in your domain's root directory, then you will need to write and upload one to the account. Unfortunately, we do not provide technical support with third-party scripting issues. "

 

So its like it has one but cannot be accessed or changed by me and by making another it will use the original with the new ones updated settings maybe? I don't really know. I just am going on what this guy on SMF forum said and what my host provider is telling me to do.

 

Thanks

I've been reliably informed it's common on shared hosting to allow you to have an individual php.ini. That being the case all you should need to do is create a php.ini file in any text editor, add the settings you want and upload it to your root directory. In your case you will need at least...

 

upload_max_filesize = 64M
post_max_size = 64M

 

Obviously you change the 64M to what ever value you require. I'd imagine there are certain settings that the host won't allow you to change, but I guess you'll come up against those as you try.

Hi. Thanks, this has worked. Well sort of. The gallery I'm running still says the php.ini is limited to 8M but the phpinfo() says its limit is 100M. Does it need time to reset or something? Or does the gallery need updating? Or did this change not really effect anything?

Thanks!

 

 

I just ran into this problem with GDaddy.  I had to edit my php.ini file and add it to my root dir with this in it

 

memory_limit = 50M

post_max_size = 32M

file_uploads = On

upload_max_filesize = 192M

 

At first it didn't seem to be picking it up.  After about an hour it took effect.  If you run phpinfo you should see that the upload max changed.

 

Thanks,

 

Droid

 

I just ran into this problem with GDaddy.  I had to edit my php.ini file and add it to my root dir with this in it

 

memory_limit = 50M

post_max_size = 32M

file_uploads = On

upload_max_filesize = 192M

 

At first it didn't seem to be picking it up.  After about an hour it took effect.  If you run phpinfo you should see that the upload max changed.

 

Thanks,

 

Droid

I've done just that, my phpinfo shows the change, but the app doesn't show it or let me upload anything over 8mb. I've waited over 24 and still nothing. The maker of the gallery app told me if the php.ini is changed the app should recognize it and take effect and I shouldn't need to do anything on the app side.. So I'm not sure what to do, as I can't restart the server and I can't get it to work. But the phpinfo shows it as working...

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.