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
#2
RE: Sentora problem - open_basedir - prestashop
I have this problem too with whmcs..
Reply
#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


Possibly Related Threads…
Thread Author Replies Views Last Post
Sentora cp steps 421darren 6 17 ,388 06-12-2025, 03:29 PM
Last Post: AnthonyDillard
Improving Security on Your Sentora Panel: Best Practices DylanForeman 0 472 05-27-2025, 06:10 PM
Last Post: DylanForeman
Is Sentora dead? rajeevrrs 2 5 ,725 12-17-2022, 09:20 AM
Last Post: TGates

Forum Jump:


Users browsing this thread: 2 Guest(s)