Oh, I missed this reply, so I did not know the CLI commands in this direction you replied to me.
I deleted the domain in my VPS also database connected to it and started to install from scratch.
I also realised the "path/to/moodlecode" as you referred that mean the code I
download from Moodle.org and
upload to the place in server not exactly the folder "moodlecode" as I thought.
I tried these directions form
https://docs.moodle.org/400/en/Installing_Moodle
- Add domain to vps, it's automaticly located in default ~/home/ and it has folder ~/home/domain.com/public_html
Create new blank database.
mkdir /home/domain.com/moodledata
chmod 0777 /home/domain.com/moodledata
Then
download Moodle from moodle.org to my computer and up to ~/home/domain.com/public_html through SFTP
I use CLI to unzip then move all folders and files in 'moodle' folder to ~/home/domain.com/public_html/
I delete the empty 'moodle' folder.
chown -R root /home/domain.com/public_html/
chmod -R 0755 /home/domain.com/public_html/
chown apache /home/domain.com/public_html/
cd /home/domain.com/public_html/admin/cli
sudo -u apache /usr/bin/php install.php
I type apache 2 CLI command above because my VPS set Centos with Nginx
It take 2 minutest to install, while that it ask me to put some infomation and I answer:
Database: localhost,
mariadb, dabasenam, databaseUser, Password
Website address, I type a subdomain like this
http://abc.domain.com (it nameservered in cloud flare that I turn off DNS proxy mode already)
Moodledata: /home/domain.com/moodledata
Email and passowrd of admin
I skiped Database port and Unix rocket because I dont know.
After the terminal tell me install successed then I did one more CLI command bellow
chown -R root /home/domain.com/public_html/
Then I go to browser to access the subdomain on the address bar, it shows me a blank page, nothing to click.
Could you please tell me what to do next or did I do something wrong installing?