Manage Extension by Project

OS Linux WSL Docker
Virtualmin GPL

Hello friends, I am looking for support with this tool, I want you to tell me if the following can be done:

  1. suppose I have a docker container with the image php:8.2-apache-bulleyes installed by default…

  2. but within this I want to manage multiple projects separately (same version of PHP)

Question: Is it possible to manage extensions for each project? What differentiates them is the vhost for each project.

Where is virtualmin installed before docker or within the docker container? it would be better to supply the system information from virtualmin to give an idea on how your system is set up

Hello, I have not yet deployed the tool, first I am checking if the tool can cover the need. In theory I planned to install virtualmin in each (inside) LAMP container.

and from there offer a url like this: ext.php8.2.dock
that can enter the virtualmin tool web interface

Once I am in the tool (web interface), my goal is to be able to show the user the virtual host of each site/project, I think they will be located in /site-enable/

In theory I thought that virtualmin could place the php extensions enabled on each virtual host of each site:


<VirtualHost *:80>
    ServerName example.com
    DocumentRoot /var/www/example
    
	# added by Extension Manager
    php_value extension=mi_extension.so 

</VirtualHost>

but I don’t know if it is within virtualmin’s capabilities to offer users/developers the possibility of doing this management…

Yes it can but I’m not sure if virtualmin would see any config/domains setup in a docker image. Just wondering why you need docker images unless wsl is a very cut back version of ubuntu tbf i have not used windows in this century so my knowledge of modern windows systems is very limited perhaps there is someone on the forum that has installed virtualmin and will have better knowledge than I

haaaa are you worried about windows… let’s say windows is the host operating system… windows 11 to be more exact…

Well the truth is that docker through WSL creates a virtual network and container environment and each container runs a version of Linux, in this case I am working with bull-eyes so the docker images that would be used to create each PHP container would be something like:

php:7.4-apache-bulleyes
php:8.0-apache-bulleyes
php:8.2-apache-bulleyes
php:8.3-apache-bulleyes

I’ll put you in context… if you visit this link on the Docker forum, I’m proposing the development of a tool that would help me as a developer:

The problem or rather what I have yet to solve is when there are 2 projects that share a version of PHP, they require different extensions.

something like shared-hosting / multiple domains… in cpanel for domains.

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