Es sei der Hinweis gestattet, dass disablefunctions oder disableclasses nicht dazu führt, dass vorher definierte php.ini-Einstellungen überschrieben werden, vielmehr werden die neuen Werte angehängt. # uncomment the following lines if you install assets as symlinks # or run into problems when compiling LESS/Sass/CoffeeScript assets # Options FollowSymlinks # ErrorLog /var/log/apache2/project_error.logĬustomLog /var/log/apache2/project_access.log combinedĥ9 # /etc/nginx/conf.d/ server location ~ ^/index\. PHP Einstellungen, die mit phpvalue oder phpflag übergeben wurden, überschreiben vorherige Werte. Edit the server’s default config file to support PHP in Nginx. the main configuration file nf is read first fpmconfloadinifile (), all include directives are read in order, giving a list of files thanks to glob (), each of the file is parsed by the same fpmconfloadinifile (), an entry in the file overwrites any previously set value, any new include will have a recursive call to the. There are many guide about configuring NGINX with PHP FPM, but many of them are incomplete (dont. En caso de que sepa lo que es php-fpm, siéntase libre de saltar a la sección sobre optimización. To setup and configure fastCGI (FPM), PHP, and Nginx on Ubuntu Linux, follow these steps: Perform an apt-get update to ensure access to the latest packages. 0.1:9000 ) or unix socket ( /var/run/php-fpm.sock ). Este artículo se centra en el lado php-fpm de las cosas, que es la forma natural de configurar en su servidor si está utilizando Nginx. # when PHP-FPM is configured to use TCP # SetHandler proxy:fcgi://127.0.0.1:9000 DocumentRoot /var/www/project/public Dicho esto, hay MUCHO que puede hacer para mejorar el rendimiento de PHP en su servidor. ServerAlias # Uncomment the following line to force Apache to pass the Authorization # header to PHP: required for "basic_auth" under PHP-FPM and FastCGI # SetEnvIfNoCase ^Authorization$ "(.+)" HTTP_AUTHORIZATION=$1 # when using PHP-FPM as a unix socket SetHandler proxy:unix:/var/run/php/|fcgi://dummy Configure PHP-FPM options Edit the main PHP configuration file at /opt/bitnami/php/etc/php.ini and set the memorylimit variable to a new value, as shown below.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |