Changes between Version 21 and Version 22 of Csle2022/Agenda/databaseandweb
- Timestamp:
- Nov 30, 2022, 6:59:12 AM (2 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Csle2022/Agenda/databaseandweb
v21 v22 180 180 First you need to create a appropriate directory structure for each website hosted under each domain. By default root web directory in a Ubuntu system will be /var/www/html. For our setup we will use below directory structure for each site. 181 181 182 web site for domain 1 - /var/www/ your_domain_1/public_html183 184 web site for domain 2 - /var/www/ your_domain_2/public_html185 186 web site for domain 3 - /var/www/ your_domain_3/public_html182 web site for domain 1 - /var/www/web.your_domain.com/public_html 183 184 web site for domain 2 - /var/www/wp.your_domain.com/public_html 185 186 web site for domain 3 - /var/www/lms.your_domain.com/public_html 187 187 188 188 In our example we hope to create three subdomains called web,wp and lms. So the full domain names will be web.your_domain.com, wp.your_domain.com and lms.your_domain.com respectively. … … 190 190 191 191 {{{ 192 sudo mkdir -p /var/www/web.your_domain /public_html193 sudo mkdir -p /var/www/wp.your_domain /public_html194 sudo mkdir -p /var/www/lms.your_domain /public_html192 sudo mkdir -p /var/www/web.your_domain.com/public_html 193 sudo mkdir -p /var/www/wp.your_domain.com/public_html 194 sudo mkdir -p /var/www/lms.your_domain.com/public_html 195 195 }}} 196 196 … … 576 576 }}} 577 577 578 Note: You don't need to download the Moodle since we have already downloaded it for you. You can locate it in /opt/softwares directory. 579 580 // 578 581 Then let's download the Moodle using Git repository. 579 582 … … 597 600 }}} 598 601 602 // 603 599 604 Copy the directory with the Moodle repository into the /var/www/lms.your_domain.com/public_html directory. Then, modify the new Moodle directory’s permissions to grant read, execute, and write access to any user. 600 605 601 606 {{{ 602 sudo cp -R /opt/ moodle/* /var/www/lms.your_domain.com/public_html607 sudo cp -R /opt/softwares/moodle/* /var/www/lms.your_domain.com/public_html 603 608 sudo chmod -R 0777 /var/www/lms.your_domain.com/public_html 604 609 }}}