ElkArte Community

Project Support => Support => Topic started by: Jorin on December 07, 2014, 11:12:20 am

Title: Installation ElkArte 1.0.2
Post by: Jorin on December 07, 2014, 11:12:20 am
I get the following errors shown above the text while installation progress:

QuoteWarning: file_put_contents(/www/htdocs/w00f21f1/elkarte/db_last_error.php) [function.file-put-contents]: failed to open stream: Permission denied in /www/htdocs/w00f21f1/elkarte/Settings.php on line 192

Warning: file_put_contents(/www/htdocs/w00f21f1/elkarte/db_last_error.php) [function.file-put-contents]: failed to open stream: Permission denied in /www/htdocs/w00f21f1/elkarte/Settings.php on line 192

Warning: file_put_contents(/www/htdocs/w00f21f1/elkarte/db_last_error.php) [function.file-put-contents]: failed to open stream: Permission denied in /www/htdocs/w00f21f1/elkarte/Settings.php on line 192

Warning: file_put_contents(/www/htdocs/w00f21f1/elkarte/db_last_error.php) [function.file-put-contents]: failed to open stream: Permission denied in /www/htdocs/w00f21f1/elkarte/Settings.php on line 192

I made all the listet directories and files 777 before.

Line 192 is:

Code: [Select]
	// File does not exist so lets try to create it
file_put_contents(dirname(__FILE__) . '/db_last_error.php', '<' . '?' . "php\n" . '$db_last_error = 0;');
$db_last_error = 0;
}

The board seems to work anyhow:

http://elkarte.hybrid-piloten.de/index.php
Title: Re: Installation ElkArte 1.0.2
Post by: emanuele on December 07, 2014, 12:41:43 pm
Check that db_last_error.php is present and writable... that's the only thing the error is saying.
Could it be you are on one of those hosts that thing that 777 is bad?
Title: Re: Installation ElkArte 1.0.2
Post by: Jorin on December 07, 2014, 12:49:09 pm
With SMF I needed to change all files to 777 and had to define an extra cache folder via .htaccess to get updates to work. With ElkArte this is no problem. The Update 1.0.0 to 1.0.1 worked fine with standard settings.
Title: Re: Installation ElkArte 1.0.2
Post by: emanuele on December 07, 2014, 12:56:00 pm
And the file is present in the root?
Title: Re: Installation ElkArte 1.0.2
Post by: Jorin on December 07, 2014, 01:03:51 pm
File is present, but has 644. The installation script said nothing to set this file to 777, so I didn't changed it.
Title: Re: Installation ElkArte 1.0.2
Post by: emanuele on December 07, 2014, 01:21:51 pm
Technically, this (and if you are using the file-based caching Load.php, but just for the time being, in 1.1 it will not be necessary) is the only file that needs to be writable. <= This is true if you don't want to use the package manager to install updates and you don't use the theme editor to change the files.
Title: Re: Installation ElkArte 1.0.2
Post by: Jorin on December 07, 2014, 01:24:24 pm
Then the installation script should inform me about this fact.  ;)
Title: Re: Installation ElkArte 1.0.2
Post by: emanuele on December 07, 2014, 02:54:08 pm
I thought it was, but it was not... added:
https://github.com/elkarte/Elkarte/pull/1913