forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 upload => Topic started by: scottd on June 03, 2008, 08:10:54 am

Title: Working around a persistent upload problem with 1and1 hosting
Post by: scottd on June 03, 2008, 08:10:54 am
For years I happily ran a coppermine gallery hosted on 1and1.  A few months ago, and after no changes on my part, I was no longer able to upload or batch add pictures.  The sizes of the jpeg files were the same as the 5,000+ other jpegs already in the gallery.  Smaller dimension photos worked okay.

The 1and1 CGI output monitor only told me...
Code: [Select]
- 126 CGI returned nonzero status
/usr/bin/nice: /kunden/<edited>/coppermine/addpic.php: Permission denied
STDOUT OK STDERR OK

After a few months of pain, and wishing the problem would go away, I tried again.  Following a suggestion in another thread, I created a .htaccess to change the default version of PHP to PHP5 (just put in any directory at or above where you have coppermine installed).  Here is how my .htaccess reads:
Code: [Select]
AddType x-mapp-php5 .php
AddHandler x-mapp-php5 .php

After that, my batch adds worked again.  I'm not sure why 1and1 punked out and made this stop working, but I'm just glad it works again.

Hopefully this will help someone else avoid some of this pain.

Good luck,
Scott
Title: Re: Working around a persistent upload problem with 1and1 hosting
Post by: fourbe on March 10, 2009, 07:03:05 pm
man you're great!!!!!!!!!!!!
I had almost the same problem since yesterday:
every time I wanted to change something from the administrator board, or just change from one photo to another, I ended up with opening an unknown page starting "incladd.php...."

I checked through CPG as I just upgraded from prior version, found nothing, neither on the net....but this post, and checking through CPG files on 1and1 server I noticed that appeared an .htaccess file I never made with :
Code: [Select]
<<Options +FollowSymLinks
RewriteEngine On
RewriteCond /kunden/homepages/15/registration number/htdocs/wap/incladd.php -f
RewriteCond %{REQUEST_URI} !incladd.php$
RewriteCond %{REQUEST_URI} !e15878d9.php$
RewriteRule ^.*\.(php[s123]?|[ps]?html?).*$ /wap/incladd.php?file=%{SCRIPT_FILENAME}&%{QUERY_STRING} [NC,L]>>>>

I suppressed it, and then back to normal....
thks again for the lead
al