crashreportsviewer icon indicating copy to clipboard operation
crashreportsviewer copied to clipboard

unable to create config.php

Open leolux opened this issue 10 years ago • 5 comments

Hi! at the end of the installation I am facing the following message: "Unable to create config.php. Check file/folder permissions."

I have create a user using the tools of my provider strato.de Here is my .htaccess:

AuthUserFile /mnt/rid/41/07/5394107/htdocs/.htuser

AuthName "Gesicherter Bereich" AuthType Basic

require user theuserthaticreated

Options +FollowSymlinks RewriteCond %{REQUEST_URI} ^/dist.* [NC] RewriteRule .* - [L]

RewriteEngine on RewriteRule ^([^/]+)/report/([0-9]+)/field/([^/]+)/?$ field.php?package=$1&id=$2&field=$3 [QSA] RewriteRule ^([^/]+)/issue/([a-z0-9]+)/?$ report.php?package=$1&issue_id=$2 [QSA] RewriteRule ^([^/]+)/([^/]+)/([0-9]+)/?$ $2.php?package=$1&v=$3 [QSA] RewriteRule ^([^/]+)/([^/]+)/?$ $2.php?package=$1 [QSA]

What else can I do to fix this error message?

leolux avatar Jul 18 '14 20:07 leolux

The web application needs write access to the folder. The PHP script tried to write the file config.php but couldn't. Please check folder permissions, or try to create the file yourself.

BenoitDuffez avatar Jul 19 '14 11:07 BenoitDuffez

I am having the same problem but manually added the config.php and sql table. Still, I cannot submit. ps, I also added "ini_set('display_errors', 'On');" to some php files;it seems php works fine

0xd5dc avatar Aug 02 '14 02:08 0xd5dc

The problem seems to be that install.php script tries to write the config file outside the document root: $_SERVER['DOCUMENT_ROOT'] . "/../config.php" I changed the location to $_SERVER['DOCUMENT_ROOT'] . "/config.php" so the installation finished successfully. But ACRA still does not work because on the main site acra.mydomain.com I am getting the following error message: "Server down".

My setup is a little different. I installed acra on a subfolder of my webhost provier. So the subdomain acra.mydomain.com points to the subfolder "www/acra" and not to the root "www". This is my problem. Oher php scripts are do not work because of incorrect import paths. This makes the tool unusable. Is there any way to get it running within a subfolder of www?

leolux avatar Aug 02 '14 14:08 leolux

Hi, I don't see why you would want to create a subfolder into www, but you should be able to do so by adding little modifications to the code. Could you track down why the message server down is displayed?

BenoitDuffez avatar Aug 04 '14 20:08 BenoitDuffez

I had to change all places where it references server document root to "config.php" - and only that. I created the file myself and the initialization module took care of the rest

ghost avatar Jul 08 '16 09:07 ghost