Skip to content

Conversation

@Rajakavitha1
Copy link
Collaborator

@Rajakavitha1 Rajakavitha1 commented Jul 30, 2025

created a new guide for Ubuntu24.04 after testing and validating

ubuntu2404apache.txt
apachedebian12.txt

ubuntu2404
Screenshot 2025-07-31 at 8 12 49 PM

PS: The prefork MPM is the default module that is enabled and loaded in Ubuntu 24.04 and on Debian 12

rajie@apache:~$ sudo apache2ctl -M
Loaded Modules:
 core_module (static)
 so_module (static)
 watchdog_module (static)
 http_module (static)
 log_config_module (static)
 logio_module (static)
 version_module (static)
 unixd_module (static)
 access_compat_module (shared)
 alias_module (shared)
 auth_basic_module (shared)
 authn_core_module (shared)
 authn_file_module (shared)
 authz_core_module (shared)
 authz_host_module (shared)
 authz_user_module (shared)
 autoindex_module (shared)
 deflate_module (shared)
 dir_module (shared)
 env_module (shared)
 filter_module (shared)
 mime_module (shared)
 mpm_prefork_module (shared)
 negotiation_module (shared)
 php_module (shared)
 reqtimeout_module (shared)
 setenvif_module (shared)
 status_module (shared)
rajie@apache:~$ cd /etc/apche2/mods-available

Please confirm if this content needs to be updated accordingly:

Multi-processing Modules

Apache supports several models for handling connections through a particular kind of module: Multi-processing Modules (MPMs). On Ubuntu and many other Linux distributions, the event module is Apache's default MPM. This section provides an overview of each of the three MPMs available and gives you the necessary commands for using them.

Prefork Module

This MPM provides a single-threaded server. It has a single-parent process that spawns child processes, each of which is responsible for a single incoming request. While the prefork MPM is more resource-intensive, it is necessary for applications that do not support multiple threads, like PHP.

  1. Enable the prefork MPM. Be sure to first disable your current MPM — the event MPM in this example:

    sudo a2dismod mpm_event
    sudo a2enmod mpm_prefork
  2. Find the configuration file for the prefork MPM here: /etc/apache2/mods-available/mpm_prefork.conf. Modify the defaults as needed.

    The prefork MPM is considered highly self-regulating, so usually it is not necessary to adjust its default configuration. However, you may want to review the MaxRequestWorkers value. You should ensure that it is large enough to handle the expected request volume but small enough not to exceed hardware memory limits.

PS: the version of php on Debain 12 is php8.2

@Rajakavitha1 Rajakavitha1 requested a review from jddocs July 30, 2025 08:44
@netlify
Copy link

netlify bot commented Jul 30, 2025

Deploy Preview for nostalgic-ptolemy-b01ab8 ready!

Name Link
🔨 Latest commit 92ce3ff
🔍 Latest deploy log https://app.netlify.com/projects/nostalgic-ptolemy-b01ab8/deploys/6889da6085a20a000861ca2c
😎 Deploy Preview https://deploy-preview-7315--nostalgic-ptolemy-b01ab8.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@Rajakavitha1 Rajakavitha1 changed the title [new] How to Install and Use Apache on Ubuntu 24.04 [New] How to Install and Use Apache on Ubuntu 24.04 Jul 30, 2025
@netlify
Copy link

netlify bot commented Jul 30, 2025

Deploy Preview for nostalgic-ptolemy-b01ab8 ready!

Name Link
🔨 Latest commit 8704387
🔍 Latest deploy log https://app.netlify.com/projects/nostalgic-ptolemy-b01ab8/deploys/6889db3ef2831000087a19c7
😎 Deploy Preview https://deploy-preview-7315--nostalgic-ptolemy-b01ab8.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link

netlify bot commented Jul 30, 2025

Deploy Preview for nostalgic-ptolemy-b01ab8 ready!

Name Link
🔨 Latest commit 9497005
🔍 Latest deploy log https://app.netlify.com/projects/nostalgic-ptolemy-b01ab8/deploys/68924a5783af0b0008779e24
😎 Deploy Preview https://deploy-preview-7315--nostalgic-ptolemy-b01ab8.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@Rajakavitha1 Rajakavitha1 requested review from andystevensname and removed request for jddocs August 5, 2025 12:01
@jddocs jddocs merged commit e9f9b43 into develop Aug 7, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants