#4 VPS - web server installation: apache2 php mysql phpmyadmin | Debian 8

Published: 14 June 2017
on channel: DKA-DEVELOP
9,469
112

#4 VPS - web server installation: apache2 php mysql phpmyadmin | Debian 8
Part four of buying and installing a cheap virtual server in Europe.

Hosting in Europe:
https://billing.time4vps.eu/?affid=826

Utility for connecting via SSH in Windows
https://www.chiark.greenend.org.uk/~s...

Commands to execute in the console (executed under root or the beginning of the sudo command):

************************************************************************
To paste into the console, use the keyboard shortcut: Ctrl+V or Ctrl+Insert
************************************************************************

1. /etc/apt/sources.list - file with repositories
Add two lines to the end of the file:
deb http://packages.dotdeb.org jessie all
deb-src http://packages.dotdeb.org jessie all
Download and install key:
wget https://www.dotdeb.org/dotdeb.gpg
apt-key add dotdeb.gpg
Update the local package cache:
apt-get update
or sudo apt-get update
2. Install web server packages:
apt-get install apache2 php php-mysql mysql-server phpmyadmin mcrypt php-mcrypt php-curl imagemagick
3. Passwords are not displayed when entered!
4. apt install libapache2-mod-php && phpenmod mcrypt && a2enmod ssl && a2enmod rewrite && service apache2 restart
5. Just in case:
a2enmod php7.0 && apt install php7.0-mbstring
6. Command to restart apache: service apache2 restart
7. Directory of the standard apache host: /var/www/html
8. Setting the owner and group recursively (nested files and directories)
chown -R dkanoroot:www-data .
dkanoroot - username
www-data - group, in this case the apache group
9. Setting rights to a directory and files recursively (nested files and directories):
chmod -R 770 *
Read more here:
http://linuxway.ru/pervye-shagi/koman...
10. Directory of virtual hosts apache:
/etc/apache2/sites-enabled/

Brief help on working in MC (Midnight Commander)
F4 file editing
F2 save file
F10 close file, or file manager
F9 switch to the top menu

Path to file with groups cd /etc/group
sudo su - command to elevate user rights, to install programs and edit files, as an administrator in Windows

Our platforms:
https://dreamtooz.ru
https://dreamclever.ru

Start: 0:11
Configuring a repository for Debian 8: 0:54
Installing a web server: 2:25
Checking operation: 5:09
Configuring rights to the directory /var/www/html/: 5:41
Checking php operation: 7:46


On this page of the site you can watch the video online #4 VPS - web server installation: apache2 php mysql phpmyadmin | Debian 8 with a duration of hours minute second in good quality, which was uploaded by the user DKA-DEVELOP 14 June 2017, share the link with friends and acquaintances, this video has already been watched 9,469 times on youtube and it was liked by 112 viewers. Enjoy your viewing!