Hi,
I'm new in Drupal.
I have installed Drupal 4.7 on a test server (Mac OSX with MAMP) : everything went fine
I have installed Drupal on a live server (OVH.com GP60) and got some problems. NB : The upload size is limited to 2Mb (16 on my test server)

On the test server, every user (role) may attach files (image) to a node (page, story or slideshow from the slideshow module). On the live server, only the administrator may do this.
Access right are the same

Settings of the Upload module are also different:
- on the test server, I may activate the each role and customize settings for each of them
- on the live server, I don't see any role to select under the upload settings...

Did I missed something? Is it due to the hosting limitations?

Thanks
Patch

Comments

cog.rusty’s picture

The 2M upload limit is due to the hosting setup. You can try adding a php_value upload_max_filesize 16M line to your .htaccess file:

Alternatively you can try to add an ini_set('upload_max_filesize', 16M); line to your site's settings.php file, but I have heard that this method does not work in this case.

Your other problems are not due to your host. It must be something with your settings (assuming your have enabled the same modules, same versions). Double-check you /admin/access page and your /admin/settings/content-types pages for each content type.

patch-works’s picture

it seems not possible to overwrite the upload limit....

I did a double check (twice): I don't see any difference, it's really strange.. and annoying.

thanks for the suggestions

cog.rusty’s picture

Actually there should be two lines in .htaccess. This is what works for me:

php_value upload_max_filesize 16M
php_value post_max_size 16M

Then check the /admin/settings/upload page, where it says "Your PHP settings limit the maximum file size per upload to xx MB." to see if that has an effect.

patch-works’s picture

Unfortunatelly, it doesn't work

I put the htaccess on the www root: the website is not reachable

I add the following tags and got the site back, but without difference in the settings

< IfModule mod_php4.c >
php_value upload_max_filesize 16M
php_value post_max_size 16M
</IfModule>

I put then a copy of the htaccess in the drupal root; not working too.... I guess it's not possible to solve it

thanks for help

Patch