Mazie Posted December 30, 2005 Posted December 30, 2005 I hesitate to ask just an elementary question, but when a person doesn't know ... none of the answers help. I'm in the process of creating a Gallery and using Coppermine. I do just fine until I get to step 3. Your help says to chmod the following folders to 777. Like I said, I feel very dumb, but what does that phrase mean? Thanks for helping a truly in the dark new web designer Quote
stevevan Posted December 30, 2005 Posted December 30, 2005 It's short for CHange MODe (I'm sure I'll get corrected if I'm wrong!). Basically it is a way to change file/folder access permissions on Unix systems. You can do this easily from CPanel File Manager or most FTP programs. Quote
Mazie Posted December 30, 2005 Author Posted December 30, 2005 (edited) Thanks, Steve. That helps explain what it is. Can you tell me what "CHMOD the following folders to 777" means. It then lists the folders from the coppermine files. I went to the file manager, but there doesn't seem to be a way to CHMOD from 755 to 777. Needless to say, I'm a little confused. Edited December 30, 2005 by Mazie Quote
TCH-Andy Posted December 30, 2005 Posted December 30, 2005 Basically, as Steve says, it's the permissions set on the file. There are 3 groups, the "owner" of the files, anyone in the same "group", and everyone else in the "world". Each type of permission is given an octal value: Read = 4 Write = 2 Execute = 1 These values are added together for each user category. The permissions are represented by a three-digit sequence with the first digit representing "owner" permission, the second digit representing "group "permission, and the third digit representing "world" permission. For example, if you wanted to make file.htm readable, writable, and executable for the user, readable and writable for the group, and readable for other, it would be; R+W+X , R+W , R or 4+2+1 , 4+2, 4 or 7,6,4 more conventionally written as 764 so setting it to 777 is basically saying that you need to set read, write and execute permissions for all three groups. If you go into the file manager in cpanel, and select the folder in question. On the right hand side you should see a link to set permissions. And you can just tick the boxes. Please note, giving everyone write access (777) is not secure. Quote
jayson Posted December 30, 2005 Posted December 30, 2005 Basically, as Steve says, it's the permissions set on the file. There are 3 groups, the "owner" of the files, anyone in the same "group", and everyone else in the "world". Each type of permission is given an octal value: Read = 4 Write = 2 Execute = 1 These values are added together for each user category. The permissions are represented by a three-digit sequence with the first digit representing "owner" permission, the second digit representing "group "permission, and the third digit representing "world" permission. For example, if you wanted to make file.htm readable, writable, and executable for the user, readable and writable for the group, and readable for other, it would be; R+W+X , R+W , R or 4+2+1 , 4+2, 4 or 7,6,4 more conventionally written as 764 so setting it to 777 is basically saying that you need to set read, write and execute permissions for all three groups. If you go into the file manager in cpanel, and select the folder in question. On the right hand side you should see a link to set permissions. And you can just tick the boxes. Please note, giving everyone write access (777) is not secure. now I will probly get corrected here, you need to give the server 777 access so when you install the program, it can write to the proper directorys, ( I run coppermine myself) then after the program is installed, you want to change all the settings to either 665 or 755 I can never remember, I thing mine is set to 755 I really enjoy coppermine www.jaysarahandy.com/photos/index.php, hope that you got your answer here and will enjoy coppermine Quote
Mazie Posted December 30, 2005 Author Posted December 30, 2005 Thanks so much Andy and Jayson. Okay, I got it now. As for my error message when I tried to install, I see that I didn't upload all of the coppermine files. If I have more questions on Coppermine, I'll contact you. This item is critical to one of the websites that I'm managing (I picked it up from someone else and they had all the photos in Active Server Files, so I don't know how he/she was able to get them on the TCH server). Thanks again for your help, I don't feel so dumb now. Mazie Quote
jayson Posted December 30, 2005 Posted December 30, 2005 just do not forget to change the permission from 777, or you will invite hackers glad you are figuring it out Quote
Mazie Posted December 30, 2005 Author Posted December 30, 2005 Jayson, I sent you and email; however, this seems to be quicker. I did go back to my ftp program and uploaded the rest of the coppermine files. I did chmod to 777 (now that I know what that means ;-}) Thanks for the tip to change back. The next step is to run the installation script. By logging in to "http://******/gallery/install.php" and I get an error that page cannot be found. Before you ask, yes, I put in my domain in place of "yourdoman.com" What am I doing wrong now? Quote
jayson Posted December 30, 2005 Posted December 30, 2005 if i am not mistaken, I think it would be http://********/dir name/admin (or install)/install.php been a long time for me Quote
TCH-Bruce Posted December 30, 2005 Posted December 30, 2005 It would be http://yourTCHdomain.ext/gallery/install.php Quote
Mazie Posted December 30, 2005 Author Posted December 30, 2005 When I use that address to install, I get a 404 error. Quote
TCH-Bruce Posted December 30, 2005 Posted December 30, 2005 This is a quote from the Coppermine site: Run the install script on your server (by going to http://your_server/coppermine_dir/install.php with your web browser) and follow the instructions Replace your_server with your actual domain name. Replace coppermine_dir with the folder you copied the files into. Quote
Mazie Posted December 30, 2005 Author Posted December 30, 2005 This is a quote from the Coppermine site:Replace your_server with your actual domain name. Replace coppermine_dir with the folder you copied the files into. Thanks for the attempts to help. Okay, I don't understand the problem. Yes, I do replace "your_server" with my domain address. I've entered the address above both using "gallery/install.php and a full path to the files and I still get the 404 error. Quote
Mazie Posted December 30, 2005 Author Posted December 30, 2005 I really appreciate all the attempts to help. Unfortunately, I have to leave this problem for a few hours. The instructions say: "open your web browser and run installation script (http://www.******/gallery/install.php" I did replace the "yourdomain" with my domain address. I tried both "gallery/install.php" and usiing the full path to the files. I still get the 404 error and don't understand what I'm doing wrong. Quote
Mazie Posted December 30, 2005 Author Posted December 30, 2005 Sorry, guys, but I have to take a break from this frustration. I'll check back later today. I am doing exactly what you are saying, but get the 404 error. Quote
TCH-Bruce Posted December 30, 2005 Posted December 30, 2005 You need to login to your cPanel and open file manager. Navigate to the public_html folder and then to your gallery folder. Is the install.php file there? Quote
Mazie Posted December 31, 2005 Author Posted December 31, 2005 Thanks for sticking with me on this mess. Your last notice was to see if install.php was in the Gallery file. This was a major leap for me. It's not, it's in a subfolder labeled cpg142. So, when I use the full path, this is the error: " Warning: main(include/sql_parse.php): failed to open stream: No such file or directory in /home/vcmanag/public_html/Gallery/cpg142/install.php on line 36 Warning: main(include/sql_parse.php): failed to open stream: No such file or directory in /home/vcmanag/public_html/Gallery/cpg142/install.php on line 36 Fatal error: main(): Failed opening required 'include/sql_parse.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/vcmanag/public_html/Gallery/cpg142/install.php on line 36 " Do I need to move the coppermine files to Gallery? Quote
jayson Posted December 31, 2005 Posted December 31, 2005 Thanks for sticking with me on this mess. Your last notice was to see if install.php was in the Gallery file. This was a major leap for me. It's not, it's in a subfolder labeled cpg142. So, when I use the full path, this is the error: " Warning: main(include/sql_parse.php): failed to open stream: No such file or directory in /home/vcmanag/public_html/Gallery/cpg142/install.php on line 36 Warning: main(include/sql_parse.php): failed to open stream: No such file or directory in /home/vcmanag/public_html/Gallery/cpg142/install.php on line 36 Fatal error: main(): Failed opening required 'include/sql_parse.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/vcmanag/public_html/Gallery/cpg142/install.php on line 36 " Do I need to move the coppermine files to Gallery? what I would do, (and this is me) delete all the files, use your cpanel to install coppermine, it will save you lots of headaches, you seclect the top dir for the program to go into, and it does the rest, all then you will need to input is the db username db password. (TCH people, am I wrong in in what I just said?) Quote
TCH-Rob Posted December 31, 2005 Posted December 31, 2005 Maybe, I do not have Coppermine in my cPanel. The other thing is that the version that might be there may be older than what is available. It is always best to use the latest version to make sure your scripts are as safe as they can be. Run an older version and your account may become compromised and then you get suspended. Quote
jayson Posted December 31, 2005 Posted December 31, 2005 Maybe, I do not have Coppermine in my cPanel. The other thing is that the version that might be there may be older than what is available. It is always best to use the latest version to make sure your scripts are as safe as they can be. Run an older version and your account may become compromised and then you get suspended. ok, mine says cpanel 10, and I have coppermine in mine, but I still say the best bet is to delete all files and start again, before I got mine running, it was 5 installs/uninstalls, and finally got it running Quote
stevevan Posted December 31, 2005 Posted December 31, 2005 Thanks for sticking with me on this mess. Your last notice was to see if install.php was in the Gallery file. This was a major leap for me. It's not, it's in a subfolder labeled cpg142. So, when I use the full path, this is the error: " Warning: main(include/sql_parse.php): failed to open stream: No such file or directory in /home/vcmanag/public_html/Gallery/cpg142/install.php on line 36 Warning: main(include/sql_parse.php): failed to open stream: No such file or directory in /home/vcmanag/public_html/Gallery/cpg142/install.php on line 36 Fatal error: main(): Failed opening required 'include/sql_parse.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/vcmanag/public_html/Gallery/cpg142/install.php on line 36 " Do I need to move the coppermine files to Gallery? No need to remove and reinstall (at least...not yet! ) Based upon what you've said so far, you would enter the following into your web browser: http://yourTCHdomain.ext/cpg142/install.php Make sure you are inserting, of course, the correct information in place of "yourTCHdomain.ext". For additional information, check out the README.html file that should have came with your download. Stay with it...you'll get it. As a side note, you might want to get a notebook and take notes on what you're doing as you go along. I have done that on all programs and/or scripts I've installed over the years and have a pretty thick binder now. It has helped on numerous occasions! Quote
TCH-Bruce Posted December 31, 2005 Posted December 31, 2005 Here is what I suggest: Remove the Gallery folder and all contents Download the ZIP archive from Coppermine Upload the ZIP file to your public_html folder Open File Manager in cPanel, select the ZIP file in the public_html folder and select to extract it (unzip) on the right hand side Once all files are extracted you will have a folder named cpg143 in your public_html folder, select it and rename it "gallery" Make sure to change the permissions as per the link to the installation instructions above Now run the install.php in your browser http://yourTCHdomain.ext/gallery/install.php HTH Quote
Mazie Posted December 31, 2005 Author Posted December 31, 2005 YEAH ... Bruce, you are a genius. I followed your instructions and SUCCESS. NOTE: When I went back to download Coppermine, I noticed that they had created a new download as of December 27, 2005 and this might have been the real root of my problem. All I can say to Bruce is thank you, thank you, thank you. Happy New Year Quote
TCH-Bruce Posted December 31, 2005 Posted December 31, 2005 You are welcome and a Happy New Year to you! Glad I could help Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.