(Dec 29) New version 0.9.8-18 has been released

Incorrect open_basedir Topic is solved

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Forum rules
Before creating a new topic or reply on the forum you should fill out additional fields "Os" and "Web" in your profile section.
In case of violation, the topic can be closed or response from the support will not be received.
ScIT
Posts: 314
Joined: Mon Feb 23, 2015 4:13 pm

Os: Ubuntu 16x
Web: apache + nginx

Re: Incorrect open_basedir

Postby ScIT » Sat Apr 22, 2017 8:43 am

Daimko wrote:The problem is still present :

Code: Select all

Warning: file_exists (): open_basedir restriction in effect. File (/ home / u941222742 / public_html / wp-content / uploads / 2017/04) (/home/admin/web/refugio-pineta.es/public_html:/home/admin/ Tmp) in /home/admin/web/refugio-pineta.es/public_html/wp-includes/functions.php on line 1611


An idea ?
Thank you in advance for your help.

There is something wrong with your basedir line -> (/home/admin/web/refugio-pineta.es/public_html:/home/admin/ Tmp) it should be /home/admin/web/refugio-pineta.es/public_html:/home/admin/:/tmp

Daimko
Posts: 21
Joined: Sun Mar 26, 2017 9:43 pm

Os: Debian 8x
Web: apache + nginx

Re: Incorrect open_basedir

Postby Daimko » Sat Apr 22, 2017 8:57 am

What value should I put in this case ?

ScIT
Posts: 314
Joined: Mon Feb 23, 2015 4:13 pm

Os: Ubuntu 16x
Web: apache + nginx

Re: Incorrect open_basedir

Postby ScIT » Sat Apr 22, 2017 9:05 am

Daimko wrote:What value should I put in this case ?

that what i've wrote:

Code: Select all

php_admin_value open_basedir %docroot%:%home%/%user%/tmp:/tmp

Daimko
Posts: 21
Joined: Sun Mar 26, 2017 9:43 pm

Os: Debian 8x
Web: apache + nginx

Re: Incorrect open_basedir

Postby Daimko » Sat Apr 22, 2017 9:11 am

.stpl
Image

.tpl
Image

ScIT
Posts: 314
Joined: Mon Feb 23, 2015 4:13 pm

Os: Ubuntu 16x
Web: apache + nginx

Re: Incorrect open_basedir

Postby ScIT » Sat Apr 22, 2017 9:23 am

What I not understand is, that you seems to have a open basedir restriction for the path / home / u941222742 / public_html / wp-content / uploads / 2017/04. u941222742 is not your user admin - so maybe you have here a missconfiguration of wordpress. Check the root path configuration and modify it to /home/admin/web/refugio-pineta.es/public_html

Also you may not need a seperate template, check your conf, if it works you can switch back to default template.

Daimko
Posts: 21
Joined: Sun Mar 26, 2017 9:43 pm

Os: Debian 8x
Web: apache + nginx

Re: Incorrect open_basedir

Postby Daimko » Sat Apr 22, 2017 9:33 am

Where can I edit this root path configuration ?
Thank you for your help.

ScIT
Posts: 314
Joined: Mon Feb 23, 2015 4:13 pm

Os: Ubuntu 16x
Web: apache + nginx

Re: Incorrect open_basedir  Topic is solved

Postby ScIT » Sat Apr 22, 2017 9:37 am

Daimko wrote:Where can I edit this root path configuration ?
Thank you for your help.

that's wordpress related, not vestacp. Your wordpress tries to access the following path: / home / u941222742 / public_html / wp-content / uploads / 2017/04

So there is a missconfiguration of wordpress, basedir restriction will not allow you to access that path. And also the path is not vestacp typical.

Daimko
Posts: 21
Joined: Sun Mar 26, 2017 9:43 pm

Os: Debian 8x
Web: apache + nginx

Re: Incorrect open_basedir

Postby Daimko » Sat Apr 22, 2017 11:21 am

It's ok, problem solved.
Thank you !

mehargags
Moderators
Posts: 898
Joined: Sat Sep 06, 2014 9:58 pm
Contact:

Re: Incorrect open_basedir

Postby mehargags » Sat Apr 22, 2017 5:16 pm

/home/admin/ Tmp ≠ /home/admin/tmp

Pay attention to capital letters... linux is case sensitive
&
Why are there spaces between your directory path ?

Also ... if you see your problem solved, please have the courtesy to write what exactly resolved your issue and mark the topic solved

totoro
Posts: 1
Joined: Fri Apr 28, 2017 2:16 am

Re: Incorrect open_basedir

Postby totoro » Fri Apr 28, 2017 2:23 am

I have same problem on my site https://www.gaubongdep.com/

I follow ScIT post but nothing changes...


Return to “Web Server”



Who is online

Users browsing this forum: Bing [Bot] and 2 guests

cron