Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| lde-for-ubuntu [2025/12/08 09:02] – [Installing Core Dependencies] kkaragoz | lde-for-ubuntu [2025/12/08 09:48] (current) – [Installing PHP and Required Modules] kkaragoz | ||
|---|---|---|---|
| Line 21: | Line 21: | ||
| <code bash> | <code bash> | ||
| - | sudo apt install -y php8.4 php8.4-fpm php8.4-cli php8.4-gd php8.4-mbstring php8.4-xml php8.4-zip php8.4-intl | + | sudo apt install -y php8.4 php8.4-fpm php8.4-cli php8.4-gd php8.4-mbstring php8.4-xml php8.4-zip php8.4-intl |
| Line 93: | Line 93: | ||
| </ | </ | ||
| - | ==== Test the Connectivity | + | ==== Testing MariaDB |
| <code bash> | <code bash> | ||
| mysql -u root -pTypeThePasswordThatYouSet | mysql -u root -pTypeThePasswordThatYouSet | ||
| Line 116: | Line 116: | ||
| <code mysql> | <code mysql> | ||
| MariaDB [(none)]> | MariaDB [(none)]> | ||
| + | </ | ||
| + | |||
| + | If MariaDB is not running, you can start the service by following command: | ||
| + | <code bash> | ||
| + | sudo systemctl start mariadb | ||
| + | </ | ||
| + | and also enable the service by: | ||
| + | <code bash> | ||
| + | sudo systemctl enable mariadb | ||
| + | </ | ||
| + | |||
| + | For and additional check, you can run the following command: | ||
| + | <code bash> | ||
| + | sudo mysqladmin version | ||
| + | </ | ||
| + | You should receive a response like: | ||
| + | <code bash> | ||
| + | mysqladmin | ||
| + | Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others. | ||
| + | |||
| + | Server version | ||
| + | Protocol version | ||
| + | Connection | ||
| + | UNIX socket | ||
| + | Uptime: | ||
| + | |||
| + | Threads: 1 Questions: 74 Slow queries: 0 Opens: 33 Open tables: 26 Queries per second avg: 0.031 | ||
| + | </ | ||
| + | |||
| + | ===== Composer Installation ===== | ||
| + | Composer has an awesome description and installation guide on its webpage. You can use the following link: [[https:// | ||
| + | |||
| + | It is better to go your home directory first: | ||
| + | <code bash> | ||
| + | cd ~ | ||
| + | </ | ||
| + | |||
| + | == 1. Download the terminal script == | ||
| + | <code bash> | ||
| + | php -r " | ||
| + | </ | ||
| + | |||
| + | == 2. Check the hash file == | ||
| + | <code bash> | ||
| + | php -r "if (hash_file(' | ||
| + | </ | ||
| + | It should return the following message: **Installer verified** | ||
| + | == 3. Run the Script == | ||
| + | <code bash> | ||
| + | php composer-setup.php | ||
| + | </ | ||
| + | |||
| + | It should return the following message: | ||
| + | |||
| + | <code bash> | ||
| + | All settings correct for using Composer | ||
| + | Downloading... | ||
| + | |||
| + | Composer (version 2.9.2) successfully installed to: / | ||
| + | Use it: php composer.phar | ||
| + | </ | ||
| + | |||
| + | |||
| + | == 4. Delete (Unlink) the File == | ||
| + | <code bash> | ||
| + | php -r " | ||
| + | </ | ||
| + | |||
| + | == 5. Add it to the PATH == | ||
| + | Then you can add the composer into your PATH to access the composer with just running `composer` command from any directory: | ||
| + | <code bash> | ||
| + | sudo mv composer.phar / | ||
| + | </ | ||
| + | |||
| + | == 6. Test the Installation == | ||
| + | <code bash> | ||
| + | composer --version | ||
| + | </ | ||
| + | |||
| + | You need to see something similar like: | ||
| + | <code bash> | ||
| + | Composer version 2.9.2 2025-11-19 21:57:25 | ||
| + | PHP version 8.4.15 (/ | ||
| + | Run the " | ||
| </ | </ | ||
