Changes between Version 5 and Version 6 of moodlelab2024/Adding-Moodle-OVA-File
- Timestamp:
- Jan 2, 2025, 5:27:15 AM (3 weeks ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
moodlelab2024/Adding-Moodle-OVA-File
v5 v6 45 45 ==== **5. Find the VM IP Address**: 46 46 1. Inside the VM, type: 47 ```bash47 {{{ 48 48 ip addr 49 ```49 }}} 50 50 2. Note the IP address (e.g., `192.168.1.10`). 51 51 … … 69 69 `/private/etc/hosts` 70 70 2. Open a terminal and edit the file: 71 ```bash71 {{{ 72 72 sudo nano /private/etc/hosts 73 ```73 }}} 74 74 3. Add: 75 75 ``` … … 81 81 `/etc/hosts` 82 82 2. Edit the file with: 83 ```bash83 {{{ 84 84 sudo nano /etc/hosts 85 ```85 }}} 86 86 3. Add: 87 87 ``` … … 114 114 115 115 Verify nginx and php-fpm services are running: 116 ``` bash116 {{{ 117 117 rc-service nginx restart 118 118 rc-service php-fpm82 restart 119 ``` 119 }}} 120 120 Ensure proper permissions for `moodledata:` 121 ``` bash121 {{{ 122 122 123 123 chmod -R 777 /var/www/moodledata 124 ``` 124 }}} 125 125 Error Messages: 126 126 127 127 Check logs: 128 ``` bash 128 {{{ 129 129 130 130 tail -f /var/log/nginx/error.log 131 ``` 131 }}} 132 132 133 133 Renew DHCP Lease on Alpine Linux 134 ``` bash 134 {{{ 135 135 /etc/init.d/networking restart 136 ``` 136 }}} 137 137 then follow [Step 5](https://github.com/LEARN-LK/lms/blob/master/Practice-Moodle-VirtualBox.md#5-find-the-vm-ip-address) 138 138 … … 141 141 Edit config.php in the Moodle directory: 142 142 // Add these lines at the end of config.php: 143 ``` bash143 {{{ 144 144 @error_reporting(E_ALL | E_STRICT); 145 145 @ini_set('display_errors', '1'); 146 146 $CFG->debug = (E_ALL | E_STRICT); 147 147 $CFG->debugdisplay = 1; 148 ``` 148 }}} 149 149 150 150 ==== 1. Update PHP-FPM User and Group