Changes between Version 5 and Version 6 of moodlelab2024/Adding-Moodle-OVA-File


Ignore:
Timestamp:
Jan 2, 2025, 5:27:15 AM (3 weeks ago)
Author:
admin
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • moodlelab2024/Adding-Moodle-OVA-File

    v5 v6  
    4545==== **5. Find the VM IP Address**:
    46461. Inside the VM, type:
    47    ```bash
     47   {{{
    4848   ip addr
    49    ```
     49   }}}
    50502. Note the IP address (e.g., `192.168.1.10`).
    5151
     
    6969   `/private/etc/hosts`
    70702. Open a terminal and edit the file:
    71    ```bash
     71   {{{
    7272   sudo nano /private/etc/hosts
    73    ```
     73   }}}
    74743. Add:
    7575   ```
     
    8181   `/etc/hosts`
    82822. Edit the file with:
    83    ```bash
     83   {{{
    8484   sudo nano /etc/hosts
    85    ```
     85   }}}
    86863. Add:
    8787   ```
     
    114114
    115115Verify nginx and php-fpm services are running:
    116  ``` bash
     116 {{{
    117117rc-service nginx restart
    118118rc-service php-fpm82 restart
    119 ```
     119}}}
    120120Ensure proper permissions for `moodledata:`
    121  ``` bash
     121 {{{
    122122
    123123chmod -R 777 /var/www/moodledata
    124 ```
     124}}}
    125125Error Messages:
    126126
    127127Check logs:
    128 ``` bash
     128{{{
    129129
    130130tail -f /var/log/nginx/error.log
    131 ```
     131}}}
    132132
    133133Renew DHCP Lease on Alpine Linux
    134 ``` bash
     134{{{
    135135/etc/init.d/networking restart
    136 ```
     136}}}
    137137then follow [Step 5](https://github.com/LEARN-LK/lms/blob/master/Practice-Moodle-VirtualBox.md#5-find-the-vm-ip-address)
    138138
     
    141141Edit config.php in the Moodle directory:
    142142// Add these lines at the end of config.php:
    143  ``` bash
     143 {{{
    144144@error_reporting(E_ALL | E_STRICT);
    145145@ini_set('display_errors', '1');
    146146$CFG->debug = (E_ALL | E_STRICT);
    147147$CFG->debugdisplay = 1;
    148 ```
     148}}}
    149149
    150150==== 1. Update PHP-FPM User and Group