No video
Creating a Website on Raspberry Pi
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
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
3 жыл бұрын
Wait, is that even a thing? 😳 Wow, thanks for the heads-up!
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
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
3 жыл бұрын
Will do!
Thank you man, I have been waiting for you to make this video. 👍👍👍
Thank you! This was super simple and easy to follow 😀
Thank you, Chris. Very useful.
Great Video! I didn’t know websites were that easy to setup. 🤯
Great tutorial - brought an RPi home from work to play with :-)
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)
great content 🙌👌
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
Those things, are really amazing.
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. :(
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
3 жыл бұрын
WPS Office and LibreOffice on Linux are very good MS Office alternatives.
Ayy another FFXI fan!
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.
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!
That's a very nice thumbnail and video
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?
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.
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.
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
2 жыл бұрын
Can you explain this to me? Will it fill up my boot drive or something?
@amine250
2 жыл бұрын
@@kylesgarden8725 it's like cookies in the browser, they track you with your ip address
Nice one. I'd also mention that this setup works only inside LAN. (Now you have an idea for a follow-up video ;) )
What are your thoughts on Ubuntu 21.04 with Active Directory?
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.
Anyway to change the website address to your own link vs the ip? Something more visually pleasing the way to .coms etc are?
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
Hi Chris, Is it that different to setup a Lemp stack instead of a Lamp one? Thanks
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.
should i use 32 bit or 64 what is efficent ?
what terminal do you use
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.
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%
Do I still need to buy a domain name for this?
Instead of using a pi, can I just run ubuntu lts on a vm in windows?
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!
Does anyone know if this defaults to port 80?
How is a domain name added into the wordpress setup, for the website address instead of the LAN IP address?
@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.
But what if I want to host my own created website on the raspberry
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.
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.
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.
Gotta buy it soon. Will they be able to handle databases like PostgreSQL?
@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)
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
Hey @Chris is it possible to host a website with domain name just like in you video?
@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
Mines says Your php installation appears to be missing the MySQL extension
Yum
Oh man I wanna do this... Darn rpis are expensive these days tho
Quick question, are you now using wordpress over Hugo for you site? and which is better WP or Hugo? Thanks!
@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
3 жыл бұрын
@@ChrisTitusTech gottca!
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
3 жыл бұрын
Yes this is scaleable
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
3 жыл бұрын
I got something similar, but I forgot to install php.
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.
ERROR 1046 trying to GRANT ALL PRIVLEGES in mysql. Entered 'use wordpress' to fix.
Notification gang
Is a 4gb ram raspberry pi 4 good enough?
@barbyboi
3 жыл бұрын
Sure!
now you should try ddosing or stress testing to see how many users it can take.
Have you tested how many simultaneous connections a RPi can handle before the website becomes unusable? Really curious about that
@denispalt9184
3 жыл бұрын
I think this highly depends on the pi (2/3/4) and the applications/plugins u are using
@user-xr3rb6pn9m
3 жыл бұрын
Sure, but at least curious to know the order (is it 100s? 1000s? 10000s?)
@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.
Excellent! Thank you!, I will love if you can Install sinplemachines forum!!
your using brave browser man is too good even i am to using that
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!
👍🍓
"Chris Titus Tech", how to do this, but just using js/html/css? or blazor? i hate wordpress.
hi! :)
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
3 жыл бұрын
I agree, much faster and more reliable
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
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
3 жыл бұрын
Windows: "I'm afraid, Terry."
@terrydaktyllus1320
3 жыл бұрын
@@markh.6687 Windows: "Come suckle on mummy's teat, Mark H."
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?
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
3 жыл бұрын
come on, don't use Deepin - it is not safe.
@parthaganguly2014
3 жыл бұрын
@@wikingagresor Thanks
How would you set up an SSL on the Pi?
@pavlospilakoutas
3 жыл бұрын
Try certbot
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.
what's a website with a private IP, should have talked about how to make it public.
w
and then use tor to host it
To get rid of that annoying paste warning "multiLinePasteWarning": false,
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
2 жыл бұрын
this a serious question tho fr
How about hacking nasa using raspberry pi
Imagine building a hobby project with wordpress instead of writing your own.
it keeps saying the password is wrong terrible tutorial
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! ❤️🙏
I underestood nothing :)