WordPress - install fast

User avatar
T4B
Posts: 100
Joined: Sat Jul 11, 2020 9:44 am
WordPress - install fast

Post by T4B »

hey, how can I install WordPress fast like softaculous any freeway?

User avatar
dpeca
Site Admin
Posts: 551
Joined: Fri Jun 19, 2020 9:59 am
Your location: Serbia, Niš and Belgrade
First name and last name: Predrag Damnjanović
Re: WordPress - install fast

Post by dpeca »

In SSH, as root, type:

Code: Select all

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

absolutemusik
Posts: 11
Joined: Wed Feb 03, 2021 10:01 am
Re: WordPress - install fast

Post 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.

absolutemusik
Posts: 11
Joined: Wed Feb 03, 2021 10:01 am
Re: WordPress - install fast

Post 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.

User avatar
dpeca
Site Admin
Posts: 551
Joined: Fri Jun 19, 2020 9:59 am
Your location: Serbia, Niš and Belgrade
First name and last name: Predrag Damnjanović
Re: WordPress - install fast

Post by dpeca »


tienloc1
Posts: 6
Joined: Sun Aug 08, 2021 9:58 pm
Re: WordPress - install fast

Post 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.

User avatar
dpeca
Site Admin
Posts: 551
Joined: Fri Jun 19, 2020 9:59 am
Your location: Serbia, Niš and Belgrade
First name and last name: Predrag Damnjanović
Re: WordPress - install fast

Post by dpeca »

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.

tienloc1
Posts: 6
Joined: Sun Aug 08, 2021 9:58 pm
Re: WordPress - install fast

Post 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.
Last edited by tienloc1 on Wed Aug 11, 2021 5:31 am, edited 1 time in total.

User avatar
dpeca
Site Admin
Posts: 551
Joined: Fri Jun 19, 2020 9:59 am
Your location: Serbia, Niš and Belgrade
First name and last name: Predrag Damnjanović
Re: WordPress - install fast

Post by dpeca »

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.

tienloc1
Posts: 6
Joined: Sun Aug 08, 2021 9:58 pm
Re: WordPress - install fast

Post 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.


Post Reply