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: Install OK but Config does'nt work  (Read 5283 times)

0 Members and 1 Guest are viewing this topic.

philippe1

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Install OK but Config does'nt work
« on: May 12, 2005, 03:45:53 pm »

Hi from France,
I just installed Coppermine 1.3.3 on my web site. This first step works fine. All the tables are created. thez chmod having been changed etc  Next, when I run www.my_site/coppermine_dir/config.php in admin mode, I can't get thru. When I validate the page, I get a 404 error the script looking for  www.my_site/config.php. The full path is lost.
What to do.
Thank's for helping.
Philippe
« Last Edit: May 13, 2005, 04:44:31 pm by OmegaGOD »
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: Install OK but Config does'nt work
« Reply #1 on: May 12, 2005, 03:57:10 pm »

Try renaming the file to settings.php and see if you can access it that way.
Logged

philippe1

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: Install OK but Config does'nt work
« Reply #2 on: May 12, 2005, 04:15:37 pm »

Try renaming the file to settings.php and see if you can access it that way.
Thank's for helping. No it does'nt change anything. I just try to change the language for french into the config.php script. When I validate I get a 404 error as I wrote the ful path was lost somewhere.

www.website.com/cpg133/config.php - change language - validate - error 404 while looking for www.website.com/config.php .
The Target address for the 'See more pictures' link in e-cards  in line 4 is well writen as www.website.com/cpg133/

Thank's for your support
Logged

dst-trainer

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Re: Install OK but Config does'nt work
« Reply #3 on: May 13, 2005, 01:37:05 am »

Hi, the same problem i have, this it's my post http://forum.coppermine-gallery.net/index.php?topic=17832.0

Install ok, but problems appear when try log in, and, save changes on config.php, or profile.php.... even send me to www.dstraining.com/config.php and not to www.dstraining.com/coppermine/config.php. Perhaps there was a problem with host client, because, the same version 1.3.3 runs ok on other host that i have.

I'm Lost as you.

Pd: rename config.php to settings.php not solve the problem

Pd2: sorry my english, i'm spanish and it's poor.

Thanks
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Install OK but Config does'nt work
« Reply #4 on: May 13, 2005, 10:41:16 am »

don't cross-post!
Logged

philippe1

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: Install OK but Config does'nt work
« Reply #5 on: May 13, 2005, 11:48:03 am »

Thank's to everybody for helping. That helped me to find the solution.
This is the way I solved the problem.
1 remove Coppermine from the site (delete all the tables and erase all the files)
2 unpack Coppermine to my disk
3 modify all the php files that use the form post method or the header method by explicitly naming the destination file
4 Upload Coppermine (change chmod)
5 If you fint any 404 error while using Coppermine modify the file as step 3

I find this script great. If you want you can have a look at http://www.optileman.com/cpg133/index.php

Thanks again

philippe
problem solved (I don't know how to put a sloved flag onto my post)

Logged

dst-trainer

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Re: Install OK but Config does'nt work
« Reply #6 on: May 14, 2005, 02:27:46 am »

Philippe1 I have the same problem, understand what you want to say, but it do not know how to do it. You might order me to my mail the config.php or index.php for example modified file and without please. this its the direcction of my web. www.dstraining.com/coppermine/

Many thanks
Logged

dst-trainer

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Re: Install OK but Config does'nt work
« Reply #7 on: May 14, 2005, 02:38:19 am »

Sorry my mail it's     juanmacarballo@yahoo.es  or juanmacarballo@hotmail.com

Thanks again
Logged

dst-trainer

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Re: Install OK but Config does'nt work
« Reply #8 on: May 14, 2005, 02:47:29 am »

Quote
pageheader($lang_config_php['title']);

$signature = 'Coppermine Photo Gallery ' . COPPERMINE_VERSION;

starttable('100%', "{$lang_config_php['title']} - $signature", 2);
echo <<<EOT
        <form action="$PHP_SELF" method="post">

EOT;
create_form($lang_config_data);
echo <<<EOT
        <tr>
            <td colspan="2" align="center" class="tablef">
                        <input type="submit" class="button" name="update_config" value="{$lang_config_php['save_cfg']}">
                        &nbsp;&nbsp;
                        <input type="submit" class="button" name="restore_config" value="{$lang_config_php['restore_cfg']}">
                </td>
        </form>
        </tr>

EOT;
endtable();
pagefooter();
ob_end_flush();

?>

This one is the final part of the file config.php. If my page is www.dstraining.com/coppermine/index.php, that I have to change in order that it works according to what you have said?. Thank you.
Logged

François Keller

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: fr
  • Offline Offline
  • Gender: Male
  • Posts: 9094
  • aka Frantz
    • Ma galerie
Re: Install OK but Config does'nt work
« Reply #9 on: May 14, 2005, 08:55:01 am »

Hy,

Try to change
Code: [Select]
<form action="$PHP_SELF" method="post">
with
Code: [Select]
<form action="config.php" method="post">
Logged
Avez vous lu la DOC ? la FAQ ? et cherché sur le forum avant de poster ?
Did you read the DOC ? the FAQ ? and search the board before posting ?
Mon Blog

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Install OK but Config does'nt work
« Reply #10 on: May 14, 2005, 05:30:13 pm »

you're doctoring in the wrong spot. Make sure that the server var is populated correctly, instead of fiddling with a lot of code, as you will run into those issues everytime you upgrade. Argue with your webhost, find a new one, do whatever it takes to populate the server var.
Logged
Pages: [1]   Go Up
 

Page created in 0.134 seconds with 20 queries.