forum.coppermine-gallery.net
Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: MADG0BLIN on November 15, 2003, 12:01:01 pm
-
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?
-
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!
-
I have hosted my site somewhere else, and can't find this option. It worked before, that's the strange thing.
-
you might want to email the host admins then
-
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.
-
Your webhost is not likely to turn off safe mode for you, even if they have configured it improperly.
you can always try though..
-
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... :?
-
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 know where the file is, but when I try to download the file I get a permission denied. Is the file locked or something?
-
maybe you'll have to chmod/chown it first (depending on your server config).
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
-
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
-
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
-
The '/include/config.inc.php ' file is created by coppermine when you install, and is found in the coppermine_directory/include folder.
-
Thats funny - i dont seem to have it. And i know i have installed and configured coppermine!!!
-
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
-
/**************************************
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.
-
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
-
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
-
This is the sample file that comes with the coppermine distribution:
<?php
// Coppermine configuration file
// MySQL configuration
$CONFIG['dbserver'] = "localhost"; // Your databaseserver
$CONFIG['dbuser'] = "root"; // Your mysql username
$CONFIG['dbpass'] = ""; // Your mysql password
$CONFIG['dbname'] = "coppermine11"; // Your mysql database name
// MySQL TABLE NAMES PREFIX
$CONFIG['TABLE_PREFIX'] = "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 (http://coppermine.sourceforge.net/demo/docs/index.htm#how)/readme that comes with coppermine...
GauGau