Install OK but Config does'nt work Install OK but Config does'nt work
 

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]

Main Menu

Install OK but Config does'nt work

Started by philippe1, May 12, 2005, 03:45:53 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

philippe1

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

Tranz

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

philippe1

Quote from: TranzNDance on May 12, 2005, 03:57:10 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

dst-trainer

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

Joachim Müller


philippe1

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)


dst-trainer

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

dst-trainer

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

Thanks again

dst-trainer

Quotepageheader($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.

François Keller

Hy,

Try to change <form action="$PHP_SELF" method="post">

with
<form action="config.php" method="post">
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

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.