Docs

PHP

Winginx includes PHP 5 and 7.

The index PHP script is index.php.

Included PHP extensions: GD2, cURL, mbstring, iconv, zlib, bzip2, zip, rar, mysql, sockets, exif, gettext, soap, xmlrpc, xsl, sqlite, mongo, memcache.

Use Winginx PHP 5/7 Config to configure easily your PHP, its extensions and Zend Guard Loader (Zend Optimizer), Xdebug, ionCube.

Default parameters of php.ini (winginx\php71\php.ini)

Individual PHP config for a website

Web server Apache has the .htaccess system to configure individual params for a website. It's cool! But such files are useless in nginx :)

Yes, it is a bit of problem that has a solution, although it may seem unusual to those who always worked with Apache.

So. It is possible to configure PHP through a .user.ini file in the document root of a website, e.g. winginx\home\localhost\public_html\.user.ini.

The syntax of .user.ini is similar to php.ini. Example:

memory_limit = 1024M
post_max_size = 500M
date.timezone = Asia/Irkutsk

It is recommended to configure .user.ini for a website, but not winginx\php5\php.ini.

All changes to .user.ini take effect immediately, you don't need to restart the server or PHP.

Note! This way you can configure PHP with Apache, if installed as CGI / FastCGI.

When you create a website using Winginx TM you can set up some PHP parameters in a special tab. Afterwards you can edit them in the .user.ini file in the website home directory.

Winginx © Alexei Shabalin, 2011-2023