Uploaded January 2017 | Updated September 2026, 2 weeks ago
If you're interested in Python programming basics, you need to learn what Python Virtual Environments (Python virtualenvs) are:
-How to create a Python virtualenv (python 2 and python 3)
-How to use pip, the Python package manager, to:
-find Python libraries and packages
-install Python libraries and packages
-uninstall Python packages
-take a snapshot of current requirements
2:02 - Installing the Python virtual environments package
2:18 - What are Python virtual environments for?
3:45 - Containerization rant (jails, lxc, docker) and how it's similar to virtual environments
4:30 - What virtual environments are, on a practical level
5:31 - How to create a python virtual environment
7:46 - How to activate your Python virtualenv
8:57 - How to create a Python 3 virtualenv
9:37 - How to manage Python packages and libraries with pip, the Python package manager
9:44 - Use pip search to find packages
10:25 - Use pip to install a package into your Python virtualenv
13:42 - Upgrading Python virtualenv packages with pip
14:18 - How to uninstall Python packages from your virtualenv with pip
14:42 - How to deploy a Python application's libraries and packages with requirements.txt
15:42 - Installing a list of requirements from requirements.txt
16:09 - More on how to deploy an application in the real world (common problems)
17:06 - See which packages are currently installed in your Python virtualenv
17:21 - 'Freeze' your currently installed Python packages into a requirements file
17:56 - Basic tips for using Python virtualenvs with Git (.gitignore)
############################
Commands used in this video:
############################
apt-get install python-virtualenv
virtualenv venv
virtualenv -p python3 venv
source venv/bin/activate
pip search foobar
pip install foobar
pip install --upgrade foobar
pip uninstall foobar
pip install -r requirements.txt
################
Get More tutoriaLinux
################
Step-by-step project-based Linux course for beginners: udemy.com/course/hands-on-linux-self-hosted-wordpress-for-linux-beginners/?referralCode=19C0A7DEE2FD53C9C09D
Free Linux Sysadmin Course Playlist: youtube.com/playlist?list=PLtK75qxsQaMLZSo7KL-PmiRarU7hrpnwK
DigitalOcean referral link: https://m.do.co/c/0380a1db56a6
Patreon: patreon.com/tutorialinux
Official Site & e-mail list: tutorialinux.com
Twitter: twitter.com/tutorialinux
Facebook: facebook.com/tutorialinux
Podcast: kernelpanicpodcast.com
If you're interested in Python programming basics, you need to learn what Python Virtual Environments (Python virtualenvs) are:
-How to create a Python virtualenv (python 2 and python 3)
-How to use pip, the Python package manager, to:
-find Python libraries and packages
-install Python libraries and packages
-uninstall Python packages
-take a snapshot of current requirements
2:02 - Installing the Python virtual environments package
2:18 - What are Python virtual environments for?
3:45 - Containerization rant (jails, lxc, docker) and how it's similar to virtual environments
4:30 - What virtual environments are, on a practical level
5:31 - How to create a python virtual environment
7:46 - How to activate your Python virtualenv
8:57 - How to create a Python 3 virtualenv
9:37 - How to manage Python packages and libraries with pip, the Python package manager
9:44 - Use pip search to find packages
10:25 - Use pip to install a package into your Python virtualenv
13:42 - Upgrading Python virtualenv packages with pip
14:18 - How to uninstall Python packages from your virtualenv with pip
14:42 - How to deploy a Python application's libraries and packages with requirements.txt
15:42 - Installing a list of requirements from requirements.txt
16:09 - More on how to deploy an application in the real world (common problems)
17:06 - See which packages are currently installed in your Python virtualenv
17:21 - 'Freeze' your currently installed Python packages into a requirements file
17:56 - Basic tips for using Python virtualenvs with Git (.gitignore)
############################
Commands used in this video:
############################
apt-get install python-virtualenv
virtualenv venv
virtualenv -p python3 venv
source venv/bin/activate
pip search foobar
pip install foobar
pip install --upgrade foobar
pip uninstall foobar
pip install -r requirements.txt
################
Get More tutoriaLinux
################
Step-by-step project-based Linux course for beginners: udemy.com/course/hands-on-linux-self-hosted-wordpress-for-linux-beginners/?referralCode=19C0A7DEE2FD53C9C09D
Free Linux Sysadmin Course Playlist: youtube.com/playlist?list=PLtK75qxsQaMLZSo7KL-PmiRarU7hrpnwK
DigitalOcean referral link: https://m.do.co/c/0380a1db56a6
Patreon: patreon.com/tutorialinux
Official Site & e-mail list: tutorialinux.com
Twitter: twitter.com/tutorialinux
Facebook: facebook.com/tutorialinux
Podcast: kernelpanicpodcast.com









![Web Server Project 02 Setting up MySQL and PHP
Heres how to get your database and interpreter set up for hosting an application on the LAMP/LEMP stack (Linux / Apache/Nginx / MySQL / PHP).
This is the second of three videos about how to set up a webserver (and a WordPress blog or website on Linux). In this video, Ill show you how to install and configure a MySQL Database. Ill also show you how to set up PHP and php-fpm (our PHP interpreter and the fastcgi process manager) so that nginx can ask PHP to render pages with dynamic content for website visitors.
This video is quick-and-dirty no optimization, only the most basic security precautions, etc...but it should get you started.
Heres the nginx configuration file content for /etc/nginx/sites-available/{yoursite}:
server {
listen 80 default_server;
listen [::]:80 default_server ipv6only=on;
root /usr/share/nginx/html;
index index.php index.html index.htm;
server_name server_domain_name_or_IP;
location / {
try_files $uri $uri/ =404;
}
error_page 404 /404.html;
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
location ~ .php$ {
try_files $uri =404;
fastcgi_split_path_info ^(.+.php)(/.+)$;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
Full Linux Sysadmin Basics Playlist: https://www.youtube.com/playlist?list=PLtK75qxsQaMLZSo7KL-PmiRarU7hrpnwK
Check out my project-based Linux System Administration course (free sample videos): https://www.udemy.com/hands-on-linux-self-hosted-wordpress-for-linux-beginners/?couponCode=tl35
Patreon: https://www.patreon.com/tutorialinux
Official Site: https://tutorialinux.com/
Twitter: https://twitter.com/tutorialinux
Facebook: https://www.facebook.com/tutorialinux Web Server Project 02 Setting up MySQL and PHP](https://i.ytimg.com/vi/V5XyjbUsYE8/mqdefault.jpg)
