Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: [SOLVED] Safe mode issues  (Read 12259 times)

0 Members and 1 Guest are viewing this topic.

klaus1

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
[SOLVED] Safe mode issues
« 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
Logged

klaus1

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
past now infos(php_nuke6.9,uploading pic error)
« Reply #1 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
Logged

klaus1

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
[SOLVED] Safe mode issues
« Reply #2 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
Logged

klaus1

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
using normal coppermine1.1 *not under phpnuke without pobl.
« Reply #3 on: November 11, 2003, 01:11:15 pm »

otherwise I used normal coppermine1.1 *not under phpnuke without any poblem
Logged

DJMaze

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 831
    • Dragonfly CMS
[SOLVED] Safe mode issues
« Reply #4 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:
Logged
There are 2 kinds of users in this world: satisfied and complainers.
Why do we never hear something from the satisfied users?
http://coppermine-gallery.net/forum/index.php?topic=24315.0

DJMaze

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 831
    • Dragonfly CMS
[SOLVED] Safe mode issues
« Reply #5 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.
Logged
There are 2 kinds of users in this world: satisfied and complainers.
Why do we never hear something from the satisfied users?
http://coppermine-gallery.net/forum/index.php?topic=24315.0

klaus1

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
thanks but still does not work
« Reply #6 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?
Logged

DJMaze

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 831
    • Dragonfly CMS
[SOLVED] Safe mode issues
« Reply #7 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:
Code: [Select]
<?php
// Coppermine configuration file
// define silly safe mode
define&#40;'SILLY_SAFE_MODE', 1&#41;;
// MySQL TABLE NAMES PREFIX
$cpg_prefix        "cpg_";
?>
Logged
There are 2 kinds of users in this world: satisfied and complainers.
Why do we never hear something from the satisfied users?
http://coppermine-gallery.net/forum/index.php?topic=24315.0

gtroll

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 618
    • CPG-Nuke
[SOLVED] Safe mode issues
« Reply #8 on: November 12, 2003, 01:17:59 am »

sorry if you had troubles finding this Klaus I was trying to split this topic...

klaus1

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
[SOLVED] Safe mode issues
« Reply #9 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:
Logged

gtroll

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 618
    • CPG-Nuke
[SOLVED] Safe mode issues
« Reply #10 on: November 12, 2003, 01:24:49 am »

Try again, there should be no problem with the server accepting it.

klaus1

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
[SOLVED] Safe mode issues
« Reply #11 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
Logged

DJMaze

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 831
    • Dragonfly CMS
[SOLVED] Safe mode issues
« Reply #12 on: November 12, 2003, 01:39:56 am »

ehm yes correct error, there's a = sign missing.  :oops:
Code: [Select]
<?php
// Coppermine configuration file
// define silly safe mode
define&#40;'SILLY_SAFE_MODE', 1&#41;;
// MySQL TABLE NAMES PREFIX
$cpg_prefix "cpg_";
?>
Logged
There are 2 kinds of users in this world: satisfied and complainers.
Why do we never hear something from the satisfied users?
http://coppermine-gallery.net/forum/index.php?topic=24315.0

gtroll

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 618
    • CPG-Nuke
[SOLVED] Safe mode issues
« Reply #13 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...

klaus1

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
thanks!
« Reply #14 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
Logged

DJMaze

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 831
    • Dragonfly CMS
[SOLVED] Safe mode issues
« Reply #15 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:
Logged
There are 2 kinds of users in this world: satisfied and complainers.
Why do we never hear something from the satisfied users?
http://coppermine-gallery.net/forum/index.php?topic=24315.0
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 19 queries.