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: please help the newbie  (Read 3956 times)

0 Members and 1 Guest are viewing this topic.

mowdegrass

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
please help the newbie
« on: August 19, 2004, 04:28:55 pm »

Ok, I'm hosting with godaddy, and I've tried installing four different times now.  Godaddy offers this as a separate single installation but I want two instances of it.  I can't even get the first one to work.

I change the permissions but sometimes they'll stay and sometimes they don't.  I've called them MULTIPLE times with no help so far.  I've found that the include and album folders have to be read write, but are there anyothers that need to be?  The install seems to go fine, but as soon as I try to config and save changes, it tries to go to cgi-bin/php which doesn't exist.  So my guess is the install is going wrong because of permissions.  Or will the install report an error message if the permissions are incorrect?

Thanks for your help.
Logged

skybax

  • VIP
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 180
    • SKYBAX Communications
Re: please help the newbie
« Reply #1 on: August 19, 2004, 05:53:58 pm »

Can you give us a link to errors? also (i'm not familiar with godaddy hosting) do they require you to place your php scripts in the cgi-bin? I think if you are having issues getting the read/write permissions to stick that might be an issue with your hosting company. Normally during the install if you don't have have the proper write permissions it will send the error back as to what folder need to be modified.

-T
Logged
(https://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fwww.skybax.com%2FhotImage%2Fpost_footer.gif&hash=338b65c57a59f0b06311094e697c87794e43d945)
Don't contact me for support over PM or email unless I requested you to do so. Instead: post on the proper board.

mowdegrass

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: please help the newbie
« Reply #2 on: August 19, 2004, 06:01:07 pm »

if the php scripts need to be in the cgi folder, which files should i put in there?

The error is just a blanket 404 file not found after submitting changes it redirects to cgi/php and i'm assuming it's looking for an index.htm file within the php folder within cgi but there isn't a php folder inside of cgi.  should there be?

Thanx
Logged

skybax

  • VIP
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 180
    • SKYBAX Communications
Re: please help the newbie
« Reply #3 on: August 19, 2004, 06:29:44 pm »

actually you don't want the php files to be in the cgi-bin! that used to be an old way to run php, and is not in use anymore. create a file and put the following code in it. Then create a folder on your webserver called test, change the permissions to this folder to 0777. Upload this file there and run it. Then follow the onscreen prompts. This will tell you if your server is configured properly to run coppermine.

Code: [Select]
<?php
$folder 
"testfolder";
$file $folder "/""index.php";

if (
file_exists($file)) {
echo 
"You have successfully written phpinfo to $file"
echo 
"<br /><br /><a href='$file' target=blank>Test PHP Info</a>";
} else {
   echo 
"creating $file failed. reload this page to try again. make sure permissions are set correctly.";
mkdir($folder0777);
chmod($folder0777);
$data '<?php '
          
'phpinfo();'
          
' ?>
';
 
   
if (!$file_handle = fopen($file,"w")) { echo "Cannot open file"; }  
if (!fwrite($file_handle, $data)) { echo "Cannot write to file"; }  
fclose($file_handle);
chmod($file, 0777);


}

?>
« Last Edit: August 20, 2004, 01:12:12 am by skybax »
Logged
(https://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fwww.skybax.com%2FhotImage%2Fpost_footer.gif&hash=338b65c57a59f0b06311094e697c87794e43d945)
Don't contact me for support over PM or email unless I requested you to do so. Instead: post on the proper board.

mowdegrass

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: please help the newbie
« Reply #4 on: August 19, 2004, 06:54:14 pm »

got this when I did what you suggested:

Warning: mkdir(testfolder): File exists in /home/content/b/e/t/betaadmin/html/testfolder/run.php on line 3
creating testfolder/index.php failed. reload this page to try again. make sure permissions are set correctly.
Logged

skybax

  • VIP
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 180
    • SKYBAX Communications
Re: please help the newbie
« Reply #5 on: August 19, 2004, 08:54:14 pm »

I changed the code around a little bit on that I gave you - try that and reload the file - if it's still giving you issues then it means that your host is not giving you proper read/write access to modify folders. (before doing all this try browsing to the folder you created and see if the former code created a new folder... if it did, then it did what you wanted and check out the index file inside that folder.)
Logged
(https://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fwww.skybax.com%2FhotImage%2Fpost_footer.gif&hash=338b65c57a59f0b06311094e697c87794e43d945)
Don't contact me for support over PM or email unless I requested you to do so. Instead: post on the proper board.

mowdegrass

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: please help the newbie
« Reply #6 on: August 19, 2004, 09:22:32 pm »

it did create the new folder but the index file reported this error:

Parse error: parse error, unexpected '\"' in /home/content/b/e/t/betaadmin/html/testfolder/testfolder/index.php on line 1
Logged

skybax

  • VIP
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 180
    • SKYBAX Communications
[solved]: please help the newbie
« Reply #7 on: August 20, 2004, 01:54:43 am »

Ok hopped on messenger with this cool chap. And we found out that godaddy compiles php for CGI - so all the script point to CGI-BIN - mowdegrass will take a look at the only other post available for fixing cgi-bin issues. Future godaddy hopefulls - it's not easy to work cpg on their hosting plans. nough said

-T  8)
Logged
(https://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fwww.skybax.com%2FhotImage%2Fpost_footer.gif&hash=338b65c57a59f0b06311094e697c87794e43d945)
Don't contact me for support over PM or email unless I requested you to do so. Instead: post on the proper board.

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: please help the newbie
« Reply #8 on: August 20, 2004, 07:28:22 am »

problems with godaddy hosting has been reported in the past, I suggest to mowdegrass to keep requesting support from them, so they realize that this php setup is way outdated and should be fixed. As you will experience similar issues with other pre-made scripts, I suggest moving to another host if godaddy don't react.

GauGau
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 17 queries.