spacepoet Posted February 17, 2012 Share Posted February 17, 2012 Hi: I have a site hosted (shared) on 1and1.com hosting, and they seem to have a file upload limit of 2MB. Is there a way to overwrite this? I have been trying a .htaccess and php.ini file, but can't get it to work. The folder with the upload form is called "admin," in the ROOT of the site. Been trying (in both the ROOT and the "admin" folder): php.ini ; Maximum size of POST data that PHP will accept. post_max_size = 8M ; Maximum allowed size for uploaded files. upload_max_filesize = 8M ini_set('memory_limit','128M'); .htaccess (in both the ROOT and the "admin" folder): php_value memory_limit 24M That is all the code in each file - am I missing some code? Can this be done? Thank you. Quote Link to comment https://forums.phpfreaks.com/topic/257221-increase-file-upload-size-on-1and1-hosting/ Share on other sites More sharing options...
scootstah Posted February 17, 2012 Share Posted February 17, 2012 It would probably be more effective to actually contact 1and1, not us. Quote Link to comment https://forums.phpfreaks.com/topic/257221-increase-file-upload-size-on-1and1-hosting/#findComment-1318505 Share on other sites More sharing options...
jargen Posted February 17, 2012 Share Posted February 17, 2012 You would need to reboot apache somehow. Quote Link to comment https://forums.phpfreaks.com/topic/257221-increase-file-upload-size-on-1and1-hosting/#findComment-1318512 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.