For issues related to the current stable release please use it's own Help forum.
IMPORTANT:Please read this before using an git or nightly build version: wiki.webtrees.net/en/GIT

Before asking for help please read "How to request help" by clicking on that tab above here.

TOPIC: webtrees 2.0 alpha 5 - install error

webtrees 2.0 alpha 5 - install error 3 months 2 weeks ago #1

  • otmar.mayr
  • otmar.mayr's Avatar
  • Offline
  • Junior
  • Posts: 199
I wanted install WT 2.0 alpha 5 for a test and got error messages from the setup wizard and with the GEDCOM import (see screenshots). I have MySQL and PHP-Version 7.2.12





The other databases run smoothly with webtrees 1.7.13.
Otmar Mayr - www.verwandten.info
The administrator has disabled public write access.

webtrees 2.0 alpha 5 - install error 1 month 3 weeks ago #2

  • otmar.mayr
  • otmar.mayr's Avatar
  • Offline
  • Junior
  • Posts: 199
My provider has set up the temporary directory /phptmp for my website. With webtrees version 1.7.14 I have no problems. With WT 2.0 Beta I get an error message during the installation and also during the Gedcom-import. Because missing /tmp directory no thumbnails are created.

My provider would change the currend temporary directory /phptmp to /tmp. However, I suspect that the other installations with WT 1.7.14 then don't work anymore.

How can solve that problem?
Otmar Mayr - www.verwandten.info
The administrator has disabled public write access.

webtrees 2.0 alpha 5 - install error 1 month 3 weeks ago #3

  • fisharebest
  • fisharebest's Avatar
  • Offline
  • Administrator
  • Posts: 11118
> My provider has set up the temporary directory /phptmp for my website.

But they did not configure PHP to use it...
Instead, they configured PHP to use /tmp (and they block this directory).

The best solution is to fix the PHP configuration.
You need to set "sys_temp_dir" to your temporary folder "/phptmp".

* perhaps you can use a .htaccess file to set this?

If this is not possible, I have included one possible solution in the webtrees code.

There is an example module "modules_v4/example-server-configuration.disable".

Rename this directory to remove the ".disable".

Edit the module.php file.

Find this section of the code.

github.com/fisharebest/webtrees/blob/mas...module.php#L104-L109
Change the last line from
//putenv('TMPDIR=' . $tmp);
putenv('TMPDIR=/phptmp');

Of course, your provider might have blocked the function "putenv()".
Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net
The administrator has disabled public write access.

webtrees 2.0 alpha 5 - install error 1 month 3 weeks ago #4

  • otmar.mayr
  • otmar.mayr's Avatar
  • Offline
  • Junior
  • Posts: 199
The change in the module did not work. I then switched back to the original version of the module.

My provider has changed the php.ini today. But I still see the temporary drive /phptmp and not /tmp in the Webtrees-server-settings.

I have now imported a gedcom and, interestingly, no longer had any error messages. The photos and thumbnails are now visible.

As already announced, the photos are outside of the web space.

However, I noticed that there is now a directory \thumbnail-cache in the directory \data.

Should that not be also outside of the webspace? All four webtrees installations access the photos.
Otmar Mayr - www.verwandten.info
Last Edit: 1 month 3 weeks ago by otmar.mayr.
The administrator has disabled public write access.
Powered by Kunena Forum