05-19-2021, 11:25 PM
This tutorial WORKS! Thanks so much for posting it @Mashiro. It trumps all other tutorials I tried. What made it work for me are the parts that possibly the authors of those tutorials took for granted:
1. 3rd party repositories
2. Firewall rules - the way you created it I suspect worked better in the end for opening those ports
3. Nginx default vHost configuration for domain and Fix PHP-FPM pool listen user and group
- I believe the lack of this in the tutorials I've worked through before or omission of important parts to set my domain up was at the core of my 404 pages. Your replacing www-data with nginx I haven't seen before. I think that made a major difference too.
Your explanation of the steps and why they are needed was brilliant every step of the way. Many thanks for that!
Only hickup I got right at the beginning, and maybe you want to edit this is to make nginx lower case. When I copied the first command for installing it with the uppercase N, it came up with a "not found".
Then next hickup was at the point where I had to provide WP with the database, user and password. It couldn't find the database. I suspect it had to do with the difference in commands. I had quite a lot of practice in creating MariaDB databases over the last few days, so followed my own commands. So when I used the command below and it came up with an error I ignored it. The command I used previously was:
I verified that the privileges had been given and it looked OK for me to proceed, but looks like something had gone wrong.
I then created a new user and used your command instead which excluded privileges:
I also restarted mariadb and nginx.
And then it worked perfectly! I was so very pleased as you can well imagine. All permissions were right on the mark. I could delete and install plugins and do as I usually do.
Just by way of feedback if other users were interested. I installed a fresh install of Debian 8. I then upgraded it to Debian 10 with Mashiro's upgrade tutorial to Debian 10. This was the second time I did this upgrade from a fresh install of Debian 8. Previously when I had loaded myVestaCP it mentioned that I had software that may interfere with my installation of the panel - Exim4. So I removed that as I had previously.
Like with the tutorial for upgrading Debian to Debian 10, I sailed very easily through all of Mashiro's steps. It was a pleasure to work with it. Again, MANY THANKS for going to so much trouble. It's much appreciated!
@Mashiro I'm not planning to make a php change for now as I realize it may break the WP installation, however if in future I'd like to use a lower version of php like 7.3 - would it be possible with the installation command to just replace all instances of 8.0 with 7.3? Which of the lower versions is the more stable version to use? 7.3 or 7.4? I won't be doing it immediately, as the blog I imported works perfectly with php 8.0. This is just for future reference.
1. 3rd party repositories
2. Firewall rules - the way you created it I suspect worked better in the end for opening those ports
3. Nginx default vHost configuration for domain and Fix PHP-FPM pool listen user and group
- I believe the lack of this in the tutorials I've worked through before or omission of important parts to set my domain up was at the core of my 404 pages. Your replacing www-data with nginx I haven't seen before. I think that made a major difference too.
Your explanation of the steps and why they are needed was brilliant every step of the way. Many thanks for that!
Only hickup I got right at the beginning, and maybe you want to edit this is to make nginx lower case. When I copied the first command for installing it with the uppercase N, it came up with a "not found".
Then next hickup was at the point where I had to provide WP with the database, user and password. It couldn't find the database. I suspect it had to do with the difference in commands. I had quite a lot of practice in creating MariaDB databases over the last few days, so followed my own commands. So when I used the command below and it came up with an error I ignored it. The command I used previously was:
Code: (Select All)
GRANT ALL PRIVILEGES ON database.* TO '[DBuser]'@'localhost';
I verified that the privileges had been given and it looked OK for me to proceed, but looks like something had gone wrong.
I then created a new user and used your command instead which excluded privileges:
Code: (Select All)
GRANT ALL ON database.* TO 'DBuser'@'localhost';
I also restarted mariadb and nginx.
And then it worked perfectly! I was so very pleased as you can well imagine. All permissions were right on the mark. I could delete and install plugins and do as I usually do.
Just by way of feedback if other users were interested. I installed a fresh install of Debian 8. I then upgraded it to Debian 10 with Mashiro's upgrade tutorial to Debian 10. This was the second time I did this upgrade from a fresh install of Debian 8. Previously when I had loaded myVestaCP it mentioned that I had software that may interfere with my installation of the panel - Exim4. So I removed that as I had previously.
Like with the tutorial for upgrading Debian to Debian 10, I sailed very easily through all of Mashiro's steps. It was a pleasure to work with it. Again, MANY THANKS for going to so much trouble. It's much appreciated!
@Mashiro I'm not planning to make a php change for now as I realize it may break the WP installation, however if in future I'd like to use a lower version of php like 7.3 - would it be possible with the installation command to just replace all instances of 8.0 with 7.3? Which of the lower versions is the more stable version to use? 7.3 or 7.4? I won't be doing it immediately, as the blog I imported works perfectly with php 8.0. This is just for future reference.