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 Web Server
  • Search

bug report: wrong ownership for public_html folder when creating website

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Locked
  • Print view
Advanced search
5 posts • Page 1 of 1
baijianpeng
Posts: 301
Joined: Tue Dec 22, 2015 2:06 pm

bug report: wrong ownership for public_html folder when creating website

Post by baijianpeng » Thu May 19, 2016 11:55 pm

Today I made a test on fresh installation of CentOS 7 64-bit minimal and VestaCP, on my Virtualbox machine.

Steps to reproduce this issue:

1. installation of VestaCP

2. I created a new website via VestaCP web panel. create a new database for this website.

3. uploaded the Joomla 3.5.1 core installation package to the public_html folder of that domain via FTP.

4. Unzip this package (zip format) via SSH (unzip command).

5. Visit that domain in browser, I saw the "install Joomla" wizard.

6. input required information, go next and next.

7. on the FINAL step of Joomla installation, there is a button "delete the installation folder", if clicked , got "can not delete the installation folder" warning.


Yes, this is the bug I want to report. I think VestaCP should allow me to delete that folder.

How to fix?

I learned this from this topic: http://forum.vestacp.com/viewtopic.php?f=11&t=11418

Just run this command ( replace "admin" with your username, and "gate.com" with your domain) :

Code: Select all

# chown -R admin:admin /home/admin/web/gate.com/public_html
Then click that button again, you will be told it was deleted successfully.

I think this is a bug of VestaCP. My suggestion: When creating a new website, VestaCP should AUTOMATICALLY assign correct ownership and permission to related folder of that domain.

Thank you.
Top

skamasle
Collaborator
Posts: 592
Joined: Mon Feb 29, 2016 6:36 pm

Re: bug report: wrong ownership for public_html folder when creating website

Post by skamasle » Fri May 20, 2016 7:06 am

Hi

Here:

4. Unzip this package (zip format) via SSH (unzip command).

What user you use to connect to SSH ?

If you connect whit user root, and unzip, all extracted files was owened by user root, because root user unzip it

So, not is vesta bug, you unzip whit wrong user, you need connect to ssh whit user admin, and unzip your files whit user admin.
Top

baijianpeng
Posts: 301
Joined: Tue Dec 22, 2015 2:06 pm

Re: bug report: wrong ownership for public_html folder when creating website

Post by baijianpeng » Fri May 20, 2016 9:40 am

I connected SSH with "root" user of CentOS.

You think I should unzip it with "admin" user of VestaCP?

Ok, maybe this is a problem. I will test again.
Top

baijianpeng
Posts: 301
Joined: Tue Dec 22, 2015 2:06 pm

Re: bug report: wrong ownership for public_html folder when creating website

Post by baijianpeng » Fri May 20, 2016 10:19 am

Well, my new test proves that there is no problem about folder ownership/permission when creating website.

I was wrong.

When I unzip the installation package with the extraction tool uploaded by FTP, I can delete the "installation" folder after installing Joomla.

Thank you.

Please mark this topic as "solved".
Top

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

Re: bug report: wrong ownership for public_html folder when creating website

Post by skurudo » Fri May 20, 2016 10:31 am

baijianpeng wrote:Please mark this topic as "solved".
Ok, solved.
https://github.com/serghey-rodin/vesta/issues/694
Top


Locked
  • Print view

5 posts • Page 1 of 1

Return to “Web Server”



  • 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