This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Sentora problem - open_basedir - prestashop
#1
Sentora problem - open_basedir - prestashop
Hi guys!

I have a strange problem, and so the system logs showing me a strange line.

PHP Code:
[Tue Oct 25 15:55:32.554510 2016] [:error] [pid 16957] [client 0.0.0.0:52413PHP Warning: include_once(): open_basedir restriction in effectFile(/var/sentora/hostdata/userx/public_html/shop_domaintld_plinit.phpis not within the allowed path(s): 
Any why is :
PHP Code:
File(/var/sentora/hostdata/userx/public_html/shop_domaintld_plinit.php

Any why not is:
Code:
File(/var/sentora/hostdata/userx/public_html/shop_domaintld_pl/init.php)

Prestashop SEO & URL
[Image: prestashop_base_url.png]


Quote:/etc/sentora/configs/apache/httpd-vhosts.conf

Code:
# DOMAIN: sklep.domaintld.pl
<virtualhost *:80>
ServerName sklep.domaintld.pl
ServerAlias www.sklep.domaintld.pl
ServerAdmin dido@domaintld.pl
DocumentRoot "/var/sentora/hostdata/dido/public_html/sklep_domaintld_pl"
php_admin_value open_basedir "/var/sentora/hostdata/dido/public_html/sklep_domaintld_pl:/var/sentora/temp/"
php_admin_value suhosin.executor.func.blacklist "passthru, show_source, shell_exec, system, pcntl_exec, popen, pclose, proc_open, proc_nice, proc_terminate, proc_get_status, proc_close, leak, apache_child_terminate$
ErrorLog "/var/sentora/logs/domains/dido/sklep.domaintld.pl-error.log"
CustomLog "/var/sentora/logs/domains/dido/sklep.domaintld.pl-access.log" combined
<Directory "/var/sentora/hostdata/dido/public_html/sklep_domaintld_pl">
 Options +FollowSymLinks -Indexes
 AllowOverride All
 Require all granted
</Directory>
AddType application/x-httpd-php .php3 .php
ErrorDocument 510 /_errorpages/510.html
ErrorDocument 403 /_errorpages/403.html
ErrorDocument 404 /_errorpages/404.html
DirectoryIndex index.html index.htm index.php index.asp index.aspx index.jsp index.jspa index.shtml index.shtm
# Custom Global Settings (if any exist)

# Custom VH settings (if any exist)

</virtualhost>
# END DOMAIN: sklep.domaintld.pl
################################################################

Thanks.
Reply
Thanks given by:
#2
RE: Sentora problem - open_basedir - prestashop
I have this problem too with whmcs..
Reply
Thanks given by:
#3
RE: Sentora problem - open_basedir - prestashop
That is because
Code:
sklep.domaintld.pl

is a different domain and folder than
Code:
shop.domaintld.pl
and is blocked for security reasons.

You are trying to 'illegally' access a file outside of the original domain's root folder. If you need to access a file on another domain you will have to try and use the URL instead of full path.
-TGates - Project Council

SEARCH the Forums or read the DOCUMENTATION before posting!
Support Sentora and Donate: HERE

Find my support or modules useful? Donate to TGates HERE
Developers and code testers needed!
Contact TGates for more information
Reply
Thanks given by:


Possibly Related Threads…
Thread Author Replies Views Last Post
Is Sentora dead? rajeevrrs 2 3 ,971 12-17-2022, 09:20 AM
Last Post: TGates
Sentora debug and error files johnnyp 0 1 ,590 10-27-2022, 06:16 PM
Last Post: johnnyp
Transfer Account to another Sentora BenI 1 3 ,334 07-21-2022, 07:19 PM
Last Post: Nigel

Forum Jump:


Users browsing this thread: 2 Guest(s)