Question webtrees 2.0 alpha 5 - install error
- otmar.mayr
- Topic Author
- Offline
- Senior Member
Less
More
5 years 2 weeks ago #1
by otmar.mayr
www.verwandten.info / PHP-Version 8.2 / webtrees 2.1.18
webtrees 2.0 alpha 5 - install error was created by otmar.mayr
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.
The other databases run smoothly with webtrees 1.7.13.
www.verwandten.info / PHP-Version 8.2 / webtrees 2.1.18
Please Log in or Create an account to join the conversation.
- otmar.mayr
- Topic Author
- Offline
- Senior Member
4 years 10 months ago #2
by otmar.mayr
www.verwandten.info / PHP-Version 8.2 / webtrees 2.1.18
Replied by otmar.mayr on topic webtrees 2.0 alpha 5 - install error
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?
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?
www.verwandten.info / PHP-Version 8.2 / webtrees 2.1.18
Please Log in or Create an account to join the conversation.
- fisharebest
- Offline
- Administrator
4 years 10 months ago #3
by fisharebest
Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net
Replied by fisharebest on topic webtrees 2.0 alpha 5 - install error
> 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
Of course, your provider might have blocked the function "putenv()".
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
Code:
//putenv('TMPDIR=' . $tmp);
Code:
putenv('TMPDIR=/phptmp');
Of course, your provider might have blocked the function "putenv()".
Greg Roach - greg@subaqua.co.uk - @fisharebest@phpc.social - fisharebest.webtrees.net
Please Log in or Create an account to join the conversation.
- otmar.mayr
- Topic Author
- Offline
- Senior Member
4 years 10 months ago - 4 years 10 months ago #4
by otmar.mayr
www.verwandten.info / PHP-Version 8.2 / webtrees 2.1.18
Replied by otmar.mayr on topic webtrees 2.0 alpha 5 - install error
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.
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.
www.verwandten.info / PHP-Version 8.2 / webtrees 2.1.18
Last edit: 4 years 10 months ago by otmar.mayr.
Please Log in or Create an account to join the conversation.