How To Setup WordPress on an Nginx LEMP Server

Тәжірибелік нұсқаулар және стиль

Learn how to setup a WordPress website on a LEMP server running Ubuntu 18.04 with Nginx. In this tutorial, we will manually download and install WordPress, setup the WordPress database, enter the database credentials in the wp-config.php file, and configure Nginx to work with WordPress.
Need an Nginx LEMP server? • How to Install a LEMP ...
Find more at tonyteaches.tech/wordpress-on...
Check out my vlog channel ‪@TonyFlorida‬
#lemp #nginx

Пікірлер: 105

  • @savashzaynal6502
    @savashzaynal6502 Жыл бұрын

    Aside from the very clear and good information, tutorial and the presentation I really like your manner there is a humbleness and calmness which is really nice and not like those over energetic people I feel like they are going to come through the screen and jump on me.

  • @Bielocke
    @Bielocke3 жыл бұрын

    This was a great tutorial. You saved me!

  • @TonyTeachesTech

    @TonyTeachesTech

    3 жыл бұрын

    Glad I could help!

  • @sudoalex
    @sudoalex3 жыл бұрын

    Thank you Tony. You're great explaining I just found your channel

  • @TonyTeachesTech

    @TonyTeachesTech

    3 жыл бұрын

    Awesome, thank you! I'm happy to hear that

  • @nousernamealexander
    @nousernamealexander11 ай бұрын

    Thanks, the tutorial is very clear

  • @khanriza
    @khanriza Жыл бұрын

    This was a great tutorial!!!!

  • @TonyTeachesTech

    @TonyTeachesTech

    Жыл бұрын

    Thanks Riza

  • @federicolombardozzi4734
    @federicolombardozzi47343 жыл бұрын

    YOU SAVED ME, I LOVE YOU

  • @TonyTeachesTech

    @TonyTeachesTech

    3 жыл бұрын

    Happy to help!

  • @mikerollin4073
    @mikerollin40732 жыл бұрын

    Great stuff thanks

  • @bambanx
    @bambanx4 жыл бұрын

    thanks for share Tony

  • @TonyTeachesTech

    @TonyTeachesTech

    4 жыл бұрын

    You bet

  • @joashcrawford1325
    @joashcrawford1325 Жыл бұрын

    Legend thank you so much!

  • @TonyTeachesTech

    @TonyTeachesTech

    Жыл бұрын

    No problem 👍

  • @aaronbell5994
    @aaronbell59943 жыл бұрын

    You rock, Tony

  • @TonyTeachesTech

    @TonyTeachesTech

    3 жыл бұрын

    Thanks Aaron!

  • @michelemincone1788
    @michelemincone1788 Жыл бұрын

    Hello Tony, great tutorial. Direct and well explained! Have you ever thought to make a tutorial on how to install and config rediscache or memcache or how to install phpmyadmin?

  • @razvanmisaras8009
    @razvanmisaras8009 Жыл бұрын

    Amazing!

  • @TonyTeachesTech

    @TonyTeachesTech

    Жыл бұрын

    Thanks!

  • @hosseinse4079
    @hosseinse40792 ай бұрын

    thank u

  • @quanganh3315
    @quanganh33153 жыл бұрын

    thanks a lot

  • @TonyTeachesTech

    @TonyTeachesTech

    3 жыл бұрын

    You are most welcome

  • @MemesOfMirzapur
    @MemesOfMirzapur3 жыл бұрын

    Make video on server caching on NGINX basically performance tuning of NGINX

  • @TonyTeachesTech

    @TonyTeachesTech

    3 жыл бұрын

    Sure thing!

  • @Ninjamtt7
    @Ninjamtt7 Жыл бұрын

    If i reinstalled nginx, (some issues trying to install certbot) on a lemp system and purged it before the reinstall, is there a video or portion of this to follow to reset/ fix the configurations for its link to Wordpress? Previously aws set it up automatically

  • @pramodbadanapuram9578
    @pramodbadanapuram9578 Жыл бұрын

    I cant see site-available what should to do now

  • @randomperson712
    @randomperson7123 жыл бұрын

    Very good tutorial. The only problem I had was with the sites-available/default edit. I am self hosting so I found that I had to remove some comments in the area of the pass PHP scripts to FastCGI server. Other that that it was perfect. Thanks

  • @TonyTeachesTech

    @TonyTeachesTech

    3 жыл бұрын

    Happy to hear you got it working. Thanks Random Person :)

  • @randomperson712

    @randomperson712

    3 жыл бұрын

    Almost off the ground. The only problem Im having now is that uploads to the Media Library seem to be limited to 1MB max. Its always something.

  • @youngElephant

    @youngElephant

    10 ай бұрын

    @@randomperson712 That can be changed in the upload limit

  • @DarkNightSonata
    @DarkNightSonata4 жыл бұрын

    hi, thank you very much for this tutorial. I love your videos, they're straight to the point and very clear, keep it up. one question, I notice that for example, Linode, offer a one-click installation of wordpress, which one do you think is better? like do it manually like in this tutorial or use the one click? I'm asking, since I'm not very familiar with the backend work and doing things manually might have some security flaws, whereas, I assume the one-click installation is already configured securely by professionals. Thanks

  • @TonyTeachesTech

    @TonyTeachesTech

    4 жыл бұрын

    Thank you for your kind words. Yes, that's exactly what I would tell people like you who are not familiar with the backend.... By installing WordPress manually, you will miss out on some of the "freebies" that you get with the one-click install such as security at the web server level (Apache/Nginx) and optimizations.

  • @artanhysenaj4401
    @artanhysenaj44012 жыл бұрын

    Error establishing a database connection, how do i fix this

  • @jagadeeshch7061
    @jagadeeshch70612 жыл бұрын

    Tip: You may use "nginx -s reload" to reload config instead of Nginx restart as restart breaks all connections and active processes. Just to confirm there aren't any syntax errors, issue "nginx -t"

  • @TonyTeachesTech

    @TonyTeachesTech

    2 жыл бұрын

    Thanks for pointing this out!

  • @razvanmisaras8009
    @razvanmisaras8009 Жыл бұрын

    Hey Tony, i didn't have index.php added i didn't have the php cgi stuff uncommented, lucky I found out about that.

  • @dianatshibangu1975
    @dianatshibangu1975 Жыл бұрын

    Hi Tony, I've followed all the instructions, I mistakenly deleted both default file from /etc/nginx/sites-available/default and /etc/nginx/sites-enabled/ that's where I' stuck. I tring to create new files they are not working. Please advise? C

  • @amitabh7816
    @amitabh78163 жыл бұрын

    make video on installing wordpress in laravel like site.com/blog , spcly nginx config...

  • @edwarddonnelly2937
    @edwarddonnelly29372 ай бұрын

    Did I miss something as I'm getting 403 error at setup page

  • @Mosestylez
    @Mosestylez Жыл бұрын

    Would this also work on a raspberry pi 4? :)

  • @LifeAtlas
    @LifeAtlas4 жыл бұрын

    Can you also make a video for how to setup a .net core environment on nginx? Do you have any videos on security for nginx?

  • @TonyTeachesTech

    @TonyTeachesTech

    4 жыл бұрын

    Sorry, I have no experience with or intention to do any .NET tutorials. As of now, I don't have any nginx security videos, but I'll put it on the list of potential future topics.

  • @LifeAtlas

    @LifeAtlas

    4 жыл бұрын

    @@TonyTeachesTech I see, thank you for your reply, it is very much appreaciated!

  • @adipatileather6560
    @adipatileather656011 ай бұрын

    500 Internal Server Error please helpme

  • @pinkdulin7641
    @pinkdulin76413 жыл бұрын

    2:37 i first understand "i dont have to put in user, because im rude" and i was like .. eeh oke .. xD

  • @TonyTeachesTech

    @TonyTeachesTech

    3 жыл бұрын

    LOL how funny is that!

  • @SanjeevSingh-nl5ii
    @SanjeevSingh-nl5ii2 жыл бұрын

    Great tutorial. But what about WordPress .htaccess file. If I use w3 total cache with disk enhanced cache then it saves cached files in disk and uses htaccess. What to do here help me plz

  • @jesseth9419

    @jesseth9419

    Жыл бұрын

    htaccess is apache

  • @mwardell18290
    @mwardell182903 жыл бұрын

    i would love to know if this could be secured as easily as running '$sudo certbot' and following the menu?

  • @TonyTeachesTech

    @TonyTeachesTech

    3 жыл бұрын

    Yes, if you have properly configured Nginx with your domain name and your DNS settings point to your server, then you can use certbot to issue an SSL cert for your website.

  • @Erikdulcesaludcl
    @Erikdulcesaludcl2 жыл бұрын

    Hi, Tony, I followed your videos to configure lemp and finished with this one by installing wordpress. The only thing different that I did, was that I did not install the internal database, but an external one (aws aurora). Everything looks fine, but I get a 403 error when launching the web page. What can be producing this error? Thank you very much, I have learned a lot from your videos.

  • @TonyTeachesTech

    @TonyTeachesTech

    2 жыл бұрын

    A chance that this video might help you kzread.info/dash/bejne/YmWIl6yDd7qaj8Y.html

  • @kamsulaman7007
    @kamsulaman70072 жыл бұрын

    thank you so much, for anyone having problem with User creation in mysql you can follow these commands: CREATE DATABASE wordpress DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci; CREATE USER 'wordpressuser'@'localhost' IDENTIFIED BY 'password'; GRANT ALL ON wordpress.* TO 'wordpressuser'@'localhost';

  • @TechGurugCom
    @TechGurugCom3 жыл бұрын

    I run multiple sites. My letsencrypt had messed up site-available config. Do you have any sample for free ssl site config ?

  • @TonyTeachesTech

    @TonyTeachesTech

    3 жыл бұрын

    I have an example Nginx config file on my website here tonyteaches.tech/wordpress-on-nginx-server/

  • @wilsoncounty7051
    @wilsoncounty70513 жыл бұрын

    Hey Tony, I love your channel. I have a question, how is doing the wordpress setup manually as shown in your video, how is this manual way "better" than just having vultr or DO just add wordpress to the server during setup. I realize this is probably an easy answer, I am a newbie. Thanks!

  • @wilsoncounty7051

    @wilsoncounty7051

    3 жыл бұрын

    In other words, what is the benefit of doing all this if wordpress can be setup automatically?

  • @TonyTeachesTech

    @TonyTeachesTech

    2 жыл бұрын

    Good question. There isn't much of a benefit of installing WordPress manually. Doing it yourself, you will have more control over the type of database you create, the name of the database, the username, password, etc. Also, you will learn a bit about how everything works under the hood if you do it yourself

  • @ddrci88
    @ddrci883 жыл бұрын

    Can you Tell is your blog web site is which os/ web server / cache and other stuff it’s so fast :)

  • @TonyTeachesTech

    @TonyTeachesTech

    3 жыл бұрын

    Yes I am working on a video about this topic now... tonyteaches.tech/wordpress-pagespeed-insights-score/ But in the meantime, I use WPX hosting which uses LiteSpeed and installed W3 Cache and EWWW Images Optimizer. No unnecessary plugins!

  • @MrLazini
    @MrLazini2 жыл бұрын

    This is a good tutorial I've got a question, why create a user and a password in the MySQL database if you don't use it at all ? Is it just a precondition for MySQL to run properly ?

  • @insanitygamer_vibing

    @insanitygamer_vibing

    7 ай бұрын

    wordpress accesses the database as a user, so as to make configuration easier

  • @terrahasher
    @terrahasher2 жыл бұрын

    Hi Tony, nice video, now i have a question: how to do this in a docker container as you can only run 1 service at the time in a docker container. so you have to make 2 docker containers or do i miss something here?

  • @TonyTeachesTech

    @TonyTeachesTech

    2 жыл бұрын

    Sorry but I'm not familiar with Docker containers

  • @awinashsumit4070
    @awinashsumit40702 жыл бұрын

    How to setup smtp on LEMP server ?

  • @TonyTeachesTech

    @TonyTeachesTech

    2 жыл бұрын

    Maybe one of these videos will help you kzread.infosearch?query=email

  • @prateekshukla7666
    @prateekshukla76663 жыл бұрын

    As I reload the page at 9:55, I get an error saying "Error establishing the connection to the database"

  • @stevenreybritez

    @stevenreybritez

    3 жыл бұрын

    same

  • @TonyTeachesTech

    @TonyTeachesTech

    3 жыл бұрын

    Please make sure the database credentials match the credentials you provided when creating the database!

  • @ddrci88
    @ddrci883 жыл бұрын

    How to install ftp , wordpress asking ftp confirmation when I try to delete plugin :)

  • @TonyTeachesTech

    @TonyTeachesTech

    3 жыл бұрын

    This should help you kzread.info/dash/bejne/moSppMGyiMnIe5M.html

  • @MattDeezly
    @MattDeezly9 ай бұрын

    Just simply does not work, followed everything to a T. Even used digital ocean. When I go to make the user it just outputs " -> "

  • @Monstajamsofficial
    @Monstajamsofficial3 жыл бұрын

    Nice video, please how can I solve website from going to 404 after I change permalink?

  • @TonyTeachesTech

    @TonyTeachesTech

    3 жыл бұрын

    Please use the Redirection WordPress plugin to redirect the old URL to the new URL wordpress.org/plugins/redirection/

  • @Monstajamsofficial

    @Monstajamsofficial

    3 жыл бұрын

    Tony Teaches Tech I think it’s something with Nginx, anyway I can solve it ??

  • @TonyTeachesTech

    @TonyTeachesTech

    3 жыл бұрын

    @@Monstajamsofficial You will need to look at the Nginx error logs (usually in /var/log/nginx) to get more information about what's going on

  • @joel9909
    @joel99094 жыл бұрын

    Would these apply on localhost??

  • @TonyTeachesTech

    @TonyTeachesTech

    4 жыл бұрын

    Definitely

  • @agamurat3019
    @agamurat30193 жыл бұрын

    will it work without generating keys

  • @TonyTeachesTech

    @TonyTeachesTech

    3 жыл бұрын

    What keys are you referring to?

  • @NullableIsLive

    @NullableIsLive

    11 ай бұрын

    @@TonyTeachesTech salts

  • @yoyobvai4270
    @yoyobvai42703 жыл бұрын

    permission denied?? please solve this

  • @TonyTeachesTech

    @TonyTeachesTech

    3 жыл бұрын

    It is a 403 forbidden error from Nginx? If so, make sure you have your index directive properly configured in your Nginx conf files. Additionally, make sure your website files have a 644 permission and folders have 755.

  • @meliketuran4866
    @meliketuran48663 жыл бұрын

    hi Tony! That is really great one thanks for that. my problem is that there is no digitalocean file in /etc/nginx/sites-available and i think thats why i cannot reach wp admin installation page. How can i solve this?

  • @TonyTeachesTech

    @TonyTeachesTech

    3 жыл бұрын

    Sounds like either: A) your using Apache... check for /etc/apache2/... B) you need to install Nginx... sudo apt-get install nginx

  • @antarikshaakash

    @antarikshaakash

    3 жыл бұрын

    Hey Tony i am facing the same problem

  • @antarikshaakash

    @antarikshaakash

    3 жыл бұрын

    @@TonyTeachesTech hey tony, installed nginx following your other video but there is no digitalocean file in etc/nginx/sites-available just default

  • @tylerrutt17

    @tylerrutt17

    2 жыл бұрын

    @Tony Teaches Tech hey tony, having same issue as melike turan. No digital ocean file, just the default

  • @mrmillford

    @mrmillford

    2 жыл бұрын

    @@TonyTeachesTech Hey tony, I'm in the same boat as these fellows. Just the default file present. I tried editing the root file to /var/www/html/wordpress there but my site is 403 forbidden. Is there something else I can do here? Please, it's frustrating getting to the final step and it still not working!

  • @ddrci88
    @ddrci883 жыл бұрын

    for begginner who is trying to follow Tony instruction if your mysql version is 8 shortcode dropped by mysql so it wont work, please follow this command : CREATE USER 'ohbabygodeep'@'localhost' IDENTIFIED BY 'secretareadontgodeep'; - GRANT ALL ON ohbabygodeep.* TO 'secretareadontgodeep'@'localhost';

  • @khaidude
    @khaidude3 жыл бұрын

    Copied you and it is not working. error 1064 42000. I'm trying to do this with ubuntu 20.04 in virtualbox. HELP

  • @TonyTeachesTech

    @TonyTeachesTech

    3 жыл бұрын

    After a quick Google search, it seems like Error 1064 (42000) is a syntax error. Possibly because you have a ' instead of a ` or something else like that. Double check what you are typing or or copying and pasting. If you're copying and pasting, it's always a good idea to paste into something like Notepad or Textedit first to strip any weird formatting. Let me know if you can get it to work.

  • @khaidude

    @khaidude

    3 жыл бұрын

    Tony Teaches Tech I’ve watched a bunch of times and I think I see what I’m doing wrong. I’ll try again tomorrow!

  • @khaidude

    @khaidude

    3 жыл бұрын

    Tony Teaches Tech nope. “ You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘grant all on database_name.* to ‘database_user’@‘localhost’ identified by ‘ ‘ at line 1 “

  • @khaidude

    @khaidude

    3 жыл бұрын

    Tony Teaches Tech also... It says I have version 8.0.21 and Ubuntu is 20.04.4! And for what it is I want to do, I want to host my own site for free on my home computer. Thanks

  • @TonyTeachesTech

    @TonyTeachesTech

    3 жыл бұрын

    @@khaidude maybe try the official instructions from wordpress.org which might work with your version wordpress.org/support/article/creating-database-for-wordpress/#using-the-mysql-client

  • @adeled8833
    @adeled88333 жыл бұрын

    Why Apache when the title says Nginx

  • @TonyTeachesTech

    @TonyTeachesTech

    3 жыл бұрын

    Did I say Apache?

  • @adeled8833

    @adeled8833

    3 жыл бұрын

    Tony Teaches Tech 0:45, sorry, didn’t catch the Nginx pic

  • @TonyTeachesTech

    @TonyTeachesTech

    3 жыл бұрын

    @@adeled8833 😂 no worries

  • @Nimitz_oceo
    @Nimitz_oceo Жыл бұрын

    video is ok but at 8:55 asking viewers to create their own configuration file where 2 main directories are missing (sites available and site-enabled) is a bit of a strecht and probably just left many people infuriated by not being able to complete the task. You left out many important details that could have been more helpful. Sorry for the rant but that's how it feels.

  • @eduarguz15
    @eduarguz15 Жыл бұрын

    Getting "403 Forbidden nginx/1.18.0 (Ubuntu)" on /wp-admin to install, I've followed several tutorials on how to get wp running, none of them have worked for me :(

Келесі