Permission Denied message on index.php Permission Denied message on index.php
 

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]

Main Menu

Permission Denied message on index.php

Started by nikole, January 22, 2006, 01:13:39 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

nikole

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?

Paver

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).

nikole

I wasn't upgrading I have 1.4.2 I think. Should I upgrade? Like I mean is it necessary?

Paver

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.

nikole


nikole

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?

Tranz



Paver

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.

nikole

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?

Tranz


nikole


Paver

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'

nikole

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?

nikole

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

Tranz

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.

nikole

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. 

Paver

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.

nikole

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

Tranz

You don't need to install it if you've already had it installed. Please read the instructions.