Page 1 of 2

WordPress - fast installation

Posted: Thu Jan 07, 2021 2:40 am
by T4B
hey, how can I install WordPress fast like softaculous any freeway?

Re: WordPress - install fast

Posted: Fri Jan 08, 2021 11:22 am
by myVesta
In SSH, as root, type:

Code: Select all

v-install-wordpreess yourdomain.com
Warning: it will completely empty your public_html/ folder

Re: WordPress - install fast

Posted: Thu Mar 11, 2021 10:15 am
by absolutemusik
For this command, it is run by root. I have run something like:
v-install-wordpress mynewdomain.abc

It returns:

Domain doesn't exist
/usr/local/vesta/bin/v-search-domain-owner: line 17: /func/main.sh: No such file or directory
/usr/local/vesta/bin/v-search-domain-owner: line 24: check_args: command not found
./v-install-wordpress: line 32: check_result: command not found
basenmae: missing operand
Try 'basename --help' for more information.
cat /usr/local/vesta/data/user//user.conf: No such file or directory

I think it is abnormal to be /usr/local/data/user//user.conf -> missing the default user admin???
Also, I am thinking the command should be run by the admin user. Does it right? So, I have to chmod to 777 or something like changing user / group.

Please suggest. Thanks in advance.

Re: WordPress - install fast

Posted: Thu Mar 11, 2021 5:26 pm
by absolutemusik
I have found the solution by reading the coding.

export VESTA=/usr/local/vesta

Then, rerun the code. I have the reason is related to ./func/main.php.

Re: WordPress - install fast

Posted: Thu Mar 11, 2021 8:38 pm
by myVesta

Re: WordPress - install fast

Posted: Tue Aug 10, 2021 5:22 pm
by tienloc1
dpeca wrote: Fri Jan 08, 2021 11:22 am In SSH, as root, type:

Code: Select all

v-install-wordpreess yourdomain.com
Warning: it will completely empty your public_html/ folder
Is it possible to run it with a user instead of root? I tried but it requires root to execute this script.

Re: WordPress - install fast

Posted: Tue Aug 10, 2021 8:04 pm
by myVesta
tienloc1 wrote: Tue Aug 10, 2021 5:22 pm Is it possible to run it with a user instead of root? I tried but it requires root to execute this script.
Unfortunately, no.
root is required, for now.

Re: WordPress - install fast

Posted: Wed Aug 11, 2021 5:30 am
by tienloc1
dpeca wrote: Tue Aug 10, 2021 8:04 pm Unfortunately, no.
root is required, for now.
I hope we can have an option to enable it for the users soon, thank you so much for your very quick update. May I will do it manually with wp-cli instead.

Re: WordPress - install fast

Posted: Wed Aug 11, 2021 10:19 am
by myVesta
tienloc1 wrote: Wed Aug 11, 2021 5:30 am
dpeca wrote: Tue Aug 10, 2021 8:04 pm Unfortunately, no.
root is required, for now.
I hope we can have an option to enable it for the users soon, thank you so much for your very quick update. May I will do it manually with wp-cli instead.
v-install-wordpress uses wp-cli itself, so yes, you can use wp-cli - https://github.com/myvesta/vesta/blob/m ... #L109-L114
But here is the catch - you can't create new database as non-root user.

Re: WordPress - install fast

Posted: Wed Aug 11, 2021 10:33 am
by tienloc1
dpeca wrote: Wed Aug 11, 2021 10:19 am
tienloc1 wrote: Wed Aug 11, 2021 5:30 am
dpeca wrote: Tue Aug 10, 2021 8:04 pm Unfortunately, no.
root is required, for now.
I hope we can have an option to enable it for the users soon, thank you so much for your very quick update. May I will do it manually with wp-cli instead.
v-install-wordpress uses wp-cli itself, so yes, you can use wp-cli - https://github.com/myvesta/vesta/blob/m ... #L109-L114
But here is the catch - you can't create new database as non-root user.
Ohh, thank you so much for your information, I just have a doubt: when creating a WordPress site with v-install-wordpress, the file owner will be root or the users?

I have:

root
- site1.com
user1
- site1.com
- site2.com

Then if the root creates a WordPress site for the user1 then do I need to change the file permission or not? I checked it and I can see the file owner have difference own id and group id, but I still want to hear your confirmation.