- Posts: 4
Solved
The server’s temporary folder cannot be accessed.
- gudjonsi
-
Topic Author
- Offline
- New Member
-
Less
More
10 months 6 days ago - 9 months 2 weeks ago #1
by gudjonsi
webtrees 2.2.1 - PHP 8.3 on OpenLiteSpeed Server - MariaDB 10.11.6 Database Server
The server’s temporary folder cannot be accessed. was created by gudjonsi
After my web hosting provider upgraded their servers from Apache/PHP-FPM to OpenLiteSpeed I get the following error in webtrees control panel:
The server’s temporary folder cannot be accessed.
sys_get_temp_dir() = "/tmp/"
ini_get("open_basedir") = "/var/www/virtual/myhostname/htdocs:/var/www/virtual/myhostname/phptmp:/usr/local/lsws/lsphp83/:/var/www/helpers/:/dev/random:/dev/urandom"
I'm running webtrees 2.1.20 and was at the time my web hosting provider made the above upgrade to the servers. The above error came directly after the upgrade from Apache/PHP-FPM to OpenLiteSpeed. LiteSpeed 8.3 is running on the server with webtrees 2.1.20 and this is the only problem experienced so far with the upgrade.
I've contacted my web hosting with support in solving this (included the error code in my request) and their response was that I need to change the temp dir request from tmp to phptmp. Is it possible to change this within webtrees without directly changing the software code, i.e. other better options to solve this?
Any help to solve this would be appreciated.
Gudjon - webtrees 2.1.20
The server’s temporary folder cannot be accessed.
sys_get_temp_dir() = "/tmp/"
ini_get("open_basedir") = "/var/www/virtual/myhostname/htdocs:/var/www/virtual/myhostname/phptmp:/usr/local/lsws/lsphp83/:/var/www/helpers/:/dev/random:/dev/urandom"
I'm running webtrees 2.1.20 and was at the time my web hosting provider made the above upgrade to the servers. The above error came directly after the upgrade from Apache/PHP-FPM to OpenLiteSpeed. LiteSpeed 8.3 is running on the server with webtrees 2.1.20 and this is the only problem experienced so far with the upgrade.
I've contacted my web hosting with support in solving this (included the error code in my request) and their response was that I need to change the temp dir request from tmp to phptmp. Is it possible to change this within webtrees without directly changing the software code, i.e. other better options to solve this?
Any help to solve this would be appreciated.
Gudjon - webtrees 2.1.20
webtrees 2.2.1 - PHP 8.3 on OpenLiteSpeed Server - MariaDB 10.11.6 Database Server
Last edit: 9 months 2 weeks ago by gudjonsi.
Please Log in or Create an account to join the conversation.
- Franz Frese
-
- Offline
- Platinum Member
-
10 months 6 days ago #2
by Franz Frese
Replied by Franz Frese on topic The server’s temporary folder cannot be accessed.
ask your provider how to do this best for your environment,
or simply change/set in .htaccess .
or set an environment variable with a php-file.
or simply change/set in .htaccess .
or set an environment variable with a php-file.
Please Log in or Create an account to join the conversation.
- gudjonsi
-
Topic Author
- Offline
- New Member
-
Less
More
- Posts: 4
10 months 4 days ago #3
by gudjonsi
webtrees 2.2.1 - PHP 8.3 on OpenLiteSpeed Server - MariaDB 10.11.6 Database Server
Replied by gudjonsi on topic The server’s temporary folder cannot be accessed.
Issue solved when my hosting company inserted the necessary parameter in the sys_temp_dir (local value) of PHP which was blank and caused the error.
webtrees 2.2.1 - PHP 8.3 on OpenLiteSpeed Server - MariaDB 10.11.6 Database Server
Please Log in or Create an account to join the conversation.