Answer the question
In order to leave comments, you need to log in
How to solve the problem with the error: open_basedir restriction in effect. File(/home/u314597346/public_html/tmp) is not within the allowed path(s)?
Dear experts. Help the teapot solve the Joomla!
At the moment, the site is located on a free hostinger.ru hosting, I am making a site for myself, so I just understand all the intricacies. Today I had free time and I decided to work on my site, went to the loomla admin panel and I got notifications about updating joomla itself, the shaper_helix3 template and the Russian language. When I entered the update, a disgusting inscription began to flaunt in front of me (I saw it for the first time):
Warning: is_writeable(): open_basedir restriction in effect. File(/home/u314597346/public_html/tmp) is not within the allowed path(s): (/home/u850868817:/tmp:/var/tmp:/opt/php-7.0/pear:/usr/local/bin :/etc/pki/tls/certs) in /home/u850868817/public_html/administrator/components/com_installer/models/warnings.php on line 104
Answer the question
In order to leave comments, you need to log in
open_basedir - a setting that limits the places where php can "climb".
In your case, these are the directories:
/home/u850868817
/tmp
/var/tmp
/opt/php-7.0/pear
/usr/local/bin // wow!
/etc/pki/tls/certs
On shared hosting, the value is set "from above" by the hoster and cannot be overridden from the script.
On the picture: Joomla took the upload_tmp_dir value - this is a temporary directory for uploading files to the server, and tried to check if it is possible to write there. But it failed to check, because open_basedir did not allow is_writable() to this directory, because it and its parents are not on the allowed list.
You would do well to find out who u314597346 is - because your account is called u850868817. Most likely you copied it somewhere and you need to look for it in the source code. Try creating a file like this:
<?php
echo 'tmp dir: '.ini_get('upload_tmp_dir')."<br />";
echo 'doc root: '. $_SERVER['DOCUMENT_ROOT'];
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question