Thank you, that was awesome, I'd love to watch a second part where you launch your wordpress website to the internet using a free domain from freenom or something like that
This was so straight forward THANK YOU! - Explaining enough on what each step was doing along the way. It would be great to see a video on how to secure a Raspberry Pi web server :)
A great tutorial, thanks for making this. Can you also make a tutorial on how to move our wordpress site, from pi to a hosting site, after finishing the development work on pi?
Wordpress doesn't automatically create the config file. This frustrated me for over a week - what you end up with in /var/www/html/ is a wp-config-sample.php file - so the set up wizard fails. This need to be edited with your database name and credentials and saved as wp-config.php for the Wordpress set-up wizard to work otherwise you get a failed to start database error. I use the command sudo nano wp-config-sample.php, from within /var/www/html/, to edit the file and save as wp-config.php - and this works with the Pi. I think a lot of the tutorials posted on UA-cam simply skim over what is, even according to Wordpress, on of the most common issues experienced during set up.
When I start setting up wordpress. It says: Unable to write to wp-config.php file. You can create the wp-config.php file manually and paste the following text into it. But I can't create a new file in the wordpress folder because the action is denied. Anyone knows how to solve it?
This is interesting. I followed the LAMP project on the RPI site and got the same thing following their instructions. I blew away my RPI and started over and came to this video to hear someone explain it instead of a written tutorial. I see even people that follow this tutorial get the same error I got following a written tutorial. I wonder what we're all missing.
Is it possible to set up a different port? I have openmediavault (using nginx) on :80 and my localhost IP takes me to OMV. I would be happy to launch it from a different port number like 8080 or something like this. But cannot make it work. Thank you.
So there are two I would look at They are both 32 bit raspberrypi OS with two versions 1) Desktop - this gives you a desktop user interface (a sreen you can use a mouse on) takes up more space resources 2) “light” this is just command line. It is smaller and uses less resources but only works when typing commands. If you don’t have a screen hooked up to the pi choose this
i have problem with the config file i think... Unable to write to wp-config.php file. You can create the wp-config.php file manually and paste the following text into it. then i watched this video (i was following the instructions on you're site and i didn't see this command: sudo chown -R www-data: . i did that in the folder en restarted apache2 for the second time. now it skipped the whole message and i saw the normal installation further. is it harmless to ignore this message now?
Why wouldn't you recommend a raspberry pi for hosting a site for production? Presumably due to performance & security, although could it not be an option just to start with, and as an app hosted by a pi grows, could you not upgrade to a faster server later when needed? Great video btw!
You wouldn't want to use this for production due to several reasons, two of which you mentioned. Specifically, performance wise, if you get more visitors and this page requests then it will eventually become taxing on the CPU. If you plan to code a site with a database on for instance nodejs then that will use up more resources / project. Security wise you are exposing your site to the public. If misconfigured then someone might get access to the rest of your network. Admittedly I can't say how likely that aspect is. Availability wise. How reliable is your Internet connection? Power connection? And the components themselves, such as the RPI overheats or the storage fails. You will also have the RPI on 24/7, luckily it doesn't use that much power. I'm interested in this setup from the perspective that I could work on stuff locally and could access any site from within the network. When needed /satisfied I can sync with my webhost or similar. Edit. On your webhost or virtual machine thing, such as aws they are regularly updating the hardware. Edit 2. If your site has media content then that content would have to be stored locally as well and sent using your bandwidth. In addition it's similar to why it's usually the best option to use a CDN than serving files yourself as the download speeds for the first time user will be much faster.
@@JakobPapirov those are some very interesting and useful points. Do you know roughly how much traffic a raspberry pi 3B can sustain? I'd have thought it could easily support about 100 users per day whom visit, say, 5 pages. I'm still thinking a pi could suffice for something small, and you could upgrade to a VPS or something when demand is more taxing
I get the following message after "submit". Please help. Error establishing a database connection This either means that the username and password information in your wp-config.php file is incorrect or we can’t contact the database server at localhost. This could mean your host’s database server is down.
The tutorial broke down for me at the 4:30 mark the commands brought back the MariaDB monitor and none of your commands worked. It was exciting up untill that point though!
@@SpaceRexWill I was also unable to execute the command for granting the privlidges, I had installed a newer mariadb 10.5, removed it and went to 10.3 - same error. MariaDB [(none)]> GRANT ALL PRIVILEGES ON wordpress.* TO ‘root’@’localhost’ IDENTIFIED BY Sc0rp10ns; ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'password1' at line 1
I have tried this (and Raspberry Pi Foundations writeup Build a LAMP Web Server with WordPress) and a number of other write-ups for installing WP on Raspberry Pi. The problem I have is: it just will not work. I'm not sure what the problem is, but I suspect it has to do with the new versions of WP and the way blocks works. The Raspberry Pi storyline is sort of compelling: a cheap computer where you can run exiting stuff. But, you can't get hold of a Pi and a lot of the projects is unfortunately just a waste of time.
id rather SEE what it is your talking about more 2:40. up to 3 minutes of seeing your face. go straight to the code!! not YOU! less of your heavily edited face shot.. which I'm sure you spent all day recording.
Thank you, that was awesome, I'd love to watch a second part where you launch your wordpress website to the internet using a free domain from freenom or something like that
This was so straight forward THANK YOU! - Explaining enough on what each step was doing along the way. It would be great to see a video on how to secure a Raspberry Pi web server :)
Amazing, you are the TRUE raspberry pi legend 👍
Thanks!
Thank you for your explanation. All steps were easy to follow to get everything working. Thank you Spacerex
A great tutorial, thanks for making this.
Can you also make a tutorial on how to move our wordpress site, from pi to a hosting site, after finishing the development work on pi?
So there are a few options depending on who is hosting your primary site. There are some plugins that work really well for this!
PERFECT!!! it worked, I'm using the Raspberry 3, thank you very much!
Hey Glad it worked!
Awesome. Keep up the good work !
Thanks!
Wordpress doesn't automatically create the config file. This frustrated me for over a week - what you end up with in /var/www/html/ is a wp-config-sample.php file - so the set up wizard fails. This need to be edited with your database name and credentials and saved as wp-config.php for the Wordpress set-up wizard to work otherwise you get a failed to start database error. I use the command sudo nano wp-config-sample.php, from within /var/www/html/, to edit the file and save as wp-config.php - and this works with the Pi. I think a lot of the tutorials posted on UA-cam simply skim over what is, even according to Wordpress, on of the most common issues experienced during set up.
You are always great !!
Can you make a video on how to link a website domain to the local web server? Thanks!
Big Thanks for tutorial. Just create Wordpress local website. Will try to share it over internet. Warm wishes:)
I'm learning so much from your tutorials it even feels bad that they are free.
Haha well I do make some money off these from ad revenue!
Thank you! Very useful!
I would recommend Ngnix instead of apache great work
When I start setting up wordpress. It says:
Unable to write to wp-config.php file.
You can create the wp-config.php file manually and paste the following text into it.
But I can't create a new file in the wordpress folder because the action is denied.
Anyone knows how to solve it?
This is interesting. I followed the LAMP project on the RPI site and got the same thing following their instructions. I blew away my RPI and started over and came to this video to hear someone explain it instead of a written tutorial. I see even people that follow this tutorial get the same error I got following a written tutorial. I wonder what we're all missing.
Thank you very much, enjoyed learning with the video
Well done - thanks!
Is it possible to set up a different port? I have openmediavault (using nginx) on :80 and my localhost IP takes me to OMV.
I would be happy to launch it from a different port number like 8080 or something like this. But cannot make it work.
Thank you.
Great Video my Friend !
Thank you very much !
Greetings from switzerland
Hey thanks!
Thanks :)
Hi, thank you for the tutorial. I'm the beginner of using Pi. Would you please advise that which image I should use for making the bootup SDcard?
So there are two I would look at
They are both 32 bit raspberrypi OS with two versions
1) Desktop - this gives you a desktop user interface (a sreen you can use a mouse on) takes up more space resources
2) “light” this is just command line. It is smaller and uses less resources but only works when typing commands. If you don’t have a screen hooked up to the pi choose this
@@SpaceRexWill thank you very much :)
But can you also host a WordPress site which you created before?
Just copy over the Wordpress folder and copy in the database and it should work. Totally depends on what you have though.
i have problem with the config file i think...
Unable to write to wp-config.php file. You can create the wp-config.php file manually and paste the following text into it.
then i watched this video (i was following the instructions on you're site and i didn't see this command: sudo chown -R www-data: .
i did that in the folder en restarted apache2 for the second time. now it skipped the whole message and i saw the normal installation further. is it harmless to ignore this message now?
Why wouldn't you recommend a raspberry pi for hosting a site for production? Presumably due to performance & security, although could it not be an option just to start with, and as an app hosted by a pi grows, could you not upgrade to a faster server later when needed? Great video btw!
You wouldn't want to use this for production due to several reasons, two of which you mentioned. Specifically, performance wise, if you get more visitors and this page requests then it will eventually become taxing on the CPU. If you plan to code a site with a database on for instance nodejs then that will use up more resources / project.
Security wise you are exposing your site to the public. If misconfigured then someone might get access to the rest of your network. Admittedly I can't say how likely that aspect is.
Availability wise. How reliable is your Internet connection? Power connection? And the components themselves, such as the RPI overheats or the storage fails. You will also have the RPI on 24/7, luckily it doesn't use that much power.
I'm interested in this setup from the perspective that I could work on stuff locally and could access any site from within the network. When needed /satisfied I can sync with my webhost or similar.
Edit. On your webhost or virtual machine thing, such as aws they are regularly updating the hardware.
Edit 2. If your site has media content then that content would have to be stored locally as well and sent using your bandwidth. In addition it's similar to why it's usually the best option to use a CDN than serving files yourself as the download speeds for the first time user will be much faster.
@@JakobPapirov those are some very interesting and useful points. Do you know roughly how much traffic a raspberry pi 3B can sustain? I'd have thought it could easily support about 100 users per day whom visit, say, 5 pages. I'm still thinking a pi could suffice for something small, and you could upgrade to a VPS or something when demand is more taxing
I get the following message after "submit". Please help.
Error establishing a database connection
This either means that the username and password information in your wp-config.php file is incorrect or we can’t contact the database server at localhost. This could mean your host’s database server is down.
awesome spacrex
Glad you like it!
Can I use OrangePi instead?
Would the 4GB be sufficient or the 8GB would be a better bet?
2 GB is more than enough!
You should use NGINX and install a LEMP server instead of LAMP since NGINX is much faster than Apache.
Instead of static ip can I do it using PPPOE?
You need to be able to open up port 80 and 443 to be able to do this
Good stuff bro. All these other references weren't working as easily as yours
Hey glad it worked!
The tutorial broke down for me at the 4:30 mark the commands brought back the MariaDB monitor and none of your commands worked. It was exciting up untill that point though!
So you were unable to execute the commands on the database?
@@SpaceRexWill I was also unable to execute the command for granting the privlidges, I had installed a newer mariadb 10.5, removed it and went to 10.3 - same error.
MariaDB [(none)]> GRANT ALL PRIVILEGES ON wordpress.* TO ‘root’@’localhost’ IDENTIFIED BY Sc0rp10ns;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'password1' at line 1
I have tried this (and Raspberry Pi Foundations writeup Build a LAMP Web Server with WordPress) and a number of other write-ups for installing WP on Raspberry Pi. The problem I have is: it just will not work. I'm not sure what the problem is, but I suspect it has to do with the new versions of WP and the way blocks works.
The Raspberry Pi storyline is sort of compelling: a cheap computer where you can run exiting stuff. But, you can't get hold of a Pi and a lot of the projects is unfortunately just a waste of time.
4:21 fast forwarding is what you need more of.. not seeing you
but... good content ; )
What "marina"? Its "maria"...
Why is RasperryPi so unsecure?
id rather SEE what it is your talking about more 2:40. up to 3 minutes of seeing your face. go straight to the code!! not YOU!
less of your heavily edited face shot.. which I'm sure you spent all day recording.
moving the face to the upper right would be helpful so current entry is not covered. Great video regardless.
Stop wobbling