DocsPHP on IIS

PHP on IIS

Run PHP 8.3 and 8.4 side by side on IIS with Zopanel for Windows: version per site, safe php.ini changes, FastCGI limits, Composer, Laravel.

Zopanel runs PHP on IIS through FastCGI. Several PHP versions can be installed on one server, and each website picks its own.

Install PHP

PHP comes from the signed runtime catalog: the panel downloads the official Windows build, checks its SHA-256 and the publisher's signature, then installs it. The recommended set installs PHP 8.4 and PHP 8.3. To add one later: Runtimes → choose the server → PHP → Install.

Version Status
PHP 8.4 available
PHP 8.3 available
PHP 8.5 in the catalog, not yet tested on Windows
PHP 7.x and older not offered: upgrade the application first

Choose the version per site

Open the website → Runtime tab → PHP → pick the version. The panel writes the IIS handler and the site's php.ini and applies them without a window of 404 errors (requests keep getting 200 while PHP settings change).

PHP settings

The PHP tab lets the site owner change common directives: memory_limit, upload_max_filesize, post_max_size, max_execution_time, display_errors and others on an allow-list, plus extensions. A plan can cap values such as memory and upload size; the site cannot go above its plan.

open_basedir is off by default for new sites, because many older applications read files outside the web root. A plan or a site can turn it on.

If a site returns 500 right after you change a directive, put the old value back.

FastCGI and performance

The panel sizes FastCGI limits for each site from the server's capacity (limited: see known issues). PHP processes that sit idle for about 6–7.5 minutes are recycled, so the first request after a quiet period is slower. Turn on Always ready in the Speed tab for sites where that matters.

Each site runs under its own application pool identity, inside the CPU and memory limits of its plan.

Composer and Laravel

Composer is available from the catalog. The Laravel and Symfony recipes set up the web root (public), the URL Rewrite rules that replace .htaccess, and the writable folders. A Laravel queue worker can run beside the site (limited: tested on Server 2019 with the database queue; PHP on Windows has no pcntl, so --timeout cannot stop a stuck job).

Scheduled tasks (for example php artisan schedule:run) are set in the site's Scheduled tasks tab and run under the site's identity.

One-click PHP applications

Besides WordPress (see WordPress), an empty PHP site can get Joomla, Drupal, PrestaShop or OpenCart in one click (limited: installed and checked on Server 2022). The package is pinned by SHA-256, the installer runs under the site's pool, the admin folder is renamed where the application supports it, and IIS rules replace the .htaccess files.

Troubleshooting

Symptom Cause Fix
404.3 on every .php file No PHP handler: setting the version failed or has not run Runtime tab: pick the PHP version again; check Tasks for a failed job
PHP not offered PHP not installed on that server Runtimes → install PHP
500 after changing a directive The value does not suit the application Restore the old value
500 when the app writes files No write access for the site identity Set Read and write on that folder, or apply a preset (file manager)
First request slow after idle Process recycled Always ready

← FTP and SFTP ASP.NET and Classic ASP →