Nginx and PHP using without Database? Topic is solved

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
Post Reply
wmcig
Posts: 39
Joined: Wed Aug 25, 2021 12:17 pm

Nginx and PHP using without Database?

Post by wmcig »

In the software center I can see different Packages for using a webserver with PHP and a database.

How can I use only Nginx and PHP together? Is there also a stack like the other packages?
User avatar
Joulinar
Posts: 6441
Joined: Sat Nov 16, 2019 12:49 am

Re: Nginx and PHP using without Database?

Post by Joulinar »

Simply select Nginx and PHP as individual software packages. Usually this should not pull a database.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
User avatar
MichaIng
Site Admin
Posts: 3514
Joined: Sat Nov 18, 2017 6:21 pm

Re: Nginx and PHP using without Database?

Post by MichaIng »

Actually it is hidden from the list in favour of the stacks, something I wanted to chance since a long time. You can use the "Seach" option to find "nginx" and "php", or install it via CLI:

Code: Select all

dietpi-software install 85 89
ID 85 is Nginx, 89 is PHP.
wmcig
Posts: 39
Joined: Wed Aug 25, 2021 12:17 pm

Re: Nginx and PHP using without Database?

Post by wmcig »

I installed Nginx.

I could not install PHP. Everytime it says that no changes have been detected. Unable to start the installation.

I searched for it in the software center and it also selected LESP & LLSP .

In the whole list I can not find PHP. The list ends at XFCE Power Manager 175.

How to see which PHP version maybe is installed?
User avatar
Joulinar
Posts: 6441
Joined: Sat Nov 16, 2019 12:49 am

Re: Nginx and PHP using without Database?

Post by Joulinar »

On Debian Buster, PHP7.3 will be installed. On Bullseye it will be PHP7.4 https://packages.debian.org/search?suit ... ywords=PHP

To install PHP just run following non command line

Code: Select all

dietpi-software install 89
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
wmcig
Posts: 39
Joined: Wed Aug 25, 2021 12:17 pm

Re: Nginx and PHP using without Database?

Post by wmcig »

Joulinar wrote: Mon Oct 25, 2021 10:23 am On Debian Buster, PHP7.3 will be installed. On Bullseye it will be PHP7.4 https://packages.debian.org/search?suit ... ywords=PHP

To install PHP just run following non command line

Code: Select all

dietpi-software install 89
Thanks for that.

It was already installed. :roll:
Post Reply