Apache Basics Tutorial | How To Install and Configure Apache2

  Рет қаралды 295,577

Akamai Developer

Akamai Developer

Күн бұрын

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
New to Cloud Computing? Get started here with a $100 credit → www.linode.com/lp/youtube-vie...
Read the docs for more Apache 2 tips→ www.linode.com/docs/guides/we...
Learn more about using Apache 2 → www.linode.com/docs/guides/we...
Subscribe to get notified of new episodes as they come out → kzbin.info?sub_co...
#Linode #Apache2 #WebServer #AlternativeCloud
Product: Linode, Apache2, Web Servers; Jay LaCroix;

Пікірлер: 70
@muizzsiddique
@muizzsiddique 2 жыл бұрын
I don't do much of Linux-y stuff but it is always nice to see a fellow nano user.
@drdeepee2503
@drdeepee2503 2 жыл бұрын
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) /etc/apache2/sites-available/"yourwebsite.conf": 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
@user-di4bt7qu2i
@user-di4bt7qu2i 2 жыл бұрын
Very helpful. Thanks!
@tukisam9092
@tukisam9092 Жыл бұрын
@samuelopoku-acheampong5601
@samuelopoku-acheampong5601 Жыл бұрын
I appreciate this work Thanks
@rob5393
@rob5393 2 жыл бұрын
Complete and understandable. I needed some grounded baisis and this helped
@taneliharkonen2463
@taneliharkonen2463 Жыл бұрын
This was very awesome. Will be trying this out! More of these please! :D
@whatamievendoing
@whatamievendoing 10 ай бұрын
Thank you! This is exactly what I was looking for, super helpful
@user-di4bt7qu2i
@user-di4bt7qu2i 2 жыл бұрын
Thanks for posting this video. It was very helpful. I have really enjoyed all of your videos.
@ztopnigltd2584
@ztopnigltd2584 Жыл бұрын
your videos is been so helpful. thank you for all you have done so far.
@rajat0610
@rajat0610 2 жыл бұрын
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!
@shadabmiya8391
@shadabmiya8391 Жыл бұрын
😊
@Vishisthpasvan
@Vishisthpasvan Жыл бұрын
😊😊
@DaveJohns61
@DaveJohns61 2 жыл бұрын
Awesome tutorial. Thanks.
@oppenheimjm
@oppenheimjm Жыл бұрын
Great comprehensive and simply explained video
@YummyGoodnight
@YummyGoodnight Жыл бұрын
Affa\ 00000
@qeithwreid7745
@qeithwreid7745 2 жыл бұрын
I appreciate this. Part of the excellent support associated with Linode.
@Eurobunker
@Eurobunker 2 жыл бұрын
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: PerlSwitches -U AddType text/html .pl SetHandler perl-script PerlResponseHandler ModPerl::Registry Options +ExecCGI PerlOptions +ParseHeaders - any opinion about the difference or a comparison? Anyone? Additional question: is *Options +ExecCGI* the same as *Options ExecCGI* ?
@mr.onelife5195
@mr.onelife5195 2 жыл бұрын
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.
@jacquesebot9382
@jacquesebot9382 4 ай бұрын
Thank you
@hamzazahir956
@hamzazahir956 2 жыл бұрын
thank you so much
@fernandoparrado4435
@fernandoparrado4435 2 жыл бұрын
Thanks You !
@prabhur764
@prabhur764 3 ай бұрын
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..
@Tijme
@Tijme 2 жыл бұрын
I can't connect to my apache2 server from other networks. Running on a Raspberry Pi. Port forwarding enabled.
@zakhariihusar6975
@zakhariihusar6975 Жыл бұрын
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?
@madkvideo
@madkvideo 11 ай бұрын
Jay is the man
@UndyingEDM
@UndyingEDM 7 ай бұрын
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?
@sumeetsmahajan
@sumeetsmahajan Жыл бұрын
Me a fan too :)
@Eurobunker
@Eurobunker 2 жыл бұрын
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)
@nicolal.1171
@nicolal.1171 3 жыл бұрын
Great job thx!
@PoojaGupta-nq6nh
@PoojaGupta-nq6nh 3 жыл бұрын
C0k 7
@aavalos163
@aavalos163 Жыл бұрын
I am following this tutorial and I still can't access my website thru the internet. I am getting an error message "Forbidden. You don't have permission to access this resource"
@JasonRobards2
@JasonRobards2 Жыл бұрын
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.
@JasonRobards2
@JasonRobards2 Жыл бұрын
It turns out... My Digital Ocean server has specific requirements on where to put the server files. DO has excellent tutorials, you just have to be smart enough to use them :)
@noweare1
@noweare1 Жыл бұрын
@@JasonRobards2 DO has some of the best tutorials. Nearly as good as this youtuber.
@hydro6527
@hydro6527 Жыл бұрын
Hi can you do a video on nginx and Apache on same server
@derinicktheseven477
@derinicktheseven477 2 жыл бұрын
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.
@mrafayshams3089
@mrafayshams3089 Жыл бұрын
I'm a complete beginner at this, therefore apologies for my questions. Can we host websites for free using Apache2? I'm an EE working on Embedded Linux based IoT applications. The linux based SBC recieves sensor data and saves the data in local files (for now). I want to use Apache2 to host a website that uses the sensor data saved on the SBC's root file system and displays it in a meaningful manner (graphs, etc). Can this be achieved with Apache2?
@astarte_xo8226
@astarte_xo8226 Жыл бұрын
Yes you can. You will also need a domain name which costs money but that is the only real expense if you self host.
@noweare1
@noweare1 Жыл бұрын
You can but unless you know how to secure your pc against hackers I would not do it that way. You'll be opening a port to the public.
@dev.rahulgurjar
@dev.rahulgurjar Жыл бұрын
I'm unable to connect Apache sir????
@gsantos7622
@gsantos7622 2 жыл бұрын
Job for apache2.service failed because the control process exited with error code"
@noweare1
@noweare1 Жыл бұрын
You have an error in your conf file. see the error by using "sudo systemctl status apache2"
@laszlob3683
@laszlob3683 2 ай бұрын
how to do the same without linode tho
@sokhinnikita1493
@sokhinnikita1493 3 жыл бұрын
Why did you use "apt dist-upgrade" instead "apt upgrade"?
@AkamaiDeveloper
@AkamaiDeveloper 3 жыл бұрын
"apt-upgrade" is used to install the newest versions of all packages currently installed on the system. In addition to performing the function of upgrade, "apt dist-upgrade" also intelligently handles changing dependencies with new versions of packages. More details about the use of "upgrade" and "dist-upgrade" can be found in the official manual page here manpages.ubuntu.com/manpages/impish/en/man8/apt-get.8.html
@andreassebayang7403
@andreassebayang7403 3 жыл бұрын
More🔥🔥🔥
@deepkkumar7864
@deepkkumar7864 3 жыл бұрын
009990
@PhilipProchazka
@PhilipProchazka 2 жыл бұрын
I unable to find etc/hostname I°m running debian 11
@AkamaiDeveloper
@AkamaiDeveloper 2 жыл бұрын
Make sure you have the "/" in front of "etc". You can also create the file in that directory if it does not exist.
@DannyLyriCa
@DannyLyriCa 3 жыл бұрын
This has really helped me understand what the bare minimum is, now i sort of see how i can make my server! thanks.
@MONUYADAV-gq8wq
@MONUYADAV-gq8wq 2 жыл бұрын
0
@Aliali-mr7ym
@Aliali-mr7ym 2 жыл бұрын
2
@hggg4743
@hggg4743 2 жыл бұрын
@@MONUYADAV-gq8wq a
@abinayaabinayaabinaya3930
@abinayaabinayaabinaya3930 Жыл бұрын
@@MONUYADAV-gq8wq uuuuhhhhhuuuhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhuhhhhhhhhhhhhhhhhhuhhhhhhhhhhhhhhhhuuhhhhhhhhhh7uuuuuhhhhuuhuhhuuhhhhhuuuumhpnjpppphuuuuuuuuhuuu7uu7u7uuuuuuuuuuuuuuuuuuuuuuuuuuhuuuuhuuuhhuuuuh
@RahulYadav-xf7nx
@RahulYadav-xf7nx Жыл бұрын
बीपीएल
@Whoknowsthatman
@Whoknowsthatman 3 жыл бұрын
Good job Jay. 👍🏽
@anzdes219
@anzdes219 Жыл бұрын
the vid got no sound...
@guilherme5094
@guilherme5094 3 жыл бұрын
Like!
@raihanmondal9315
@raihanmondal9315 2 жыл бұрын
Lxm
@asimabusallam3147
@asimabusallam3147 3 жыл бұрын
more thanks
@LazyKingAus
@LazyKingAus 9 ай бұрын
Somehow after this video it went from working to not working
@bigid9176
@bigid9176 2 жыл бұрын
Help me please?🥺🥺🥺😭😭😭
@saudagarkumar9738
@saudagarkumar9738 3 жыл бұрын
Photo keyboard
@ganadhsingrana4266
@ganadhsingrana4266 3 жыл бұрын
इjसW
@Toufique-00
@Toufique-00 Жыл бұрын
u didn't even explain how to add pictures and html into the server..
@tubeDude48
@tubeDude48 2 жыл бұрын
no need for *CTRL-o* in nano, Just enter: *CTRL-x y Enter*
@Deuthe.
@Deuthe. 9 ай бұрын
Ctl s and then ctrl x
Apache Virtual Hosts
40:20
Nerd on the Street
Рет қаралды 101 М.
Clown takes blame for missing candy 🍬🤣 #shorts
00:49
Yoeslan
Рет қаралды 48 МЛН
КАК ДУМАЕТЕ КТО ВЫЙГРАЕТ😂
00:29
МЯТНАЯ ФАНТА
Рет қаралды 10 МЛН
Apache vs NGINX
7:53
IBM Technology
Рет қаралды 274 М.
Install and Configure Apache on Ubuntu Server | Set Up Virtual Host
31:46
Why The Windows Phone Failed
24:08
Apple Explained
Рет қаралды 232 М.
18 Commands That Will Change The Way You Use Linux Forever
29:50
Akamai Developer
Рет қаралды 1,2 МЛН
Elon Musk update on 2nd human who got Neuralink implant
9:12
Lex Clips
Рет қаралды 63 М.
Web Server Concepts and Examples
19:40
WebConcepts
Рет қаралды 237 М.
The Linux Tier List
27:34
Chris Titus Tech
Рет қаралды 1 МЛН
NGINX Linux Server | Common Configurations
17:28
Akamai Developer
Рет қаралды 174 М.
How to use Multiple SSH Keys | Managing Different SSH Keys on your System
21:29
Как удвоить напряжение? #электроника #умножитель
1:00
Hi Dev! – Электроника
Рет қаралды 1,1 МЛН
Rate This Smartphone Cooler Set-up ⭐
0:10
Shakeuptech
Рет қаралды 6 МЛН
Мой новый мега монитор!🤯
1:00
Корнеич
Рет қаралды 600 М.