WordPress - fast installation
-
- Posts: 13
- Joined: Wed Feb 03, 2021 10:01 am
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.
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.
-
- Posts: 13
- Joined: Wed Feb 03, 2021 10:01 am
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.
export VESTA=/usr/local/vesta
Then, rerun the code. I have the reason is related to ./func/main.php.
Is it possible to run it with a user instead of root? I tried but it requires root to execute this script.dpeca wrote: ↑Fri Jan 08, 2021 11:22 am In SSH, as root, type:
Warning: it will completely empty your public_html/ folderCode: Select all
v-install-wordpreess yourdomain.com
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.
- myVesta
- Site Admin
- Posts: 908
- Joined: Fri Jun 19, 2020 9:59 am
- Has thanked: 8 times
- Been thanked: 6 times
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?dpeca wrote: ↑Wed Aug 11, 2021 10:19 amv-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.
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.