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] 2   Go Down

Author Topic: Permission Denied message on index.php  (Read 10989 times)

0 Members and 1 Guest are viewing this topic.

nikole

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 39
Permission Denied message on index.php
« 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?
« Last Edit: January 22, 2006, 06:32:57 pm by TranzNDance »
Logged

Paver

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1609
  • Paul V.
Re: Permission Denied message on index.php
« Reply #1 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).
Logged

nikole

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 39
Re: Permission Denied message on index.php
« Reply #2 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?
Logged

Paver

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1609
  • Paul V.
Re: Permission Denied message on index.php
« Reply #3 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.
Logged

nikole

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 39
Re: Permission Denied message on index.php
« Reply #4 on: January 22, 2006, 02:41:40 am »

Ok I'll try that then. Thank you!
Logged

nikole

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 39
Re: Permission Denied message on index.php
« Reply #5 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?
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: Permission Denied message on index.php
« Reply #6 on: January 22, 2006, 03:44:27 am »

Please post a link to your gallery.
Logged

nikole

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 39
Logged

Paver

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1609
  • Paul V.
Re: Permission Denied message on index.php
« Reply #8 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.
Logged

nikole

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 39
Re: Permission Denied message on index.php
« Reply #9 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?
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: Permission Denied message on index.php
« Reply #10 on: January 22, 2006, 04:13:54 am »

yes
Logged

nikole

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 39
Re: Permission Denied message on index.php
« Reply #11 on: January 22, 2006, 04:16:54 am »

Okay thank you! It's working now.
Logged

Paver

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1609
  • Paul V.
Re: Permission Denied message on index.php
« Reply #12 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'
Logged

nikole

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 39
Re: Permission Denied message on index.php
« Reply #13 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?
Logged

nikole

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 39
Re: Permission Denied message on index.php
« Reply #14 on: January 22, 2006, 04:32:42 am »

Oh how annoying. It's giving me new errors every time I refresh. So frustrating.
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: Permission Denied message on index.php
« Reply #15 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.
Logged

nikole

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 39
Re: Permission Denied message on index.php
« Reply #16 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. 
Logged

Paver

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1609
  • Paul V.
Re: Permission Denied message on index.php
« Reply #17 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.
Logged

nikole

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 39
Re: Permission Denied message on index.php
« Reply #18 on: January 22, 2006, 04:54:31 am »

I deleted install.php so now how do I install it?
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: Permission Denied message on index.php
« Reply #19 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.
Logged
Pages: [1] 2   Go Up
 

Page created in 0.023 seconds with 19 queries.