forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 install => Topic started by: shrek on March 24, 2010, 08:29:26 am

Title: getting error when try to run the install.php script
Post by: shrek 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
Title: Re: getting error when try to run the install.php script
Post by: Αndré 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.
Title: Re: getting error when try to run the install.php script
Post by: onthepike 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 (http://www.linuxquestions.org/questions/linux-server-73/setting-file-permissions-in-apache-on-debian-etch-561847/) and Apache Web Server - PHP Pear problem (http://ubuntuforums.org/showthread.php?t=1025510) to see if these suggestions solve your issue.

I just searched for the string and these two seem to most resemble your issue.
Title: Re: getting error when try to run the install.php script
Post by: Joachim Müller 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.
Title: Re: getting error when try to run the install.php script
Post by: shrek 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