Nginx + FastCGI

OS type and version: Ubuntu Linux 20.04.2
Webmin version: Webmin version 1.973
Virtualmin version: Virtualmin version 6.16
Related products version: Nginx version 1.18.0/PHP 8.0.9

I want to add FastCGI for ngnix but I couldn’t find anything useful to run in virtualmin
Also want remove completely Apache , older version of PHP and change the mysql to mariadb , and there is new version of ngnix but with command found in this forum it install the older version.



1-I need to add HTTP/2 in ngnix config file but I faced with error :

Also I tried any code but the resault was the same… and I don’t know what should I to fix that.

2-I found this tutorial for updating PHP
Is it fine to use that? and how remove older version like php 7.4?
If its true , how active the OPCache for php or other module?

3-I need to use ngnix with FastCGI for better performance , Would you please give me a lid or tell me how to achieve that?

With this link I could install Ngnix from beginning of virtualmin installation Lets start making new installation guide for any requirements and there is no more appache to remove , but still want to update the panel option like Ngnix latest version and changing MariaDB with Mysql.

4-I will use this server to run wordpress sites (would be 4 or 5 site with 1domain and 4 subdomains)


Yes. That’s the recommended way to install additional PHP versions, if you must do so. We don’t recommend it, but if you have to, that’s the best way we know how to do it. But, PHP 7.4 is compatible with pretty much everything, you don’t need to use anything else, and you probably do not need multiple PHP versions; you should try your deployment with 7.4 and see how it goes.

You cannot remove the default PHP version. It is a hard dependency in lamp or lemp stack packages (see: virtualmin-lamp-stack-ubu/virtualmin-lamp-stack-2004.ctl at master · virtualmin/virtualmin-lamp-stack-ubu · GitHub)

Install the php-opcache package and optionally configure it.

Install Virtualmin with the --bundle LEMP option.

Don’t follow random instructions you find on the internet (even if they are linked from our forums, anybody can post to the forums). While we appreciate folks writing up their experiences with Virtualmin, we can’t possibly vet every random tutorial on the web. You’re just as likely to get yourself into a mess as you are to solve problems, when following tutorials from random folks.

Do not do either of those things. Just use the version of nginx provided by your distribution, and the default database. Doing anything else is just asking for a lot of work for literally no benefit. MariaDB is a very fine MySQL compatible database that has widespread adoption and works with every major web app. The version of nginx provided by Ubuntu 20.04 will be better maintained and more secure than anything you can cook up on your own.

We can’t easily support you if you go off the rails and cut your own path through the wilderness.

Very experienced users can do whatever they want, of course, but if you have to ask basic questions like these, you should not even consider replacing major components of the system. Really, this is a bad idea. Don’t do it. You aren’t making your server better, you’re just making your life worse.

Edit: Wait, you’re wrong about default database in Ubuntu 20.04. MySQL is currently the default database for Virtualmin installations on all Ubuntu versions. You should not switch that either. Just use what you get when you install. They’re both fine!

1 Like

Hi Joe and thank for Helping and your nice recommendation
Would you please help me with these again?

Install Virtualmin with the --bundle LEMP option.

Is that the true command for installation ?
sh ./ --bundle LEMP

Install the php-opcache package and optionally configure it.
How ?

And what about the first question ? The HTTP/2 Protocol not working…

Please make new topics for new questions. Don’t bundle many questions into a single topic, it’s too hard to keep up with.

1 Like

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.