Page 1 of 1

bug report: wrong ownership for public_html folder when creating website

Posted: Thu May 19, 2016 11:55 pm
by baijianpeng
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.

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

Posted: Fri May 20, 2016 7:06 am
by skamasle
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.

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

Posted: Fri May 20, 2016 9:40 am
by baijianpeng
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.

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

Posted: Fri May 20, 2016 10:19 am
by baijianpeng
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".

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

Posted: Fri May 20, 2016 10:31 am
by skurudo
baijianpeng wrote:Please mark this topic as "solved".
Ok, solved.
https://github.com/serghey-rodin/vesta/issues/694