getting error when try to run the install.php script getting error when try to run the install.php script
 

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

getting error when try to run the install.php script

Started by shrek, March 24, 2010, 08:29:26 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

shrek

I've donwloaded the lated coppermine version 153
Moved the extracted folder to my apache webserver
Created folder albums/uploads
Changed permissions to 777 on include albums albums/edit albums/uploads

But when running the install script it stops with errors:
QuoteWarning: Unknown: failed to open stream: Permission denied in Unknown on line 0
Fatal error: Unknown: Failed opening required '/var/www/cpg153/index.php' (include_path='.:/usr/share/php:/usr/share/pear') in Unknown on line 0

My webserver is running on debian Linux (lenny) with all upgrades/updates
I just wanted to install the gallery on my "home web server" before I use my real www server

Any idea what goes wrong?

Regards
shrek

Αndré

Please make sure if all files are present and complete on your server. Seems that some file is corrupted.

onthepike

In addition, this may (or may not) be a Coppermine (or incomplete package) problem at all.

Please see setting file permissions in Apache on Debian and Apache Web Server - PHP Pear problem to see if these suggestions solve your issue.

I just searched for the string and these two seem to most resemble your issue.

Joachim Müller

The key is in the error message you get:
QuotePermission denied
. In addition to the links that onthepike has provided, there is a permissions section as well in the docs: http://documentation.coppermine-gallery.net/en/install_permissions.htm

Quote from: shrek on March 24, 2010, 08:29:26 AMMy webserver is running on debian Linux (lenny) with all upgrades/updates
I just wanted to install the gallery on my "home web server" before I use my real www server
Why? Set it up on your "real" webserver, just don't tell anybody (except us of course), so you'll have all the time you need to test it thoroughly. Your issues are related to the fact that you're attempting to perform self-hosting as far as I can see. If self-hosting is causing issues, then just don't perform self-hosting.

shrek

Found it - problem solved

I just double-checked the permissions and everything looks fine
All was set as written in the docs

What I did, I changed the files/folders ownership from root:root to www-data:www-data
That was the solution

To be honest, I have no idea why this was necessary because I'm running an older version (1.4.25) with root:root
All works fine with the old version and I only changed the permissions to the folder albums, ...

But never the less
Thanks all for your help
shrek