I have a client who is having trouble uploading files larger than 2MB. I have increased the php_memory value in the htaccess file and he is still having problems. Yet when I upload files to teh server directly via FTP (as high as 60MB), no problems.
a) what else should i be troubleshooting so he can upload using drupal successfully
b) He is concerned about members having trouble downloading and wants to know if there is any way we can simulate high traffic and multiple downloads at once to ensure once the site is open to members there will not be any problems
I do not see a reference to that in the settings for htaccess or the settings.php. I know it is not in the htaccess because I had to add the php_memory size in the htaccess, because it wasn't present.
OK, so thank you but here is my question. When I added the php_memory, into
the access file, I added it pretty much anywere because I was told there was
no rule on where it should be, and then inserted a number value where the
question mark was.
Where does the question mark go in this line and could I replace it with a
number, say 10? Also, is there a rule in the htaccess file on where I
should put it.
I'm not sure if .htaccess honors those or not. If it doesn't work for you there check out the ini_set commands in your settings.php file and try it there, modifying them into ini_set compatible format.
Yes, if you have access to it. I assumed he was using a shared server as he was modifying memory limit with the htaccess file and not the php.ini, though I do believe I mentioned "If you don't have access to the php.ini file" in my posts.
Hudson Global Resources has a new opening for a talented Drupal Developer! If you can create, cultivate, and edit Drupal modules and integrate them with an existing Drupal CMS, we have a great opportunity for you. The ideal candidate will be working for a stable, growing company using their object oriented Drupal, PHP, and MySQL experience.You will be working with a team, and your input will be highly valued. You will have the opportunity to create brand new functionality within the Drupal CMS and contribute this code to the community. If you are a self starter with a combined 5 years of experience with Drupal, PHP, and MySQL, apply today!!!
Comments
Uploading files
I have a client who is having trouble uploading files larger than 2MB. I have increased the php_memory value in the htaccess file and he is still having problems. Yet when I upload files to teh server directly via FTP (as high as 60MB), no problems.
a) what else should i be troubleshooting so he can upload using drupal successfully
b) He is concerned about members having trouble downloading and wants to know if there is any way we can simulate high traffic and multiple downloads at once to ensure once the site is open to members there will not be any problems
Not it
Problem isn't the php_mem, it is the post_max_size/upload_max_filesize in the hosts php.ini
See if you can set it in the htaccess or settings.php file
Steve
HotDrupal.com - Drupal Hosting
Asheville, NC
Settings
I do not see a reference to that in the settings for htaccess or the settings.php. I know it is not in the htaccess because I had to add the php_memory size in the htaccess, because it wasn't present.
Right, so add it. Assuming
Right, so add it. Assuming your host honors .htaccess PHP flags. You can tell by running phpinfo() from your Drupal install directory.
The problem is your hosting company has it set to 2M, which is the PHP default. If it's a host you are running, just edit the php.ini file
Steve
Drupal Hosting - Asheville, NC
Thanks, but...
OK, so thank you but here is my question. When I added the php_memory, into
the access file, I added it pretty much anywere because I was told there was
no rule on where it should be, and then inserted a number value where the
question mark was.
Where does the question mark go in this line and could I replace it with a
number, say 10? Also, is there a rule in the htaccess file on where I
should put it.
Thanks a lot for your help!
php_value post_max_size
php_value post_max_size 32MB
php_value upload_max_filesize 32MB
php_value max_input_time 1200
I'm not sure if .htaccess honors those or not. If it doesn't work for you there check out the ini_set commands in your settings.php file and try it there, modifying them into ini_set compatible format.
Steve
HotDrupal.com
Drupal Hosting, Asheville NC
the best way is to modify
the best way is to modify the php.ini file.
generally found in etc folder on linux apache servers.
Best Way
Yes, if you have access to it. I assumed he was using a shared server as he was modifying memory limit with the htaccess file and not the php.ini, though I do believe I mentioned "If you don't have access to the php.ini file" in my posts.
Steve
hotdrupal.com
Drupal Web Development Opportunity
Hudson Global Resources has a new opening for a talented Drupal Developer! If you can create, cultivate, and edit Drupal modules and integrate them with an existing Drupal CMS, we have a great opportunity for you. The ideal candidate will be working for a stable, growing company using their object oriented Drupal, PHP, and MySQL experience.You will be working with a team, and your input will be highly valued. You will have the opportunity to create brand new functionality within the Drupal CMS and contribute this code to the community. If you are a self starter with a combined 5 years of experience with Drupal, PHP, and MySQL, apply today!!!
Derrick Henderson
Hudson Global Resources
919-325-7744
derrick.henderson@hudson.com