Apache Basics Tutorial | How To Install and Configure Apache2

preview_player
Показать описание
Apache remains the most popular software for publishing websites on the Internet. This highly configurable, stable server is capable of handling the web serving needs of small and large sites alike. In this tutorial, we'll cover installing Apache2 from scratch, and go over some of the most common web server commands and configurations.

Chapters:
0:00 - Intro
0:38 - Getting Started
1:08 - Connecting to Your Linode
1:33 - Updating the System
2:20 - Setting the hostname
5:03 - Installing Apache2
7:32 - Installing Modules
9:55 - Enable or Disable Modules
7:25 - Setting up External Storage
12:38 - Enable or Disable Sites
14:00 - Setting up a New Site
15:50 - Hosting Additional Sites
20:00 - Outro

#Linode #Apache2 #WebServer #AlternativeCloud
Product: Linode, Apache2, Web Servers; Jay LaCroix;
Рекомендации по теме
Комментарии
Автор

I don't do much of Linux-y stuff but it is always nice to see a fellow nano user.

muizzsiddique
Автор

Some commands I wrote down from the video:

apt install apache2 apache2-doc apache2-utils (apache installation)

systemctl status apache2
systemctl enable apache2 (if auto restart disabled for some reason)
systemctl start apache2
systemctl restart apache2
systemctl reload apache2 (more graceful than restart, but not always an option)

apt search libapache2-mod (list all apache modules possible for installation)
apt install libapache2-mod-python (example python module installation)
apt install libapache2-mod-perl2 (example perl)

a2enmod (enable an installed module)
a2dismod (disable an enabled module)

name based virtual hosts (multiple websites on the same server)
a2ensite (enable a web site)
a2dissite (disable a web site)

config files for a given virtual host
create directories listed in "yourwebsite.conf" (apache doesn't create directories)
mkdir -p /full/path/listed/in/conf

a2ensite

drdeepee
Автор

thank you so much for this!
being a beginner, i've failed for ages to find a good explanation of Apache2 and its configuration, but this is exactly what i needed!
thanks again!

rajat
Автор

Complete and understandable. I needed some grounded baisis and this helped

rob
Автор

your videos is been so helpful. thank you for all you have done so far.

ztopnigltd
Автор

Great comprehensive and simply explained video

oppenheimjm
Автор

This was very awesome. Will be trying this out! More of these please! :D

taneliharkonen
Автор

Thank you! This is exactly what I was looking for, super helpful

whatamievendoing
Автор

I appreciate this. Part of the excellent support associated with Linode.

qeithwreid
Автор

Very nice vide. you explained many commands and its usage. Waiting for more videos from you.
Please make a video of apache2 proxy, pointing to different ports, etc..

prabhur
Автор

Thanks for posting this video. It was very helpful. I have really enjoyed all of your videos.

dibtqui
Автор

Compared to the other tutorials out there, this is amazing. Please make more Linux tutorials or where to start for going about securing your web server/site.

derinicktheseven
Автор

This has really helped me understand what the bare minimum is, now i sort of see how i can make my server! thanks.

DannyLyriCa
Автор

I can't connect to my apache2 server from other networks. Running on a Raspberry Pi. Port forwarding enabled.

Tijme
Автор

Is apache easier than django? I happen to know Python, so what would the answer be for someone like me vs someone who doesn't know python either?

UndyingEDM
Автор

Very concise.
Used it try set up my first remotely hosted website. Previously I had followed a different tutorial that ran a page through a gunicorn service. I thought this would be even simpler. Unfortunately the config file does not seem to redirect to my domain name. There must be more to it then what is shown in this video. Kinda frustrating there is so little reliable material to find on this subject.

JasonRobards
Автор

Nice tutorial 👍. Can someone tell me: i added free SSL certificate with let's encrypt so it created a new ssl default conf file in "sites-available", then i can delete the standard one? And also should i add some PHP config lines if it already works fine?

zakhariihusar
Автор

I am new to web servers and "have to deal with" PERL, so I guess I won the "jackpot". Oh dear. I had a smile when you installed the PERL module ;-) as of 2021, too. @9:37 like a boss!!!

I am still confused on where to edit conf files since there are so many.
- Shall I do anything with the *envvars* file in /etc ? Does this file provide the environment variables like *${APACHE_LOG_DIR}* ? Shall I set those variables somewhere or just delete the *${APACHE_LOG_DIR}* entry and hack in the absolute directory into *apache2.conf* instead? (best practice question)

Eurobunker
Автор

Thank you soooo much for the Perl config example @16:36
May I humbly ask You how You deal with "Session Management" in Your way of adding Perl? Is it the CGI-way? Which module takes care of session variables in Your configuration?
I have to deal with the "ASP-Classic" (the 90s) way using "mod_perl". Do You know the difference?

I inherited the following configuration:

<IfModule mod_perl>
PerlSwitches -U

<IfModule mime_module>
AddType text/html .pl
</IfModule>

<FilesMatch ".+\.pl$">
SetHandler perl-script
PerlResponseHandler ModPerl::Registry
Options +ExecCGI
PerlOptions +ParseHeaders
</FilesMatch>
</IfModule>

- any opinion about the difference or a comparison?
Anyone?

Additional question: is
*Options +ExecCGI*
the same as
*Options ExecCGI*
?

Eurobunker
Автор

Are there any books that I could use to learn apache ? I am having a hard time locating resources for learning it as a beginner.

mr.onelife
visit shbcf.ru