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

Author Topic: getting error when try to run the install.php script  (Read 5989 times)

0 Members and 1 Guest are viewing this topic.

shrek

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
    • http://www.sharkdiver.de
getting error when try to run the install.php script
« on: March 24, 2010, 08:29:26 am »

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:
Quote
Warning: 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
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: getting error when try to run the install.php script
« Reply #1 on: March 24, 2010, 08:34:39 am »

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

onthepike

  • Guest
Re: getting error when try to run the install.php script
« Reply #2 on: March 24, 2010, 08:42:06 am »

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

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47844
  • aka "GauGau"
    • gaugau.de
Re: getting error when try to run the install.php script
« Reply #3 on: March 24, 2010, 08:47:42 am »

The key is in the error message you get:
Quote
Permission 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

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

shrek

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
    • http://www.sharkdiver.de
Re: getting error when try to run the install.php script
« Reply #4 on: March 24, 2010, 09:41:12 am »

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
Logged
Pages: [1]   Go Up
 

Page created in 0.015 seconds with 19 queries.