[Support] NightMeer ApachePHP8-Docker


Recommended Posts

  • 3 weeks later...
8 hours ago, Lionel60 said:

Hello,
I've installed your ApachePHP8-docker but I can't find where the php.ini is to indicate the extension to use to access my MariaDB database?
Sincerely
PS: Since I'm not fluent in English, I used a translation program.

 

Hey,

 

Good question.

I will try to add it today or tomorrow so that it will be available in 1-2 days. Unfortunately I forgot to include/export the PHP folder. 

Per Default the Mysqli Extension is installed and enabled. So you can use PHP commands to Connect to the Database.

 

I hope this is the Answer you want/need.

Edited by NightMeer
Link to comment
  • NightMeer changed the title to [Support] NightMeer ApachePHP8-Docker
  • 1 month later...
  • 3 weeks later...

Hi,

Thank you for the container, nice to a one that has PHP 8.

 

I am writing something in PHP and wanted to fork some child processes for certain http requests using pcntl_fork, however, it does not look like it is enabled in your container. 

 

Would you happen to have a version where pcntl is enabled or could you enable it and include the module?

 

Thank you 

Piyper

 

 

 

 

Link to comment
On 1/11/2024 at 8:12 PM, piyper said:

Hi,

Thank you for the container, nice to a one that has PHP 8.

 

I am writing something in PHP and wanted to fork some child processes for certain http requests using pcntl_fork, however, it does not look like it is enabled in your container. 

 

Would you happen to have a version where pcntl is enabled or could you enable it and include the module?

 

Thank you 

Piyper

 

 

 

 

Hey, 

 

I have added pcntl

Link to comment
  • 4 weeks later...

How do you enable additional sites? I tried following the standard Apache2 method of enabling an additional site on a different port but it fails. I also tried adding an additional port to the configuration and it does not map host to container.

 

I would like to host an addition site in /var/www/html/site2 on port 81. How do I do this?

 

Thanks in advance.

Link to comment
On 2/22/2024 at 7:46 PM, Michele Pietsch said:

Hello, I want to set port 443, how can I do that? When I add it in the settings nothing happens.

Assuming your network type on the docker is bridged, you probably want to stay away from using  80 or 443 to avoid any conflicts with unraid itself.

You could use 443 and 80 if you like, but you should then setup the docker to have a different IP address than your unraid server.  

 

To do this, you have to create a custom docker network, then choose that as your network type, you can then assign a new IP address. Make sure it is not within the range of your DHCP server IP range if you are using an IP within the same subnet.

 

You would use the "docker network create SOMENAME" command to create a custom network, then you can specify a different IP in your docker when you select that network type.

 

Steps:

1) Check that in your docker settings (settings->docker->advanced view) you have "Preserve user defined networks" set to yes.

2) Create custom docker network

3) select that custom network in your docker container settings

4) assign an IP (that will not conflict with your DHCP range)

5) set the container ports to be 80 and 443 

 

Your web app should now respond on the browser default ports at that new IP address.

 

Edited by piyper
Link to comment
  • 2 weeks later...

I am working a utility that connects to multiple databases.

 

Could you please some data database driver extensions  ?
pdo_odbc.so

odbc.so

 

if there are specific ones for MS SQL Server or Oracle, I wouldn't mind those, but I think ODBC would cover those.

 

Thank you!

Edited by piyper
Link to comment

Sorry for a bit of a newbie question, but how would I go about installing python support for apache using this Docker?  I think I need to add a2enmod cgid - is it possible to do this from the setup so I can do across multiple sites rather than doing any manual configuration? 

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.