[057] Installing WordPress on Debian Linux on a Google Cloud virtual Machine
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
Thanks a lot, It helped me to install wordpress.
If your having a permission "denied error" please make sure you you put sudo in front of your command
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.
@@russellthackston1997 thank you for letting us know
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.
didint worked . no instructions how to set up virtual host
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'
My issue was that I had not properly installed Myadminphp, after going back and redoing video 22, it fixed my problem.
Im getting -bash: wget:command not found
sudo
always go as SUdo su , takes you to root
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?
@@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?
@@russellthackston1997 Thanks for the help this worked out. (Your'e a GOD)
@@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?
@@tjlanier4647 You have to restart apache and/or mysql.
sudo systemctl restart mysql
sudo systemctl restart apache2
@@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.