Bienvenue, Invité
Nom d'utilisateur : Mot de passe :
This Help forum is for issues relates to the latest release (1.7.8). For issues related to beta or github version please use their own Help forum.
Before asking for help please read "How to request help" by clicking on that tab above here."
  • Page :
  • 1
  • 2

SUJET :

Oops! webtrees was unable to create files in this il y a 4 ans 10 mois #1

  • lmsmicro
  • Portrait de lmsmicro Auteur du sujet
  • Visiteur
  • Visiteur
This is the 2nd time I have submitted this and have not head a reply.

Setup wizard for webtrees
/var/www/html/webtrees/data

Oops! webtrees was unable to create files in this folder.

This usually means that you need to change the folder permissions to 777.

You must change this before you can continue.

I pushed snapshots for the problem, I also mention to the last person I only have 1 user and that is "root"

Connexion ou Créer un compte pour participer à la conversation.

Oops! webtrees was unable to create files in this il y a 4 ans 10 mois #2

  • norwegian_sardines
  • Portrait de norwegian_sardines
  • Hors Ligne
  • Membre platinium
  • Membre platinium
  • Messages : 2085
Did you set the primary webtrees directory and ALL subdirectories to 777?

As Greg indicated the program's determines this by actually adding a file then deleting it. If this fails it is a good chance that the directory was not set as needed.

Did you do what he asked:

In your "oops2.PNG" image, try also selecting "Recurse into subdirectories".


Greg knows more about webtrees than anyone!
Ken

Connexion ou Créer un compte pour participer à la conversation.

Dernière édition: par norwegian_sardines.

Oops! webtrees was unable to create files in this il y a 4 ans 10 mois #3

This is the 2nd time I have submitted this and have not head a reply.


A response to your earlier post was: "Also, in your "oops2.PNG" image, there is probably a "user" and "group" shown
behind the popup window. Knowing these may be helpful."

Can you provide this?
Rob
www.skatekey.net ( webtrees beta GitHub)
PHP 7.4.14, MySql 7.4.14, Apache 2.4.43,
Hosted at tigertech.net

Connexion ou Créer un compte pour participer à la conversation.

Oops! webtrees was unable to create files in this il y a 4 ans 10 mois #4

  • lmsmicro
  • Portrait de lmsmicro Auteur du sujet
  • Visiteur
  • Visiteur
No only set 777 to "ALL" subirectories, but also decided to see if I if I set everything in webtrees to 777, Both failed. I reported this about a month ago and also had the same problem with the older version. Again also mentioned I only have "ONE" user and that is root. As soon as I mentioned that I had no information after that, the chat went dead.

Quick rundown on information

Fedora 24 Server (Virtual machine)
User: root only
location of webtrees: /var/www/html/webtrees (currently all set as 777) I will deleting it and reloading it using filezilla again.

another mention I also have mediawiki working great and Yes I know this a totally different setup.

If needed I can do snapshots of everything.

Connexion ou Créer un compte pour participer à la conversation.

Oops! webtrees was unable to create files in this il y a 4 ans 10 mois #5

This will happen, ignoring the 777 and correct ownership, if your linux is running SELinux and getenforce returns 'Enforcing'.

Do a man on setenforce and selinux - or alternatively just do
setenforce 0

and restart the httpd process.

Connexion ou Créer un compte pour participer à la conversation.

Oops! webtrees was unable to create files in this il y a 4 ans 10 mois #6

  • lmsmicro
  • Portrait de lmsmicro Auteur du sujet
  • Visiteur
  • Visiteur
Ok here we go again.

User is root
so root is in the group of root (snapshot3) as you see in snapshot4

I used webmin to gather the remaining tell tale signs for troubleshooting
Pièces jointes :

Connexion ou Créer un compte pour participer à la conversation.

Oops! webtrees was unable to create files in this il y a 4 ans 10 mois #7

(none of that matters if SELinux is enforcing)

Connexion ou Créer un compte pour participer à la conversation.

Oops! webtrees was unable to create files in this il y a 4 ans 9 mois #8

  • lmsmicro
  • Portrait de lmsmicro Auteur du sujet
  • Visiteur
  • Visiteur
Has anyone solved this yet????
I still cannot install webtrees. I still get the OPPS!! message

I have deleted the older versions and installed 1.7.8 and yes recursive on the Data and folders/files inside of data.

Also I only have ONE user.. That is root

I am using Fedora 24 Server command prompt only, no GUI.

I would like to get started with this program.

Connexion ou Créer un compte pour participer à la conversation.

Dernière édition: par lmsmicro.
Avez-vous besoin d'une solution d'hébergement web pour votre site webtrees ?
Si vous préférez un hébergeur spécialisé de webtrees, la page suivante en liste quelques-uns capables de vous offrir ce type de service :

Oops! webtrees was unable to create files in this il y a 4 ans 9 mois #9

OMG - www.youtube.com/watch?v=ANiFtsO5iqg

If the directory is chmod'd 777 which it seems you are competent to do, and are doing, this is because SELinux is set to "enforce" level; this is the default setting on several *nix distributions (CentOS 6+, ...)

Change the SELinux setting as said above.

Connexion ou Créer un compte pour participer à la conversation.

Oops! webtrees was unable to create files in this il y a 4 ans 9 mois #10

  • fisharebest
  • Portrait de fisharebest
  • Hors Ligne
  • Administrateur
  • Administrateur
  • Messages : 14715
I think quarkdoll had the answer.

You are using SELinux. SELinux adds many "security rules" to your system.

One of these rules is that your webserver process cannot write files - whatever file permissions you have.

You can either disable SELinux of find a way to configure it to allow file writes.

It is probably easier to disable it.
Greg Roach - Cette adresse e-mail est protégée contre les robots spammeurs. Vous devez activer le JavaScript pour la visualiser. - fisharebest.webtrees.net

Connexion ou Créer un compte pour participer à la conversation.

Oops! webtrees was unable to create files in this il y a 4 ans 9 mois #11

  • lmsmicro
  • Portrait de lmsmicro Auteur du sujet
  • Visiteur
  • Visiteur
Anyone with another probable guess. It is disabled (snapshot included)
Pièces jointes :

Connexion ou Créer un compte pour participer à la conversation.

Oops! webtrees was unable to create files in this il y a 4 ans 9 mois #12

  • lmsmicro
  • Portrait de lmsmicro Auteur du sujet
  • Visiteur
  • Visiteur
To quarkdoll, next time you send a video try this youtube.com video

www.youtube.com/watch?v=jrXP5zoFxss

Connexion ou Créer un compte pour participer à la conversation.

Dernière édition: par lmsmicro.

Oops! webtrees was unable to create files in this il y a 4 ans 9 mois #13

It was disabled throughout all these attempts, or you have now disabled it? If the latter, did you restart the httpd process afterwards? (... if you just disabled it, it is better, also, to have it enabled and keep it at permissive if you ever plan to re-enable it as files created while it is disabled will not be loaded when re-enabled.)

If it's been disabled all along (or was disabled and had httpd restarted afterwards), and the directory is chmod 777, my last flare is that there are apparently alternatives to SELinux that ?may be running instead? - AppArmor and Grsecurity at least... but i know nothing about these.

Connexion ou Créer un compte pour participer à la conversation.

Oops! webtrees was unable to create files in this il y a 4 ans 9 mois #14

  • lmsmicro
  • Portrait de lmsmicro Auteur du sujet
  • Visiteur
  • Visiteur
It was disabled when I downloaded 1.7.7, I have manually set the directory and everything inside to 777. I also went the extra bit and also disabled the compete webtrees folder and everything behind it. This application is going to be internal only. I have also loaded items like webmin, and a few extra tools and they work fine. The only thing I have not done yet is install all of the devel additions to fedora server 24.

I find it very strange that I can get everything working just fine except for webtrees. I had phpgedview for years and patiently loaded over 1,800 names and information to the system. I do see other websites mentioning to make modifications to the php code and hesitant in making the mods. Here is one of the websites:

github.com/fisharebest/webtrees/blob/master/setup.php
github.com/fisharebest/webtrees/issues/778

Connexion ou Créer un compte pour participer à la conversation.

Oops! webtrees was unable to create files in this il y a 4 ans 9 mois #15

It does seem strange - especially if those other tools write to the file system through PHP.

Things i would try in debugging, this would be:
+ change setup.php's lines 199-217 to be this so you could see the actual exception PHP is throwing (can't hurt to have more info):
$text1 = uniqid();
$text2 = '';
$exceptionDump = '';
try {
	file_put_contents(WT_DATA_DIR . 'test.txt', $text1);
	$text2 = file_get_contents(WT_DATA_DIR . 'test.txt');
	unlink(WT_DATA_DIR . 'test.txt');
} catch (\ErrorException $ex) {
	$exceptionDump = print_r($ex, true);
}

if ($text1 !== $text2) {
	echo '<h2>', realpath(WT_DATA_DIR), '</h2>';
	echo '<p class="bad">', I18N::translate('Oops! webtrees was unable to create files in this folder.'), '</p>';
	echo '<p>', I18N::translate('This usually means that you need to change the folder permissions to 777.'), '</p>';
	echo '<p>', I18N::translate('You must change this before you can continue.'), '</p>';
	echo '<br><hr><tt>',$exceptionDump,'</tt>';
	echo '<br><hr><input type="submit" id="btncontinue" value="', I18N::translate('continue'), '">';
	echo '</form></body></html>';

	return;
}

+ Is this something specific to webtrees' PHP? Make a new directory under your web root that is also 777 and then make a simple PHP file in your web root to write a file into it and call that PHP file from a web browser. If it fails from the browser, for ha-ha's sake: what happens if you invoke it from command line?

When you say "disable the complete webtrees folder", what do you mean?

Connexion ou Créer un compte pour participer à la conversation.

Oops! webtrees was unable to create files in this il y a 4 ans 9 mois #16

  • lmsmicro
  • Portrait de lmsmicro Auteur du sujet
  • Visiteur
  • Visiteur

It does seem strange - especially if those other tools write to the file system through PHP.

Things i would try in debugging, this would be:
+ change setup.php's lines 199-217 to be this so you could see the actual exception PHP is throwing (can't hurt to have more info):
$text1 = uniqid();
$text2 = '';
$exceptionDump = '';
try {
	file_put_contents(WT_DATA_DIR . 'test.txt', $text1);
	$text2 = file_get_contents(WT_DATA_DIR . 'test.txt');
	unlink(WT_DATA_DIR . 'test.txt');
} catch (\ErrorException $ex) {
	$exceptionDump = print_r($ex, true);
}

if ($text1 !== $text2) {
	echo '<h2>', realpath(WT_DATA_DIR), '</h2>';
	echo '<p class="bad">', I18N::translate('Oops! webtrees was unable to create files in this folder.'), '</p>';
	echo '<p>', I18N::translate('This usually means that you need to change the folder permissions to 777.'), '</p>';
	echo '<p>', I18N::translate('You must change this before you can continue.'), '</p>';
	echo '<br><hr><tt>',$exceptionDump,'</tt>';
	echo '<br><hr><input type="submit" id="btncontinue" value="', I18N::translate('continue'), '">';
	echo '</form></body></html>';

	return;
}

+ Is this something specific to webtrees' PHP? Make a new directory under your web root that is also 777 and then make a simple PHP file in your web root to write a file into it and call that PHP file from a web browser. If it fails from the browser, for ha-ha's sake: what happens if you invoke it from command line?

When you say "disable the complete webtrees folder", what do you mean?


What I meant is I changed everything from the normal security settings to everything having full access (777) from webtrees on down to the files and folders within webtrees. In a way I disabled the security settings from the main folder of webtrees to everything within that folder. Don't worry, I then deleted the webtrees folder and reinstalled it after testing it and it still failed installing.

Connexion ou Créer un compte pour participer à la conversation.

Dernière édition: par lmsmicro.

Oops! webtrees was unable to create files in this il y a 4 ans 9 mois #17

  • lmsmicro
  • Portrait de lmsmicro Auteur du sujet
  • Visiteur
  • Visiteur
I changed the code to what you highlighted and the capture image is what happened. It looks like it stalled.
Pièces jointes :

Connexion ou Créer un compte pour participer à la conversation.

Oops! webtrees was unable to create files in this il y a 4 ans 9 mois #18

Hmm... i unzipped a fresh copy of 1.7.8 into a web directory; chmod'd the data dir to be 444 to be sure the write would fail; edited the setup.php as i described above (deleted all the code between the Step Two and Step Three comment blocks and copy-and-pasted the above); then went to the setup.php in my browser; clicked continue on the first page and then got the failure as expected (SS attached here.).

Does "cursed" qualify as a technical explanation? :- (
Pièces jointes :

Connexion ou Créer un compte pour participer à la conversation.

Dernière édition: par quarkdoll.

Oops! webtrees was unable to create files in this il y a 4 ans 9 mois #19

Maybe there is something different between our PHPs? I'm running 5.4.16; attached a gzip tar of all of the .ini files which PHP sources.
Pièces jointes :

Connexion ou Créer un compte pour participer à la conversation.

Oops! webtrees was unable to create files in this il y a 4 ans 9 mois #20

  • lmsmicro
  • Portrait de lmsmicro Auteur du sujet
  • Visiteur
  • Visiteur
My PHP version is 5.6.27

I ran a command line php -v and attached an image of the outcome.
Pièces jointes :

Connexion ou Créer un compte pour participer à la conversation.

  • Page :
  • 1
  • 2
Propulsé par Kunena