Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| en:lamp [2016/12/20 13:06] – [Editing urls to go to folders (alias)] Domperss | en:lamp [2021/12/03 18:19] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 70: | Line 70: | ||
| ==== Rights on www ==== | ==== Rights on www ==== | ||
| - | Several | + | There are several |
| - | The easiest and fastest way is to assign the rights of this folder to the www-data group, and to put lambda in the www-data group. | + | The easiest and fastest way is to assign the rights of this folder to the www-data group, and then put lambda in that www-data group. |
| Sudo adduser lambda www-data | Sudo adduser lambda www-data | ||
| Line 81: | Line 81: | ||
| | | ||
| | | ||
| - | Both are similar. | + | Both commands do the job! |
| </ | </ | ||
| - | Restart the session so that the rights | + | Restart the session so that Apache can take the rights into account for the current user. |
| <WRAP center round important 60%> | <WRAP center round important 60%> | ||
| - | It's better to let the www-data group manage the rights, | + | It's better to let the www-data group manage the rights, |
| - | Security would probably like that www-data | + | From a security perspective, |
| </ | </ | ||
| - | If some cms cause problems, the following command sequence on the folder in question can reassign the rights to www-data and allow them to be resolved(to run as root): | + | If some cms causes |
| chgrp -R www-data " | chgrp -R www-data " | ||
| chown -R www-data " | chown -R www-data " | ||
| Line 98: | Line 98: | ||
| | | ||
| - | '' | + | '' |
| ==== Proxy ==== | ==== Proxy ==== | ||
| Some services are accessible via specific ports. This is what [[pad|Etherpad]] does for example: when installed, it is accessible at the address '' | Some services are accessible via specific ports. This is what [[pad|Etherpad]] does for example: when installed, it is accessible at the address '' | ||
| - | To be able to access it via the web address '' | + | To be able to access it via the web address '' |
| Begin by activating the proxy modules: | Begin by activating the proxy modules: | ||
| | | ||
| - | Then add this kind of information in ''/ | + | Then add this information in ''/ |
| < | < | ||
| < | < | ||
| Line 129: | Line 129: | ||
| | | ||
| | | ||
| - | Your etherpad should be accessible at the right address! | + | Your etherpad should |
| ===== Mysql ===== | ===== Mysql ===== | ||
| ==== Phpmyadmin ==== | ==== Phpmyadmin ==== | ||
| === Installation === | === Installation === | ||
| - | Phpmyadmin is considered a potential security | + | Phpmyadmin is considered |
| + | |||
| + | In short, despite these considerations, | ||
| + | |||
| + | **OBS: MySQL Workbench would be a better solution, | ||
| - | In short, despite these considerations, | ||
| Sudo apt-get install phpmyadmin | Sudo apt-get install phpmyadmin | ||
| - | Select " | + | Select " |
| < | < | ||
| Line 146: | Line 149: | ||
| This is the root password. | This is the root password. | ||
| | | ||
| - | Choose | + | Choose the database |
| === Web location === | === Web location === | ||
| - | By default, phpmyadmin is accessible at '' | + | By default, phpmyadmin is accessible at '' |
| | | ||
| For example: | For example: | ||
| Line 160: | Line 163: | ||
| <WRAP center round important 60%> | <WRAP center round important 60%> | ||
| Having a login other than " | Having a login other than " | ||
| + | |||
| + | **OBS: It's pretty bad to use ROOT as the database login. A better way is to make a user and select the rights accordingly!!** | ||
| </ | </ | ||
| === Importing a database === | === Importing a database === | ||
| - | To import a database via phpmyadmin(eg forum forum, saved before), you must create the database, associate it with a user who will have access | + | To import a database via phpmyadmin(for ex: forum backups |
| - | If the base is too large, there will be an error. Change | + | If the database |
| ==== Various Mysql commands ==== | ==== Various Mysql commands ==== | ||
| Line 179: | Line 184: | ||
| | | ||
| - | 3) Create a user and grant him access rights to the database without a password but only locally: | + | 3) Create a user and grant him access rights to the database without a password |
| | | ||





