forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Installation & Setup => Topic started by: philippe1 on May 12, 2005, 03:45:53 pm

Title: Install OK but Config does'nt work
Post by: philippe1 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
Title: Re: Install OK but Config does'nt work
Post by: Tranz on May 12, 2005, 03:57:10 pm
Try renaming the file to settings.php and see if you can access it that way.
Title: Re: Install OK but Config does'nt work
Post by: philippe1 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
Title: Re: Install OK but Config does'nt work
Post by: dst-trainer 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
Title: Re: Install OK but Config does'nt work
Post by: Joachim Müller on May 13, 2005, 10:41:16 am
don't cross-post!
Title: Re: Install OK but Config does'nt work
Post by: philippe1 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)

Title: Re: Install OK but Config does'nt work
Post by: dst-trainer 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
Title: Re: Install OK but Config does'nt work
Post by: dst-trainer on May 14, 2005, 02:38:19 am
Sorry my mail it's     juanmacarballo@yahoo.es  or juanmacarballo@hotmail.com

Thanks again
Title: Re: Install OK but Config does'nt work
Post by: dst-trainer 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.
Title: Re: Install OK but Config does'nt work
Post by: François Keller 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">
Title: Re: Install OK but Config does'nt work
Post by: Joachim Müller 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.
Title: Re: Install OK but Config does'nt work
Post by: Nibbler on May 14, 2005, 05:32:17 pm
http://forum.coppermine-gallery.net/index.php?topic=16534.msg83112#msg83112