KN7 Posted October 11, 2021 Share Posted October 11, 2021 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! Quote Link to comment https://forums.phpfreaks.com/topic/313939-editing-upload_tmp_dir-on-shared-hosting/ Share on other sites More sharing options...
requinix Posted October 11, 2021 Share Posted October 11, 2021 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. Quote Link to comment https://forums.phpfreaks.com/topic/313939-editing-upload_tmp_dir-on-shared-hosting/#findComment-1590877 Share on other sites More sharing options...
KN7 Posted October 11, 2021 Author Share Posted October 11, 2021 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. Quote Link to comment https://forums.phpfreaks.com/topic/313939-editing-upload_tmp_dir-on-shared-hosting/#findComment-1590887 Share on other sites More sharing options...
requinix Posted October 11, 2021 Share Posted October 11, 2021 An unset upload_tmp_dir is completely okay. What are you trying to install? What error is it giving? Quote Link to comment https://forums.phpfreaks.com/topic/313939-editing-upload_tmp_dir-on-shared-hosting/#findComment-1590908 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.