Creating a Website on Raspberry Pi

  Переглядів 37,594

Chris Titus Tech

Chris Titus Tech

День тому

This goes over setting up a full LAMP stack on Raspberry Pi and making your own website from scratch!
Cheatsheet Guide: www.christitus.com/pi-website
Linode VPS Sponsor Link: www.christitus.com/linode
Timestamps
00:00 Intro
00:30 Cheatsheet
00:45 Raspberry Pi Imager and Pre-Requisites
02:34 First Boot and Dependancies
04:03 Downloading Wordpress
05:45 Database Setup
07:23 See Raspbery Pi IP and First WordPress Setup
09:20 Fixing Wordpress Permalinks
12:25 Setting up Website on Linode .
►► Digital Downloads ➜ www.cttstore.com
►► Reddit ➜ / christitustech
►► Titus Tech Talk ➜ / titustechtalk
►► Twitch ➜ / christitustech

КОМЕНТАРІ: 104
@MarkVanderberg
@MarkVanderberg 3 роки тому
Tip for Raspberry Pi Imager, before creating the image to your micro SD card. press ctrl + shift+X this will bring up another menu so that you can set up a password, Wi-Fi password, and set up SSh should so you don't have to do the first step. I have actually been doing this exact same thing for the last months with my old raspberry pi2. Great way to play at the command line without worrying about messing up something.
@Noodles.FreeUkraine
@Noodles.FreeUkraine 3 роки тому
Wait, is that even a thing? 😳 Wow, thanks for the heads-up!
@bc-kelley
@bc-kelley 3 роки тому
Chris make this into a series for those that aren’t noobs and already know the basics that are in this video. Anyway nice video brother!
@markmoreno7295
@markmoreno7295 3 роки тому
Exactly! My granddaughter fools around with a raspberry pi and I am sure this video would require piecemeal, painstak ing dissection. And she is head to heels better than me. I would like a book.
@ChrisTitusTech
@ChrisTitusTech 3 роки тому
Will do!
@fatimazivkovic9017
@fatimazivkovic9017 Рік тому
Thank you! This was super simple and easy to follow 😀
@calbrig1978
@calbrig1978 3 роки тому
Thank you man, I have been waiting for you to make this video. 👍👍👍
@RamonInNZ
@RamonInNZ 3 роки тому
Great tutorial - brought an RPi home from work to play with :-)
@daves4026
@daves4026 2 роки тому
Brilliant. Thank you. I would appreciate 2 more of the same configuration set up via ansible and the use of docker as another separate video
@AnzanHoshinRoshi
@AnzanHoshinRoshi 3 роки тому
Thank you, Chris. Very useful.
@amad-os8rp
@amad-os8rp 3 роки тому
Great Video! I didn’t know websites were that easy to setup. 🤯
@tedoyle61
@tedoyle61 3 роки тому
Those things, are really amazing.
@dim3nt0
@dim3nt0 3 роки тому
its amazing how all the videos and tutorials look simple :) each time i try to follow any of it, some error introduces itself, wich to be fixed requires 30 more errors to be fixed and quite a lot of deeper linux knowledge.. and then couple of hours later when its finaly fixed and step one of tutorial finaly works, lets get on with step two.. aaaand another error and another rabbit hole.. it gets infuriating real fast, especialy for a semi beginer (with quite a lot of patience)
@greatsaid5271
@greatsaid5271 3 роки тому
great content 🙌👌
@grahamnichols1416
@grahamnichols1416 4 місяці тому
Thanks, Chris! This is really helpful. I use a Pi to hold my electronic components inventory. I pop out my phone to connect to the pi around the house to locate and update components on the fly. It took a while to set up and count everything, but now this saves me from constantly searching as I once did. Next up, is a tools database ... Sadly it highlights how I double-bought items due to not knowing I already had some. :(
@gwgux
@gwgux 3 роки тому
One of these days I'll get me a couple Raspberry Pis and do this. There's a few things I want to setup on my home network that they would be perfect for.
@ironmanlifts
@ironmanlifts 3 роки тому
Hey Chris, thanks for the video. Serving from PI is something I'm interested in. Is it worth going though the trouble of administration with pi when you can just host with netlify? I'm not familiar with wordpress but I am with hugo. I would imagine that the benefits are bringing in the backend like php and mysql if that's something that is required for the user.
@TheDraconianParadise
@TheDraconianParadise 3 роки тому
Nice one. I'd also mention that this setup works only inside LAN. (Now you have an idea for a follow-up video ;) )
@NielsDutch1906
@NielsDutch1906 3 роки тому
I got a pie for my 11 birthday and I love it so much. It has taken me into the world of (Debian/Ubuntu) Linux and I am comfortable in all the 3 major os’es. Just wish for Microsoft office to come to Linux and better AirPods support. Then I can fully transfer to Linux. For now….Mac it is.
@Richard-ck7sr
@Richard-ck7sr 3 роки тому
WPS Office and LibreOffice on Linux are very good MS Office alternatives.
@amine250
@amine250 3 роки тому
Just for the record, later Raspbian systems include now a vs code apt repo out of the box. And this apt repo obviously collects telemetry when your raspberry pings microsoft servers. Make sure to delete it from /etc/apt/sources.list.d/
@kylesgarden8725
@kylesgarden8725 2 роки тому
Can you explain this to me? Will it fill up my boot drive or something?
@amine250
@amine250 2 роки тому
@@kylesgarden8725 it's like cookies in the browser, they track you with your ip address
@sokoloft3
@sokoloft3 3 роки тому
Just remembered I have an rpi zero laying around. Flashed raspberry pi os to it and set it up for ssh. Time to tackle this and mess around with it. Haven't used wordpress. I was also in the need for a vps. I wanted to use your linode link but they don't accept paypal. So I went with digital ocean and also had a referral code for a $100 credit through someone else.
@stephenwinters1438
@stephenwinters1438 2 роки тому
Hi Chris would you have any advise for making the wordpress website accessible outside the local network? I can only connect if both terminals are connected to the same router.
@vincentaguilar6249
@vincentaguilar6249 Рік тому
Great video, is there a chance you can do a video on how to manage this website we just created? I would like to learn more about hosting a website on my pi but I can not find any good material out there. Thanks again!
@andrescoquin7285
@andrescoquin7285 3 роки тому
Well documented video. I have this working and converted from Apache to NGINX for better performance. Now I am trying to allow users to connect by WiFi so they can see locally hosted content while preventing them from access the internet though the ethernet port which I have connected to my router. Can you point me in the right direction to break the connection between the WiFi and Ethernet interfaces?
@ebiscaia
@ebiscaia 2 роки тому
Hi Chris, Is it that different to setup a Lemp stack instead of a Lamp one? Thanks
@1nvaderz
@1nvaderz 2 роки тому
Ayy another FFXI fan!
@developerpranav
@developerpranav 3 роки тому
That's a very nice thumbnail and video
@sokoloft3
@sokoloft3 3 роки тому
I remember when I was younger. In middle/highschool. I used iWeb on the school computers to make a site and hosted it with HFS FTP lol. Was for a Halo CE clan I ran and hosted servers for. The ladder program is pretty decent if you've never heard of it. Probably not all that secure but cool nonetheless.
@frederickbottcher8019
@frederickbottcher8019 3 роки тому
What are your thoughts on Ubuntu 21.04 with Active Directory?
@DaveSomething
@DaveSomething 3 роки тому
it does a fairly good job, unless you're getting thousands of hits or being ddos'd =) lighttpd does well too. I have a family email server, an IRC server, web server, pihole, time server, ftp, and motion/motioneye running on the poor creature. I try to keep the "idle" CPU below 20%
@peter4051
@peter4051 Рік тому
hey there Chris hope your well ... i have a quick question...what would be a good Raspberry Pi Box to buy as i have been looking at a few but not sure which is the right one or the best value for the price and benefits ... could you please point me in the right direction thanks
@ShyneflowLC
@ShyneflowLC 2 роки тому
Anyway to change the website address to your own link vs the ip? Something more visually pleasing the way to .coms etc are?
@ebiscaia
@ebiscaia 3 роки тому
Remembering you can use Ubuntu server for Raspberry Pi instead. I believe in this case your tutorial would work fine with no adjustments. Non-Debian-based distros would have different commands to deal with apache, at least.
@markmoreno7295
@markmoreno7295 3 роки тому
Seriously powerful. But if my upload speed on my router is abysmal, will it matter? If I already have a domain name, how do I re-route it? See, you need to write a book.
@sokoloft3
@sokoloft3 Рік тому
I take it you where using a pi 3 or 4. Shame they're too expensive now. I have a zero that I set this up on, but it really chugs. htop shows when loading a page the cpu is maxed. As well as, I had to add the php-curl and php-xml for the starter templates plugin.
@martinmclean5985
@martinmclean5985 3 роки тому
How about a video on Xilinx's new Kria SOM system? Seems like a lot to video fodder with their user-ready apps. Maybe even some how-to videos.
@Raylightsen
@Raylightsen 3 роки тому
I came to the most recent video to request you to please create 2 videos: - One showing how to add programs to a windows 10 iso so they install automatically when we do a clean install of windows 10 (lets say, for winrar and firefox to be installed when we completed the clean install of windows 10) - Show the method of modifying a windows 10 iso with software called NTlite, with privary as the focal point, but for a normal user
@GC-rg6in
@GC-rg6in 3 роки тому
My only issue now i've done this is working out a way to get power over ethernet from my home router to the pi so i don't need a separate power source for the pi. Any help from ppl in the comments would be much appreciated. thanks!
@JayCeeCreates
@JayCeeCreates 3 роки тому
Do I still need to buy a domain name for this?
@gradientO
@gradientO 3 роки тому
Gotta buy it soon. Will they be able to handle databases like PostgreSQL?
@karsten_m
@karsten_m 3 роки тому
He installed mariadb, so yes. It depends on the workload, as always. The pis are good little machines but will likely not replace a full-blown server. (Maybe unless you cluster them, but that's for another video)
@YA-tr1lb
@YA-tr1lb Рік тому
should i use 32 bit or 64 what is efficent ?
@Isassi007
@Isassi007 3 роки тому
Quick question, are you now using wordpress over Hugo for you site? and which is better WP or Hugo? Thanks!
@ChrisTitusTech
@ChrisTitusTech 3 роки тому
I'm still using Hugo, but most folks don't understand git and WordPress is far more common and probably the best starting point.
@Isassi007
@Isassi007 3 роки тому
@@ChrisTitusTech gottca!
@peakminute
@peakminute 3 роки тому
Hey @Chris is it possible to host a website with domain name just like in you video?
@pavlospilakoutas
@pavlospilakoutas 3 роки тому
Same as the vid but you have to assign a static public ip or have it through a reverse proxy, if not through a reverse proxy setup firewall rule so when requests come get redirected to the correct LAN ip, open ports 80 & 443, assign A and CNAME records with the static public ip on registrar and replace the local ip in wordpress settings with the domain name. That's it
@alexlinkinfinity5983
@alexlinkinfinity5983 2 роки тому
what terminal do you use
@davidg4512
@davidg4512 3 роки тому
You can skip all of this by just using the official WordPress dockerized images. It's just much easier to declare a configuration in docker-compose.yml and spin it up using docker-compose up -d. There is too much to type here doing this all custom. However, that's not to excuse to learn how it all works under the hood, as that's important to understand. I would do an easy tutorial and then also how to set it up the non-docker way.
@leandrolaporta2196
@leandrolaporta2196 3 роки тому
Excellent! Thank you!, I will love if you can Install sinplemachines forum!!
@fusion9619
@fusion9619 Рік тому
Oh man I wanna do this... Darn rpis are expensive these days tho
@tejaspadhye
@tejaspadhye 3 роки тому
Instead of using a pi, can I just run ubuntu lts on a vm in windows?
@KartikGajaria
@KartikGajaria 3 роки тому
Chris, how do I check the no. of visitors it can handle? Is hosting a small website/blog on a pi a viable solution?
@TheBinklemNetwork
@TheBinklemNetwork 2 роки тому
Yes this is scaleable
@Aden068
@Aden068 3 роки тому
Yum
@offmdma
@offmdma 2 роки тому
Mines says Your php installation appears to be missing the MySQL extension
@QuickBits
@QuickBits 3 роки тому
How is a domain name added into the wordpress setup, for the website address instead of the LAN IP address?
@msinfo32
@msinfo32 3 роки тому
I'd recommend either port forwarding, or using alternative methods, such as ngrok. Then link the IP given to a domain. Search it up, there's lots of guides.
@Itsspock
@Itsspock Місяць тому
Does anyone know if this defaults to port 80?
@amrtariqabusamra2853
@amrtariqabusamra2853 3 роки тому
Notification gang
@harshjain5511
@harshjain5511 Рік тому
But what if I want to host my own created website on the raspberry
@nathangorecki7381
@nathangorecki7381 2 роки тому
So I have followed the tutorial and am unable to access wordpress from the browser via ip. All I see is what looks like a text file, not the wordpress setup. I have followed the tutorial to a T and spent most of today on this. Any suggestions?
@davidhunt5682
@davidhunt5682 2 роки тому
I got something similar, but I forgot to install php.
@user-xr3rb6pn9m
@user-xr3rb6pn9m 3 роки тому
Have you tested how many simultaneous connections a RPi can handle before the website becomes unusable? Really curious about that
@denispalt9184
@denispalt9184 3 роки тому
I think this highly depends on the pi (2/3/4) and the applications/plugins u are using
@user-xr3rb6pn9m
@user-xr3rb6pn9m 3 роки тому
Sure, but at least curious to know the order (is it 100s? 1000s? 10000s?)
@andrescoquin7285
@andrescoquin7285 3 роки тому
It is highly dependent on we what kind of content to they are watching. From what I have seen around 20 is ok even with a Raspberry 0W if they are not all watching videos at the same time.
@genious0682
@genious0682 3 роки тому
your using brave browser man is too good even i am to using that
@jasonreviews
@jasonreviews 3 роки тому
now you should try ddosing or stress testing to see how many users it can take.
@Lp-ze1tg
@Lp-ze1tg 3 роки тому
Is a 4gb ram raspberry pi 4 good enough?
@barbyboi
@barbyboi 2 роки тому
Sure!
@terrydaktyllus1320
@terrydaktyllus1320 3 роки тому
That Windows 10 system you shut down about 3 minutes into the video - don't feel you ever have to restart it. You're adult enough to use Linux, you don't need those kindergarten mis-operating systems any more.
@markh.6687
@markh.6687 3 роки тому
Windows: "I'm afraid, Terry."
@terrydaktyllus1320
@terrydaktyllus1320 3 роки тому
@@markh.6687 Windows: "Come suckle on mummy's teat, Mark H."
@SwineGamers
@SwineGamers 3 роки тому
Sir please make a windows with Bluetooth wifi 802.11 n and lightest about 200 mb ram usage I need to use zoom and chrome as I used many linux but in that zoom is using 100% cpu usage please make hardly requesting some games like minecraft
@x91w
@x91w 3 роки тому
I haven't used a micro sd card in a PI4 for over a year. I find USB3 flash drives or SSDs much quicker and easier than the nasty microsd RPI org have just dropped a new firmware last week that makes it even better.
@ChrisTitusTech
@ChrisTitusTech 3 роки тому
I agree, much faster and more reliable
@davidhunt5682
@davidhunt5682 2 роки тому
ERROR 1046 trying to GRANT ALL PRIVLEGES in mysql. Entered 'use wordpress' to fix.
@Electro313Spirit
@Electro313Spirit 3 роки тому
👍🍓
@denisdeslauriers7277
@denisdeslauriers7277 3 роки тому
I just created a Website for my wife. Expensive affair... Now I need to create one for myself. I'll look into this, thanks, Chris!
@parthaganguly2014
@parthaganguly2014 3 роки тому
Sir, I am from India. Please make a video on Deepin 20 Linux. and Tell us if Chinese OS safe or not for use daily driver.
@wikingagresor
@wikingagresor 3 роки тому
come on, don't use Deepin - it is not safe.
@parthaganguly2014
@parthaganguly2014 3 роки тому
@@wikingagresor Thanks
@lawsonott3
@lawsonott3 2 роки тому
"Chris Titus Tech", how to do this, but just using js/html/css? or blazor? i hate wordpress.
@LoganMeyers03
@LoganMeyers03 3 роки тому
hi! :)
@nichtgestalt
@nichtgestalt 3 роки тому
Oh snap, I just Sold my Raspberry pi 3 so I can buy a new screen. I guess the Raspberry pi zero w is not strong enough, right?
@akochlef
@akochlef 3 роки тому
what's a website with a private IP, should have talked about how to make it public.
@sbfotome
@sbfotome 3 роки тому
How would you set up an SSL on the Pi?
@pavlospilakoutas
@pavlospilakoutas 3 роки тому
Try certbot
@amcocaponee5541
@amcocaponee5541 3 роки тому
w
@rameshraja2352
@rameshraja2352 3 роки тому
Hi Chris, I am a basic linux user. Please find my system specification - AMD 3600x - 16 GB RAM - Gigabyte 1660ti graphic card - Ubuntu 20.04, Zorin 15.3 OS I find the VLC player is showing some audio lag when fast forwarding using arrow keys. And when i try Manjaro 21.0.2 it is working fine.
@ladyViviaen
@ladyViviaen 3 роки тому
and then use tor to host it
@nixielee
@nixielee 3 роки тому
To get rid of that annoying paste warning "multiLinePasteWarning": false,
@FlamingArrow444
@FlamingArrow444 Рік тому
is this safe to open this up to the world through my router? i’m afraid someone knows more than i do and can just wreck my life if i open it to the world 🤣
@FlamingArrow444
@FlamingArrow444 Рік тому
this a serious question tho fr
@MiMayonGo
@MiMayonGo 3 роки тому
How about hacking nasa using raspberry pi
@luimu
@luimu 3 роки тому
Imagine building a hobby project with wordpress instead of writing your own.
@ArchieGamerPlayer
@ArchieGamerPlayer 7 місяців тому
it keeps saying the password is wrong terrible tutorial
@harpermartin7813
@harpermartin7813 2 роки тому
Jesus is King! If you do not know Jesus as Savior please pray, “ Jesus save me. At this moment I choose to have faith that You gave Your life for me and rose from the dead. Doing this You defeated death, even though it meant You had to die. You surrendered Your life for me, so I chose to surrender my life to You. Forgive me Jesus, my God. Amen.” Jesus loves you so much. Please accept His love. I encourage you to read the Bible and pray. “For God so loved the world that he gave his one and only begotten Son into this world, that whoever believes that in him shall not perish but have eternal life.” John 3:16 🙏❤️🙏 Jesus is enough! Again I tell you, Jesus loves you! God believes in you more than you believe in yourself! Trust Him! Thank Him! ❤️🙏
@iishadowii7477
@iishadowii7477 3 роки тому
I underestood nothing :)
my SUPER secure Raspberry Pi Router (wifi VPN travel router)
30:57
NetworkChuck
Переглядів 1,5 млн
Coding a Web Server in 25 Lines - Computerphile
17:49
Computerphile
Переглядів 312 тис.
Помилка,  яку зробило військове керівництво 🙄
01:00
Радіо Байрактар
Переглядів 231 тис.
How to get a FREE HYPERCHARGE SKIN!
02:07
Brawl Stars
Переглядів 13 млн
How To Host Your Own Website For FREE - Home Server Tutorial
10:47
Emit.Reviews
Переглядів 216 тис.
You're running Pi-Hole wrong! Setting up your own Recursive DNS Server!
18:02
Set Up Your Own VPN at Home With Raspberry Pi! (noob-friendly)
18:16
Wolfgang's Channel
Переглядів 653 тис.
HOW TO -  Create a Raspberry Pi Smart Home Kiosk (Home Assistant)
17:56
Mark Watt Tech
Переглядів 128 тис.
DON'T Use Raspberry Pis for Servers! (Use THIS)
16:23
Hardware Haven
Переглядів 947 тис.
the Raspberry Pi 5
17:57
NetworkChuck
Переглядів 1 млн
The Easy Way to Host A Website on Your Raspberry Pi
5:24
Data Slayer
Переглядів 30 тис.
I Can Save You Money! - Raspberry Pi Alternatives
15:04
Linus Tech Tips
Переглядів 3,2 млн
Windows Utility Improved for 2024
17:56
Chris Titus Tech
Переглядів 86 тис.
Raspberry Pi Travel Router - RaspAP (2024)
15:06
Everyday Tech
Переглядів 73 тис.
МОЙ ПЕРВЫЙ ТЕЛЕФОН - Sony Erricson T280i
18:02
ЗЕ МАККЕРС
Переглядів 63 тис.
I7 2600K тест в играх и сравнение с AMD Ryzen
17:53
Я Создал Новый Айфон!
0:59
FLV
Переглядів 1,3 млн