coppermine-gallery.com/forum

Support => Older/other versions => cpg1.2 PHPnuke/Postnuke Support => Topic started by: klaus1 on November 11, 2003, 12:45:02 PM

Title: [SOLVED] Safe mode issues
Post by: klaus1 on November 11, 2003, 12:45:02 PM
hi,I have met the same problem!!!
php_nuke V6.9
After installing and stetting up connot upload the pics...
warning: Impossible to move 3jianke.jpg to modules/coppermine/albums/userpics/10007/

 :cry: pls help me
Title: past now infos(php_nuke6.9,uploading pic error)
Post by: klaus1 on November 11, 2003, 12:49:41 PM
I have oppened the debuge mode and have got following info:
pls help me  :oops:

Impossible to move 3jianke.jpg to modules/coppermine/albums/userpics/10007/ !

File: /home/virtual/site140/fst/var/www/html/modules/coppermine/db_input.php - Line: 295



Warning: move_uploaded_file(): SAFE MODE Restriction in effect. The script whose uid is 655 is not allowed to access /home/virtual/site140/fst/var/www/html/modules/coppermine/albums/userpics/10007 owned by uid 48 in /home/virtual/site140/fst/var/www/html/modules/coppermine/db_input.php on line 294


3jiangke.jpg is one of my pics , mormal jpg format*onother pics have same problems while uploading
Title: [SOLVED] Safe mode issues
Post by: klaus1 on November 11, 2003, 12:58:43 PM
Pls forgive me posting such long data... :oops:

Debug info Integretion vars
Selected Nuke Theme: Purity
Nuke Version: V6.9
Module path modules/coppermine
Nukelink modules.php?name=coppermine
Coppermine Theme: default
$_SERVER vars
DOCUMENT_ROOT: /home/virtual/site140/fst/var/www/html
HTTP_ACCEPT_LANGUAGE: zh-cn
HTTP_USER_AGENT: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)
SCRIPT_FILENAME: /home/virtual/site140/fst/var/www/html/modules.php
PHP_SELF: /modules.php
CPG Config
TABLE_PICTURES cpg_pictures
TABLE_ALBUMS cpg_albums
TABLE_COMMENTS cpg_comments
TABLE_CATEGORIES cpg_categories
TABLE_CONFIG cpg_config
TABLE_USERGROUPS cpg_usergroups
TABLE_VOTES cpg_votes
TABLE_USERS nuke_users
allow_private_albums 1
Title: using normal coppermine1.1 *not under phpnuke without pobl.
Post by: klaus1 on November 11, 2003, 01:11:15 PM
otherwise I used normal coppermine1.1 *not under phpnuke without any poblem
Title: [SOLVED] Safe mode issues
Post by: DJMaze on November 11, 2003, 07:02:02 PM
Klaus turn on silly_safe_mode in coppermine.
somewhere in these forums is the solution for this so do a search :wink:
Title: [SOLVED] Safe mode issues
Post by: DJMaze on November 12, 2003, 12:47:53 AM
Klaus:

When you click on "Search this board" and in that page you type: "save mode restriction" then this URL popsup:

http://forum.coppermine-gallery.net/index.php?topic=135&highlight=safe+mode+restriction

read gtroll his message.
Title: thanks but still does not work
Post by: klaus1 on November 12, 2003, 01:03:03 AM
At first thank you so much for the info,at least I konw my situation could be rescued....but I still need help.
what I have found is following msg:
 
If your webhost is running PHP in safe mode but is misconfigured, you may need to do the following :

With a FTP program, change the mode of Coppermine's "include" directory on your server to 0777.

Do the same for the "albums" and "userpics" directories.

Check that at the beginning the the "include/config.inc.php" file, you have a line with : "define('SILLY_SAFE_MODE', 1);"


because I had intalled "cpg1.2.0rc1_phpnuke",therefore I donot find any config.inc.php under include,only one sample file "config.inc.php.sample"
Then what should I do now?
Title: [SOLVED] Safe mode issues
Post by: DJMaze on November 12, 2003, 01:08:59 AM
Aha now we are getting somewhere.

did you change directory "include" to chmod 0777 and then ran modules/coppermine/install.php ?

cos when you did, a file should be created on the server named config.inc.php.
if not then create a file with that name including:<?php
// Coppermine configuration file
// define silly safe mode
define&#40;'SILLY_SAFE_MODE', 1&#41;;
// MySQL TABLE NAMES PREFIX
$cpg_prefix        "cpg_";
?>
Title: [SOLVED] Safe mode issues
Post by: gtroll on November 12, 2003, 01:17:59 AM
sorry if you had troubles finding this Klaus I was trying to split this topic...
Title: [SOLVED] Safe mode issues
Post by: klaus1 on November 12, 2003, 01:21:40 AM
ops,it seems we are all online now...hehe
the world is so small  :D
I have found this file,but after downloading and cannot upload again...
 So any solutions?(probably the server do not accept config file?)  :roll:
Title: [SOLVED] Safe mode issues
Post by: gtroll on November 12, 2003, 01:24:49 AM
Try again, there should be no problem with the server accepting it.
Title: [SOLVED] Safe mode issues
Post by: klaus1 on November 12, 2003, 01:29:44 AM
I have successed with a small trick...named it as aa.jpg and after uploading just renamed it again. 8)
The stupid server really didnot accept this file.

but ... still error info in php_nuke
 :oops:
Parse error: parse error in /home/virtual/site140/fst/var/www/html/modules/coppermine/include/config.inc.php on line 6
Fatal error :
There was an error while processing a database query
Title: [SOLVED] Safe mode issues
Post by: DJMaze on November 12, 2003, 01:39:56 AM
ehm yes correct error, there's a = sign missing.  :oops: <?php
// Coppermine configuration file
// define silly safe mode
define&#40;'SILLY_SAFE_MODE', 1&#41;;
// MySQL TABLE NAMES PREFIX
$cpg_prefix "cpg_";
?>
Title: [SOLVED] Safe mode issues
Post by: gtroll on November 12, 2003, 01:41:01 AM
You must have left off a semicolon in the file please post the code here or debug yourself...
Title: thanks!
Post by: klaus1 on November 12, 2003, 01:54:54 AM
Dear DJMaze and Gtroll:
I am so gald to tell you ,my first pic has been already put in the gallerie.
 :D  :D  :D  :D  :D  :D  :D  :D  :D
without your help I could not image what could happend...
Thanks!!!Thanks!!!  :P
Next time if anything I could do for you guys just tell me!
so late now 1:49,my location is in Berlin and I am from China,studying now at TU Berlin.
Still have a lot of to learn,hehe
Title: [SOLVED] Safe mode issues
Post by: DJMaze on November 12, 2003, 02:05:40 AM
Maybe i'll grab a beer sometime, not far away from the netherlands. 8)

But you have to ship it to gtroll cos he is on hawaï laying on the beach. :cry: