Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Can't upload picture...?  (Read 7352 times)

0 Members and 1 Guest are viewing this topic.

MADG0BLIN

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Can't upload picture...?
« on: November 15, 2003, 12:01:01 pm »

When I try to upload a picture into a album I get this error:

Code: [Select]
Impossible to move testing.JPG to albums/userpics/10001/ !

Warning: move_uploaded_file(): SAFE MODE Restriction in effect. The script whose uid is 10138 is not allowed to access /home/httpd/vhosts/vbg-emmeloord.nl/httpdocs/gallery/albums/userpics/10001 owned by uid 48 in /home/httpd/vhosts/vbg-emmeloord.nl/httpdocs/gallery/db_input.php on line 258



Does anyone know howto fix this?
Logged

MaThIbUs

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 130
  • I rock.
    • http://mathibus.com/
Can't upload picture...?
« Reply #1 on: November 15, 2003, 12:15:28 pm »

your server is running in Safe Mode.. i don't know if this is the cause, but you might want to try to turn that mode off.

good luck anyway!
Logged

MADG0BLIN

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Can't upload picture...?
« Reply #2 on: November 15, 2003, 06:04:28 pm »

I have hosted my site somewhere else, and can't find this option. It worked before, that's the strange thing.
Logged

MaThIbUs

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 130
  • I rock.
    • http://mathibus.com/
Can't upload picture...?
« Reply #3 on: November 15, 2003, 07:08:46 pm »

you might want to email the host admins then
Logged

hyperion

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 1317
  • - retired -
Can't upload picture...?
« Reply #4 on: November 15, 2003, 08:46:31 pm »

You need to try activating the silly_safe_mode setting in Coppermine. Your webhost is not likely to turn off safe mode for you, even if they have configured it improperly.
Logged
"Then, Fletch," that bright creature said to him, and the voice was very kind, "let's begin with level flight . . . ."

-Richard Bach, Jonathan Livingston Seagull

(https://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fwww.mozilla.org%2Fproducts%2Ffirefox%2Fbuttons%2Fgetfirefox_small.png&hash=9f6d645801cbc882a52f0ee76cfeda02625fc537)

MaThIbUs

  • Contributor
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 130
  • I rock.
    • http://mathibus.com/
Can't upload picture...?
« Reply #5 on: November 15, 2003, 09:42:24 pm »

Quote from: "hyperion"
Your webhost is not likely to turn off safe mode for you, even if they have configured it improperly.


you can always try though..
Logged

MADG0BLIN

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Can't upload picture...?
« Reply #6 on: November 17, 2003, 03:08:27 pm »

Quote from: "hyperion"
You need to try activating the silly_safe_mode setting in Coppermine. Your webhost is not likely to turn off safe mode for you, even if they have configured it improperly.


And where can I find this setting? It's not under config...  :?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Can't upload picture...?
« Reply #7 on: November 17, 2003, 08:52:02 pm »

refer to the documentation: put it somewhere into /include/config.inc.php (this file probably doesn't exist on your local hard drive, you have to download it first from your webserver using ftp). Make sure you have a backup before you mess with this file.

GauGau
Logged

MADG0BLIN

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Can't upload picture...?
« Reply #8 on: November 20, 2003, 12:33:41 pm »

I know where the file is, but when I try to download the file I get a permission denied. Is the file locked or something?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Can't upload picture...?
« Reply #9 on: November 21, 2003, 09:27:57 am »

maybe you'll have to chmod/chown it first (depending on your server config).

GauGau
Logged

MADG0BLIN

  • Coppermine newbie
  • Offline Offline
  • Posts: 5
Can't upload picture...?
« Reply #10 on: January 05, 2004, 02:23:22 pm »

Quote from: "gaugau"
maybe you'll have to chmod/chown it first (depending on your server config).

GauGau


Nope. Chmodding is not allowed as well.
The file is created when you install the gallery isn't it?
I don't know how to change it. Any more ideas maybe on howto download it? If yes, thank you. :)

More info:

PHP version: 4.3.3


mySQL version: 3.23.58

--------------------------------------------------------------------------------

Image Lib(s)
gd
GD Support  enabled  
GD Version  bundled (2.0.15 compatible)  
FreeType Support  enabled  
FreeType Linkage  with freetype  
GIF Read Support  enabled  
JPG Support  enabled  
PNG Support  enabled  
WBMP Support  enabled  
XBM Support  enabled  
 
Server restrictions (safe mode)?
Directive Local Value Master Value
safe_mode On On
safe_mode_exec_dir no value no value
safe_mode_gid Off Off
safe_mode_include_dir no value no value
safe_mode_exec_dir no value no value
sql.safe_mode Off Off
disable_functions no value no value
file_uploads On On
include_path .:/usr/share/pear .:/usr/share/pear
open_basedir /home/httpd/vhosts/vbg-emmeloord.nl/httpdocs:/tmp no value

email
Directive Local Value Master Value
sendmail_from me@localhost.com me@localhost.com
sendmail_path /usr/sbin/sendmail -t -i /usr/sbin/sendmail -t -i
SMTP localhost localhost
smtp_port 25 25

Size and Time
Directive Local Value Master Value
max_execution_time 30 30
max_input_time 60 60
upload_max_filesize 2M 2M
post_max_size 8M 8M
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Can't upload picture...?
« Reply #11 on: January 05, 2004, 05:21:06 pm »

If turning on SILLY_SAFE_MODE doesn't help and you're not allowed to CHMOD there's little you can do imo except contacting your webhost and ask them to chmod for you.

GauGau
Logged

el_Diablo

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Can't upload picture...?
« Reply #12 on: January 30, 2004, 01:02:05 pm »

Quote from: "gaugau"
refer to the documentation: put it somewhere into /include/config.inc.php (this file probably doesn't exist on your local hard drive, you have to download it first from your webserver using ftp). Make sure you have a backup before you mess with this file.

GauGau


I couldn't find this file anywhere on the remote server - do i have to create this file or where would i find it?

Thanks
Seb
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Can't upload picture...?
« Reply #13 on: January 30, 2004, 01:31:13 pm »

The '/include/config.inc.php ' file is created by coppermine when you install, and is found in the coppermine_directory/include folder.
Logged
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

el_Diablo

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Can't upload picture...?
« Reply #14 on: January 31, 2004, 02:07:53 am »

Thats funny - i dont seem to have it.  And i know i have installed and configured coppermine!!!
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Can't upload picture...?
« Reply #15 on: January 31, 2004, 12:25:19 pm »

if your coppermine install is up and running you surely have the file - coppermine won't run without it. Maybe your webhost has set up your webspace not to display files that have the word "config" in their names (other users have reported this strange kind of "security settings" of some webhosts. Take a look into your webhost's documentation if this is the case, or contact them...
Try browsing this file - enter into the address bar http://yourdomain.com/your_coppermine_folder/include/config.inc.php - if you see a blank page the file exists; if you see a 404 error it doesn't exist (or your webhost has disabled browsing of "config" files as well).

GauGau
Logged

el_Diablo

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Can't upload picture...?
« Reply #16 on: February 01, 2004, 12:14:34 am »

/**************************************

CWD /public_html/modules/coppermine/include/config.inc.php
550 /public_html/modules/coppermine/include/config.inc.php: No such file or directory

/**************************************
on running install.php ->

The installer is locked

 
* * * ERROR * * *


The install/upgrade has already been run successfuly for "coppermine" and is now locked.

/**************************************

--> and no, the webserver has not locked config files because i can see other config files.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Can't upload picture...?
« Reply #17 on: February 01, 2004, 02:07:50 pm »

two options then:
  • create include/config.inc.php manually (refer to the sample that scomes with coppermine)
  • delete include/install.lock and run the installer once again.[/list:u]GauGau
Logged

el_Diablo

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Can't upload picture...?
« Reply #18 on: February 03, 2004, 07:06:53 am »

i have niehter install.lock, and i cant find config.inc.php in the documentation.  If it were possible would somebody please be able to post the sample file?  

Thanks alot
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Can't upload picture...?
« Reply #19 on: February 03, 2004, 09:13:08 am »

This is the sample file that comes with the coppermine distribution:
Code: [Select]
<?php
// Coppermine configuration file

// MySQL configuration
$CONFIG['dbserver'&#93; =                         "localhost";        // Your databaseserver
$CONFIG['dbuser'&#93; =                         "root";        // Your mysql username
$CONFIG['dbpass'&#93; =                         "";                // Your mysql password
$CONFIG['dbname'&#93; =                         "coppermine11";        // Your mysql database name


// MySQL TABLE NAMES PREFIX
$CONFIG['TABLE_PREFIX'&#93; =                "cpg11d_";
?>
The file config.inc.php is created when installing. If you don't have install.lock, there are two possibilities:
  • your include folder isn't writable for the script (CHMOD as indicated in the readme)
  • you have never successfully run install.php[/list:u]Any way, you're strongly advised to read the documentation/readme that comes with coppermine...

    GauGau
Logged
Pages: [1]   Go Up
 

Page created in 0.026 seconds with 18 queries.