coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 install => Topic started by: nikole on January 22, 2006, 01:13:39 AM

Title: Permission Denied message on index.php
Post by: nikole on January 22, 2006, 01:13:39 AM
I'm completely retarded when it comes to Coppermine so sorry if this is a really obvious question. I keep getting this error message when going to the install.php page.

Warning: main(include/init.inc.php): failed to open stream: Permission denied in /home/harsh/public_html/adenisof/gallery/coppermine/index.php on line 30

I thought maybe it was telling me to do the chmod thing to the include folder but I already did that so anyone know what it could be?
Title: Re: Permission Denied message on index.php
Post by: Paver on January 22, 2006, 02:27:38 AM
Someone else may have a better answer for that specific error message, but my line 30 of index.php is a comment line so my question is: are you installing Coppermine 1.4.3 from the Downloads link above?  If you are upgrading from version 1.3, please follow the upgrade instructions in the documentation (also linked above).
Title: Re: Permission Denied message on index.php
Post by: nikole on January 22, 2006, 02:32:27 AM
I wasn't upgrading I have 1.4.2 I think. Should I upgrade? Like I mean is it necessary?
Title: Re: Permission Denied message on index.php
Post by: Paver on January 22, 2006, 02:38:32 AM
It's a good place to start.  Did you get 1.4.2 from here?  I see from your prior posts in September that you were running 1.3.  If you are upgrading 1.3 now, you should follow the upgrade instructions, which includes not using the install.php script.
Title: Re: Permission Denied message on index.php
Post by: nikole on January 22, 2006, 02:41:40 AM
Ok I'll try that then. Thank you!
Title: Re: Permission Denied message on index.php
Post by: nikole on January 22, 2006, 03:37:24 AM
Okay I'm back after upgrading and I'm getting pretty much the exact same error message on the update.php page with a few words changed.

Warning: main(include/sql_parse.php): failed to open stream: Permission denied in /home/harsh/public_html/adenisof/gallery/coppermine/update.php on line 24

Anyone? Anyone?
Title: Re: Permission Denied message on index.php
Post by: Tranz on January 22, 2006, 03:44:27 AM
Please post a link to your gallery.
Title: Re: Permission Denied message on index.php
Post by: nikole on January 22, 2006, 03:49:31 AM
http://www.harsh-light.org/adenisof/gallery/coppermine/
Title: Re: Permission Denied message on index.php
Post by: Paver on January 22, 2006, 04:02:47 AM
Double-check the permissions on your include folder - it should be 755.  Also check that all the files in the include folder are 644 (or 755).  It looks to me that one of those permissions is incorrect.
Title: Re: Permission Denied message on index.php
Post by: nikole on January 22, 2006, 04:08:53 AM
I don't understand what 755 means. All I see when I do the chmod thing is Read, Write, and Execute. Does 755 mean to have Read & Write checked for the include folder? Because if it is I've done that and it still won't work. Do I need Execute checked too?
Title: Re: Permission Denied message on index.php
Post by: Tranz on January 22, 2006, 04:13:54 AM
yes
Title: Re: Permission Denied message on index.php
Post by: nikole on January 22, 2006, 04:16:54 AM
Okay thank you! It's working now.
Title: Re: Permission Denied message on index.php
Post by: Paver on January 22, 2006, 04:19:49 AM
For reference:

4 = read
2 = write
1 = execute

Add together what you want to get the permission.  Folders must have read & execute permission which means 4 + 1 = 5.  Files must have read permission, so that's 4.

The three numbers refer to:
1st number: user - that's you
2nd number: group - usually not used except for shared networks
3rd number: all - that's for everyone else accessing your files through the web server.

So 755 is:
7: read, write, execute for user (you)
5: read & execute for group
5: read & execute for all

If you only see read, write, and execute, do the following:
all folders: read & execute for 'all', read, write & execute for 'user'
all files: read for 'all', read & write for 'user'
Title: Re: Permission Denied message on index.php
Post by: nikole on January 22, 2006, 04:28:44 AM
Oh thanks for that whole thing. I probably never would've understood what it was.

And also sorry to keep annoying you but after I've set up the MySQL Database on the index page and I'm going to log in an error comes up on the login page.

Fatal error: Call to a member function on a non-object in /home/harsh/public_html/adenisof/gallery/coppermine/login.php on line 37

Do you know what's wrong now?
Title: Re: Permission Denied message on index.php
Post by: nikole on January 22, 2006, 04:32:42 AM
Oh how annoying. It's giving me new errors every time I refresh. So frustrating.
Title: Re: Permission Denied message on index.php
Post by: Tranz on January 22, 2006, 04:39:26 AM
What exactly are you trying to do? Are you trying to install from scratch? It might help us help you if you provide more background information.
Title: Re: Permission Denied message on index.php
Post by: nikole on January 22, 2006, 04:43:21 AM
Yes I'm trying to install for the first time. I had an older version on my computer already so I uploaded all those files onto my domain but that person above told me I should upgrade. So I downloaded the new version and uploaded all those onto my domain and overwrited the old files. I haven't installed anything yet because every time i go to the install.php page there are errors. Every time. and before it worked for a second but when it directed me to the login page there was an error on there. 
Title: Re: Permission Denied message on index.php
Post by: Paver on January 22, 2006, 04:49:54 AM
If you are upgrading, you need to follow the upgrade instructions in the documentation, as I said before.  The 4th step in those instructions says to delete install.php, so I don't know why you are trying to run it.  Please read carefully and follow those instructions.
Title: Re: Permission Denied message on index.php
Post by: nikole on January 22, 2006, 04:54:31 AM
I deleted install.php so now how do I install it?
Title: Re: Permission Denied message on index.php
Post by: Tranz on January 22, 2006, 05:06:07 AM
You don't need to install it if you've already had it installed. Please read the instructions.
Title: Re: Permission Denied message on index.php
Post by: nikole on January 22, 2006, 05:08:51 AM
But I haven't had it installed because I don't know how to install it. And I did read the directions.
Title: Re: Permission Denied message on index.php
Post by: Tranz on January 22, 2006, 05:22:08 AM
It's because of the following that I thought you had it installed already:
Quote from: nikole on January 22, 2006, 02:32:27 AM
I wasn't upgrading I have 1.4.2 I think. Should I upgrade? Like I mean is it necessary?

Now I kinda get what's going on. You seemed to have originally tried to install in the gallery folder. However, not all the folders and files got into that folder. You then seemed to try again in multiple folders in the gallery folder.

Let's start over. Delete the contents of the gallery folder. As it is, the structure is redundant. Instead of deleting, you can back up the contents and move them elsewhere. But let's have an empty gallery folder.

Extract the installation package and you should see folders and files required for coppermine to run. Upload those files and folders into the gallery folder. Read the installation instructions for the rest of the process.
Title: Re: Permission Denied message on index.php
Post by: nikole on January 22, 2006, 06:22:56 PM
I've got it working now! Thank you for all your help and patience.  :D