[057] Installing WordPress on Debian Linux on a Google Cloud virtual Machine

Sdílet
Vložit
  • čas přidán 6. 09. 2024
  • This video demonstrates how to install WordPress on Debian Linux on a Google Cloud virtual machine.
    Commands used in the video:
    cd /var/www/html/
    wget wordpress.org/...
    tar -xzvf latest.tar.gz
    sudo chown -R www-data:www-data /var/www
    sudo chmod -R g+w /var/www
    sudo mysql -u root
    CREATE DATABASE wordpress;
    CREATE USER 'wordpress'@'localhost' IDENTIFIED BY 'mysupersecurewordpresspassword';
    GRANT SELECT, INSERT, UPDATE, DELETE, CREATE ON wordpress.* TO 'wordpress'@'localhost';
    exit
    Use WinSCP to rename "wp-config-sample.php" to "wp-config.php"
    Edit wp-config.php to include your database credentials
    - or -
    mv wordpress/wp-config-sample.php wordpress/wp-config.php
    nano wordpress/wp-config.php

Komentáře • 16

  • @pavan248
    @pavan248 Před rokem

    Thanks a lot, It helped me to install wordpress.

  • @GoodNightLois
    @GoodNightLois Před 2 lety

    If your having a permission "denied error" please make sure you you put sudo in front of your command

    • @russellthackston1997
      @russellthackston1997  Před 2 lety +1

      True! But be aware that any files/folders created or edited (while running a command with "sudo") will now belong to the "root" user. If it's not a system file/folder, you'll need to give back ownership to yourself with the "chown" command.

    • @GoodNightLois
      @GoodNightLois Před 2 lety +1

      @@russellthackston1997 thank you for letting us know

  • @katelynrobertson6530
    @katelynrobertson6530 Před 3 lety

    Hello, I am returning an error message when i attempt to change the file named wordpressconfig_sample to wordpress config. It is saying error 3 and that I do not have access to this. I switched it www-data so I am not sure why this is happening or how to fix it.

  • @summer4245
    @summer4245 Před rokem

    didint worked . no instructions how to set up virtual host

  • @nicoinman4276
    @nicoinman4276 Před 4 lety

    when i attempted to visit my wordpress for the first time, i received an error message saying 'Your PHP installation appears to be missing the MySQL extension which is required by WordPress'

    • @tjlanier4647
      @tjlanier4647 Před 4 lety +1

      My issue was that I had not properly installed Myadminphp, after going back and redoing video 22, it fixed my problem.

  • @diamondmonger7659
    @diamondmonger7659 Před 3 lety

    Im getting -bash: wget:command not found

    • @summer4245
      @summer4245 Před rokem

      sudo
      always go as SUdo su , takes you to root

  • @tjlanier4647
    @tjlanier4647 Před 4 lety

    when I try to do the wget for wordpress,
    I get an error that says "Cannot write to ‘latest.tar.gz’ (Permission denied)."
    How do I fix this?

    • @tjlanier4647
      @tjlanier4647 Před 4 lety

      @@russellthackston1997 Even after running these both in and our of /var/www/html/
      it still gives me the same message..... any ideas on where to go from here?

    • @tjlanier4647
      @tjlanier4647 Před 4 lety

      @@russellthackston1997 Thanks for the help this worked out. (Your'e a GOD)

    • @tjlanier4647
      @tjlanier4647 Před 4 lety

      @@russellthackston1997 Ok, I hate to message again, but I have followed the steps after my previous issue was completed and I am on the step where I change the ending of my URL to (IP ADDRESS/wordpress/) and it gives me a message that says
      'Your PHP installation appears to be missing the MySQL extension which is required by WordPress.'
      The rest of the steps in the video went correctly, what have I messed up here?

    • @RussellThackston
      @RussellThackston Před 4 lety

      @@tjlanier4647 You have to restart apache and/or mysql.
      sudo systemctl restart mysql
      sudo systemctl restart apache2

    • @tjlanier4647
      @tjlanier4647 Před 4 lety

      @@RussellThackston I had incorrectly installed myadminphp and that's why I had the issue. It is correctly working now. Thanks for all the help and sorry about all that.