Can't upload picture...? Can't upload picture...?
 

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

Main Menu

Can't upload picture...?

Started by MADG0BLIN, November 15, 2003, 12:01:01 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

MADG0BLIN

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

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?

MaThIbUs

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!

MADG0BLIN

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

MaThIbUs

you might want to email the host admins then

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.
"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://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.mozilla.org%2Fproducts%2Ffirefox%2Fbuttons%2Fgetfirefox_small.png&hash=9f6d645801cbc882a52f0ee76cfeda02625fc537)

MaThIbUs

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..

MADG0BLIN

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...  :?

Joachim Müller

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

MADG0BLIN

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?

Joachim Müller

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

GauGau

MADG0BLIN

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

Joachim Müller

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

el_Diablo

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

Casper

The '/include/config.inc.php ' file is created by coppermine when you install, and is found in the coppermine_directory/include folder.
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

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

Joachim Müller

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

el_Diablo

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

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.

Joachim Müller

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

el_Diablo

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

Joachim Müller

This is the sample file that comes with the coppermine distribution:<?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