Jump to content

Editing upload_tmp_dir on shared hosting


KN7

Recommended Posts

My host by default has upload_tmp_dir as => no value => no value, and as you can expect php.ini is read only on shared hosting, but i need to change it.

So i have read a bit on this and i have seen people saying about doing it in .htaccess or creating a separate php.ini in your website's root and somehow making it recursive and telling php to use it for your site from .htaccess, but i am really new to all this so i dont even know how to begin doing that or even if it makes any sense in practice.

I even talked to my host about this, and they didn't have any idea and said they never heard of anything like this.

So any help for a man that just lost 3 days trying to solve this? Thanks to anybody that might at least try to help!

Link to comment
Share on other sites

3 hours ago, requinix said:

Why do you need to change the upload directory? upload_tmp_dir being "no value" only means that it wasn't configured in the php.ini and so PHP will use the system's default temporary directory for storing uploads.

Because whatever the default is,its not recognized, or unusable by what i install.

Link to comment
Share on other sites

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.