Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section General Discussion
  • Search

Wordpress Missing Temporary folder

General questions about VestaCP
Post Reply
  • Print view
Advanced search
14 posts
  • 1
  • 2
  • Next
pandabb
Posts: 192
Joined: Sat Aug 08, 2015 3:03 am

Wordpress Missing Temporary folder
  • Quote

Post by pandabb » Sat Aug 08, 2015 6:08 am

Hello guys, so i have sucessfully installed Vesta Cp on Centos 6.7

What i did is this, i left the admin account to host zero website.

1. I created seperate accounts for each domain or clients ex. John, Jane and so on.
2. Logged into each account and added their respective web and database.
3. Logged into ex. John via FTP and uploaded files "Wordpress"
4. It was sucesfuly installed, however when i try to upload images it says "Missing a temporary folder"

Also note when i'm logged into FTP ex John the folder "Owner" shows 503 isn't this supposed to reflect the name of the user ex. John for this account, i added the domain via web using the same account John.

Also note that i'm using the following template as suggested on other post for security. Template Basedir and Hosting



Thank You Very Much!
Top

pandabb
Posts: 192
Joined: Sat Aug 08, 2015 3:03 am

Re: Wordpress Missing Temporary folder
  • Quote

Post by pandabb » Sat Aug 08, 2015 6:34 am

Update Guys:

Based on the error log, it shows the conflict is because of the template i've choosen which is basedir.

[Sat Aug 08 01:42:51 2015] [error] [client 150.121.158.152] PHP Warning: file_exists(): open_basedir restriction in effect. File(/home/John/web/mydomain.com/wp-config.php) is not within the allowed path(s):

So what's the workaround here so i can include this path in the basedir template ? Also if i edit the basedir template do i need to reinstall all sites again or it will take effect once i restart apache.

Thanks again.
Top

Felix
Posts: 134
Joined: Tue Aug 04, 2015 7:15 pm

Os: Ubuntu 15x
Web: apache + nginx
Re: Wordpress Missing Temporary folder
  • Quote

Post by Felix » Sat Aug 08, 2015 6:56 am

In my installation of Vesta the uploaded files go to /home/[USER]/web/[DOMAIN]/public_html/ but you uploaded them in /home/John/web/mydomain.com/wp-config.php, instead of the public_html directory. This might be your problem.
Top

pandabb
Posts: 192
Joined: Sat Aug 08, 2015 3:03 am

Re: Wordpress Missing Temporary folder
  • Quote

Post by pandabb » Sat Aug 08, 2015 7:25 am

Thank you very much sir for your reply.

Actually files are uploaded inside the publichtml folder, that path above is the output from the error log.

May i ask which template are you using? Basedir or Default ? I setup VestaCp twice, the first one i use the default the template it works flawlessly but i wanted to add more security so i used the basedir template. I'm guessing is i need to edit the basedir template to allow this tmp folder, i just don't know how.

Thanks
Top

Felix
Posts: 134
Joined: Tue Aug 04, 2015 7:15 pm

Os: Ubuntu 15x
Web: apache + nginx
Re: Wordpress Missing Temporary folder
  • Quote

Post by Felix » Sat Aug 08, 2015 7:47 am

If you're asking about what Web Template (apache2) I'm using, its the hosting template.
Top

pandabb
Posts: 192
Joined: Sat Aug 08, 2015 3:03 am

Re: Wordpress Missing Temporary folder
  • Quote

Post by pandabb » Sat Aug 08, 2015 8:02 am

Hello i managed to fix it but i hope someone will read this and confirm what i did is correct.

So with the first post problem , the solution that i did is modify the basedir template.

This is how the basedir docroot looks like now

Code: Select all

<Directory %docroot%>
        AllowOverride All
        Options +Includes -Indexes +ExecCGI
		[b]php_admin_value upload_tmp_dir %home%/%user%/tmp
		php_admin_value session.save_path %home%/%user%/tmp[/b]
                php_admin_value open_basedir %docroot%
    </Directory>
Those lines in Bold are the one i added.

Then i used the rebuild command.
v-rebuild-user John

Am i doing it right? Is my basedir template still secured compared to the other templates?

Thanks!
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: Wordpress Missing Temporary folder
  • Quote

Post by skurudo » Tue Aug 11, 2015 8:01 am

pandabb wrote: Am i doing it right? Is my basedir template still secured compared to the other templates?
Thanks!
Basedir ->

Code: Select all

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

pandabb
Posts: 192
Joined: Sat Aug 08, 2015 3:03 am

Re: Wordpress Missing Temporary folder
  • Quote

Post by pandabb » Tue Aug 11, 2015 11:11 am

Thanks

is the code below correct?

Code: Select all

 
        AllowOverride All
        Options +Includes -Indexes +ExecCGI
php_admin_value open_basedir %docroot%:%home%/%user%/tmp
php_admin_value upload_tmp_dir %home%/%user%/tmp
php_admin_value session.save_path %home%/%user%/tmp
php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -f info@%domain%"
 
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: Wordpress Missing Temporary folder
  • Quote

Post by skurudo » Tue Aug 11, 2015 9:29 pm

pandabb wrote: is the code below correct?
Yep, I quoted this before.

PS: one more time - it's for _templates_ only, not for config.
Top

pandabb
Posts: 192
Joined: Sat Aug 08, 2015 3:03 am

Re: Wordpress Missing Temporary folder
  • Quote

Post by pandabb » Tue Aug 11, 2015 10:10 pm

copy that .tpl

ty sir
Top


Post Reply
  • Print view

14 posts
  • 1
  • 2
  • Next

Return to “General Discussion”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password