# Nginx + FastCGI

**URL:** <https://forum.virtualmin.com/t/nginx-fastcgi/111725>\
**Category:** Virtualmin\
**Created:** [August 7, 2021, 6:56am UTC](https://forum.virtualmin.com/t/nginx-fastcgi/111725 "2021-08-07T06:56:22Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![raha.ab](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/r/9dc877/32.png) [@raha.ab](https://forum.virtualmin.com/u/raha.ab)\
**Post date:** [August 7, 2021, 6:56am UTC](https://forum.virtualmin.com/t/nginx-fastcgi/111725/1 "2021-08-07T06:56:22Z")

</div>

| SYSTEM INFORMATION | |
| --- | --- |
| | |
| **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 |

Hi  
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.

## Thanks

---

<div class="post-metadata">

**Author:** ![raha.ab](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/r/9dc877/32.png) [@raha.ab](https://forum.virtualmin.com/u/raha.ab)\
**Post date:** [August 8, 2021, 3:11pm UTC](https://forum.virtualmin.com/t/nginx-fastcgi/111725/2 "2021-08-08T15:11:54Z")

</div>

Hi

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

 ![image](https://cdn.forum.virtualmin.com/uploads/default/original/2X/0/0189c2829d42f3a1c2f74455b938fc00737113cb.png)  
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  
[https://www.virtualmin.com/multiplephp/](https://www.virtualmin.com/multiplephp/)  
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](https://forum.virtualmin.com/t/lets-start-making-new-installation-guide-for-any-requirements/104891) 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)

Thanks

---

<div class="post-metadata">

**Author:** ![Joe](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/joe/32/9_2.png) [@Joe](https://forum.virtualmin.com/u/Joe)\
**Post date:** [August 8, 2021, 8:18pm UTC](https://forum.virtualmin.com/t/nginx-fastcgi/111725/3 "2021-08-08T20:18:39Z")

</div>

> [@raha.ab](#):
>
> 2-I found this tutorial for updating PHP  
> [Multiple PHP Versions – Virtualmin](https://www.virtualmin.com/multiplephp/)  
> Is it fine to use that?

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.

> [@raha.ab](#):
>
> and how remove older version like php 7.4?

You cannot remove the default PHP version. It is a hard dependency in lamp or lemp stack packages (see: [https://github.com/virtualmin/virtualmin-lamp-stack-ubu/blob/master/virtualmin-lamp-stack-2004.ctl](https://github.com/virtualmin/virtualmin-lamp-stack-ubu/blob/master/virtualmin-lamp-stack-2004.ctl))

> [@raha.ab](#):
>
> If its true , how active the OPCache for php or other module?

Install the php-opcache package and optionally configure it.

> [@raha.ab](#):
>
> 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?

Install Virtualmin with the `--bundle LEMP` option.

> [@raha.ab](#):
>
> With this link I could install Ngnix from beginning of virtualmin installation [Lets start making new installation guide for any requirements](https://forum.virtualmin.com/t/lets-start-making-new-installation-guide-for-any-requirements/104891) and there is no more appache to remove

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.

> [@raha.ab](#):
>
> but still want to update the panel option like Ngnix latest version and changing MariaDB with Mysql.

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!

---

<div class="post-metadata">

**Author:** ![raha.ab](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/r/9dc877/32.png) [@raha.ab](https://forum.virtualmin.com/u/raha.ab)\
**Post date:** [August 9, 2021, 4:46am UTC](https://forum.virtualmin.com/t/nginx-fastcgi/111725/4 "2021-08-09T04:46:21Z")

</div>

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 ./install.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…

---

<div class="post-metadata">

**Author:** ![Joe](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/joe/32/9_2.png) [@Joe](https://forum.virtualmin.com/u/Joe)\
**Post date:** [August 9, 2021, 5:30am UTC](https://forum.virtualmin.com/t/nginx-fastcgi/111725/5 "2021-08-09T05:30:05Z")

</div>

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

> [@Forum Guidelines: Please read before posting!](https://forum.virtualmin.com/t/forum-guidelines-please-read-before-posting/56897):
>
> In order to maximize our ability to help as many people as possible, and in order to keep things friendly and fun, we have some forum guidelines that we ask you to follow when posting new topics or commenting. I present them below in a delightful series of short “Dos and Don’ts” Do Focus! If you have multiple problems, make multiple posts. Do not combine several problems into one post. Include the following: Distro/version, when you installed, steps to cause the problem, any errors you got, re…

---

<div class="post-metadata">

**Author:** ![system](https://cdn.forum.virtualmin.com/uploads/default/original/2X/c/cd96d761e326db4b2bef94886a639109bd7a8e76.svg) [@system](https://forum.virtualmin.com/u/system)\
**Post date:** [August 17, 2021, 5:30am UTC](https://forum.virtualmin.com/t/nginx-fastcgi/111725/6 "2021-08-17T05:30:36Z")

</div>

Closed on August 17, 2021, 5:30am UTC

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