outroll / vesta

VESTA Control Panel
http://vestacp.com
GNU General Public License v3.0
2.97k stars 1.03k forks source link

file upload #1123

Closed cybernet closed 7 years ago

cybernet commented 7 years ago

Operating System (OS/VERSION):

CentOS 7

VestaCP Version:

latest

i have a problem uploading files

file_put_contents(): open_basedir restriction in effect. File(/tmp/phpxe8XLA) is not within the allowed path(s): (/home/user/web/domain/public_html:/home/user/tmp)

i know how to fix this and what is causing it, but i can't find the php fpm configuration file for my domain :)

also, i want to make a pull request with those changes in my opinion the problem is here https://github.com/serghey-rodin/vesta/blob/e89289887414398e112e1128254dd7e11a3aa812/install/rhel/7/templates/web/php-fpm/default.tpl

it should be env[TMPDIR] = /home/%user%/tmp

developer-av commented 7 years ago

how about /home/user/conf/web/apache2.conf?

Installed Software?

cybernet commented 7 years ago

default by installer

cybernet commented 7 years ago

can you tell me where are the confs for httpd and nginx. i can't seem to find them anywhere on /usr/local/vesta/*

cybernet commented 7 years ago

/home/user/conf/web/apache2.conf is missing

developer-av commented 7 years ago

Try to look /etc/httpd/conf.d/vesta.conf

cybernet commented 7 years ago

Include /home/admin/conf/web/httpd.conf Include /home/user/conf/web/httpd.conf Include /home/user/conf/web/shttpd.conf

only admin user has it

developer-av commented 7 years ago

Try recreate domain

cybernet commented 7 years ago

i did no files under /home/user/conf/web/

cybernet commented 7 years ago

should've checked that dir as root :)