please help the newbie please help the newbie
 

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

Main Menu

please help the newbie

Started by mowdegrass, August 19, 2004, 04:28:55 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

mowdegrass

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.

skybax

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
(https://coppermine-gallery.com/forum/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

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

skybax

#3
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.


<?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);


}

?>
(https://coppermine-gallery.com/forum/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

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.

skybax

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.)
(https://coppermine-gallery.com/forum/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

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

skybax

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)
(https://coppermine-gallery.com/forum/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

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