Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| osdse [2025/03/20 15:11] – [Website & Data Viewer] david | osdse [2025/04/07 15:55] (current) – [Apache] david | ||
|---|---|---|---|
| Line 60: | Line 60: | ||
| ===== Python ===== | ===== Python ===== | ||
| If you need multiple versions/ | If you need multiple versions/ | ||
| + | |||
| + | ==== Basic (one python) ==== | ||
| Ubuntu searching python versions | Ubuntu searching python versions | ||
| Line 83: | Line 85: | ||
| </ | </ | ||
| + | ==== pyenv (multiple python versions) ==== | ||
| + | |||
| + | Prerequisite for '' | ||
| + | <code bash> | ||
| + | sudo apt-get install build-essential | ||
| + | </ | ||
| + | |||
| + | Install '' | ||
| + | <code bash> | ||
| + | curl https:// | ||
| + | </ | ||
| + | |||
| + | Make the changes to '' | ||
| + | |||
| + | Then install the python version you wish to have: | ||
| + | <code bash> | ||
| + | pyenv install 3.11 | ||
| + | </ | ||
| + | |||
| + | View python versions: | ||
| + | <code bash> | ||
| + | pyenv versions | ||
| + | </ | ||
| ===== PostgreSQL ===== | ===== PostgreSQL ===== | ||
| Line 123: | Line 148: | ||
| ===== Apache ===== | ===== Apache ===== | ||
| - | See: [[server_configuration: | + | Also see: |
| + | * [[server_configuration: | ||
| + | * [[osdse: | ||
| + | Configuration commands: | ||
| <code bash> | <code bash> | ||
| sudo apt-cache search apache2 | grep php | sudo apt-cache search apache2 | grep php | ||
| Line 169: | Line 197: | ||
| </ | </ | ||
| - | <code html> | + | <file html index.html> |
| < | < | ||
| <html lang=" | <html lang=" | ||
| Line 184: | Line 212: | ||
| < | < | ||
| <ul> | <ul> | ||
| - | < | + | < |
| < | < | ||
| </ul> | </ul> | ||
| Line 190: | Line 218: | ||
| </ | </ | ||
| - | </code> | + | </file> |
| Adminer User on DB: | Adminer User on DB: | ||
| Line 206: | Line 234: | ||
| GRANT pg_read_all_data TO simple_shop_adminer_reader; | GRANT pg_read_all_data TO simple_shop_adminer_reader; | ||
| </ | </ | ||
| + | |||
| + | Adminer: | ||
| + | <code bash> | ||
| + | sudo mkdir -p sample_data_explore | ||
| + | cd sample_data_explore | ||
| + | sudo wget https:// | ||
| + | sudo vi index.php | ||
| + | </ | ||
| + | |||
| + | <file php index.php> | ||
| + | <?php | ||
| + | function adminer_object() { | ||
| + | |||
| + | class AdminerSoftware extends Adminer { | ||
| + | |||
| + | function name() { | ||
| + | // custom name in title and heading | ||
| + | return ' | ||
| + | } | ||
| + | |||
| + | function database() { | ||
| + | // database name, will be escaped by Adminer | ||
| + | return ' | ||
| + | } | ||
| + | |||
| + | function loginForm() { | ||
| + | echo "< | ||
| + | echo $this-> | ||
| + | echo $this-> | ||
| + | echo "</ | ||
| + | echo "< | ||
| + | echo checkbox(" | ||
| + | } | ||
| + | |||
| + | } | ||
| + | |||
| + | return new AdminerSoftware; | ||
| + | } | ||
| + | |||
| + | include ' | ||
| + | |||
| + | </ | ||
| ====== Junk ====== | ====== Junk ====== | ||