# Webserver PHP 8.2

Webserver PHP 8.2 is a self-hosted tools & utilities app. A pre-built Apache 2 and PHP 8.2 web server image for Unraid. It is open source and self-hosted, installable on Docker Hub and Unraid.

Canonical page: https://ourlocalhost.com/app/1855/webserver-php-8-2

## Description

A pre-built Apache 2 and PHP 8.2 web server image for Unraid. It bundles commonly needed PHP modules and a standard directory layout (cron, html, ini, logs) so homelab users can host static or dynamic websites without manually configuring Apache and PHP from scratch.

## Platform availability

Available on 1 of 6 install platforms: Unraid.

## Links

- Docker Hub: https://hub.docker.com/r/waazaafr/webserver-apache-php8
- Official website: https://rarecloud.io
- Unraid: https://ca.unraid.net/apps/webserver-php8-2-0kl9oha0vs90ky?q=webserver-php8.2

## Common questions

### Does the webserver need port 80 open?

The examples create the web server on port 80, the standard web port. If your router or firewall blocks it, a browser cannot load the page.

### Should PHP run directly or behind a webserver?

The common setup is to run PHP behind a webserver such as Apache or nginx with PHP-FPM. Static assets are served directly, while PHP requests are handled by the PHP engine.

### How do I switch Apache to PHP 8.2?

On an Apache setup, enable the php8.2 module and disable the previous PHP module with a2enmod and a2dismod. This is the approach discussed for moving a Nextcloud Apache instance to PHP 8.2.

### What PHP issues can break a self-hosted app?

Common PHP issues include misconfigured PHP settings, memory limits, and module compatibility problems. These can disrupt the smooth running of a PHP-dependent self-hosted application.

## Alternatives

- AMPPS: A WAMP and MAMP stack featuring Apache, MySQL, MongoDB, latest PHP versions, and Softaculous auto-installer, with versatile application set…
- Laravel Herd: Herd is a blazing fast, native Laravel and PHP development environment for macOS.
- MAMP: MAMP installs a local server environment in a matter of seconds on your computer.
- ServBay: ServBay is an AI-native local dev platform for web developers and coding agents.
- WampServer: WampServer is a Windows web development environment.
- XAMPP: Completely free web server tool with Apache, MariaDB, PHP, and Perl.

---
Source: Our Local Host (https://ourlocalhost.com/app/1855/webserver-php-8-2), the self-hosted and open-source app directory.
