Changes between Version 21 and Version 22 of Csle2022/Agenda/databaseandweb


Ignore:
Timestamp:
Nov 30, 2022, 6:59:12 AM (2 years ago)
Author:
admin
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Csle2022/Agenda/databaseandweb

    v21 v22  
    180180First 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.
    181181
    182 web site for domain 1 - /var/www/your_domain_1/public_html
    183 
    184 web site for domain 2 - /var/www/your_domain_2/public_html
    185 
    186 web site for domain 3 - /var/www/your_domain_3/public_html
     182web site for domain 1 - /var/www/web.your_domain.com/public_html
     183
     184web site for domain 2 - /var/www/wp.your_domain.com/public_html
     185
     186web site for domain 3 - /var/www/lms.your_domain.com/public_html
    187187
    188188In 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.
     
    190190
    191191{{{
    192 sudo mkdir -p /var/www/web.your_domain/public_html
    193 sudo mkdir -p /var/www/wp.your_domain/public_html
    194 sudo mkdir -p /var/www/lms.your_domain/public_html
     192sudo mkdir -p /var/www/web.your_domain.com/public_html
     193sudo mkdir -p /var/www/wp.your_domain.com/public_html
     194sudo mkdir -p /var/www/lms.your_domain.com/public_html
    195195}}}
    196196
     
    576576}}}
    577577
     578Note: 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//
    578581Then let's download the Moodle using Git repository.
    579582
     
    597600}}}
    598601
     602//
     603
    599604Copy 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.
    600605
    601606{{{
    602  sudo cp -R /opt/moodle/* /var/www/lms.your_domain.com/public_html
     607 sudo cp -R /opt/softwares/moodle/* /var/www/lms.your_domain.com/public_html
    603608 sudo chmod -R 0777 /var/www/lms.your_domain.com/public_html
    604609}}}