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: Change prefix  (Read 6190 times)

0 Members and 1 Guest are viewing this topic.

Fréderic

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 29
Change prefix
« on: October 29, 2004, 04:43:57 pm »

I've installed the CPG, but when I did this, I've chosen to use a prefix 'Gallery_'. But now, I want to rename it. There are a lot of pictures online, so is it OK to change te name in PHPmyadmin and then in config.php?
I've tried to open config.php.inc in the inc folder, but I get:
Quote
227 Entering Passive Mode (....).
    Opening data connection (....)
    RETR config.inc.php
550 config.inc.php: Permission denied
    NOOP
200 NOOP command successful
    PASV
227 Entering Passive Mode (....).
    Opening data connection (....)
    RETR config.inc.php
550 config.inc.php: Permission denied
    SITE CHMOD 777 config.inc.php
550 config.inc.php: Operation not permitted
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: Change prefix
« Reply #1 on: October 29, 2004, 07:40:09 pm »

You will have to edit your include/config.inc.php.  Try copying it to your harddrive, edit it there, and then overwrite the old one.

If you can't do this, then you should leave the table prefix alone.
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

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Change prefix
« Reply #2 on: October 29, 2004, 09:24:36 pm »

why change it in the first place? Nobody will see it, except you. I wouldn't go through all these troubles, I recommend you leave it alone.

Joachim
Logged

Fréderic

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 29
Re: Change prefix
« Reply #3 on: October 30, 2004, 02:57:27 pm »

You will have to edit your include/config.inc.php.  Try copying it to your harddrive, edit it there, and then overwrite the old one.

If you can't do this, then you should leave the table prefix alone.
Hmmm, I get the same error when I try to copie it... I want to change the prefix because there's a new part of my site with the name of the current prefix... Otherwise it will become pretty messy? Like this=

'Gallery' uses prefix 'Pictures'
'Coppermine' uses prefix 'Gallery'
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Change prefix
« Reply #4 on: October 31, 2004, 08:24:28 am »

if you encounter the error you mentioned above, this usually means that the file include/config.inc.php isn't owned by you, but the webserver (they appear to run under different permission level). This usually indicates improper (or poor) webserver setup. Contact your webhost and ask the to CHOWN the file for you - they will know what this means.

Joachim
Logged

Fréderic

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 29
Re: Change prefix
« Reply #5 on: November 02, 2004, 04:17:34 pm »

OK, they've changed the permissions... But before I edit the config file, I need to make sure it's okay to edit the file and to just edit the databasetables names??
Logged

Nibbler

  • Guest
Re: Change prefix
« Reply #6 on: November 02, 2004, 04:31:00 pm »

That is fine. If you get db errors remember to enable debug mode and see what they are. May be some probs if you specified the exact prefix in any mod somewhere,
Logged

Fréderic

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 29
Re: Change prefix
« Reply #7 on: November 02, 2004, 05:03:47 pm »

Ow damn, I've visited my gallery, and since the permissions on config.inc.php have been changed, I get following eroor::
Quote
Warning: main(include/config.inc.php): failed to open stream: No such file or directory in /usr/local/psa/home/vhosts/........./include/init.inc.php on line 201

Warning: main(include/config.inc.php): failed to open stream: No such file or directory in /usr/local/psa/home/vhosts/........./include/init.inc.php on line 201

Fatal error: main(): Failed opening required 'include/config.inc.php' (include_path='.:/usr/local/psa/home/vhosts/..../httpdocs') in /usr/local/psa/home/vhosts/......../include/init.inc.php on line 201

Nothing changed ??? Only the permissions
Logged

Nibbler

  • Guest
Re: Change prefix
« Reply #8 on: November 02, 2004, 05:40:48 pm »

Looks like the file is gone. You can recreate it using the sample file.
Logged
Pages: [1]   Go Up
 

Page created in 0.022 seconds with 20 queries.