[SOLVED] Nginx 1.16 and php 7.4.2-nts and apcu extention error upstream


  • | 392 points

    Hello all..

    I have a problem with extention of php called apcu, version: apcu-5.1.18-7.4-nts-vc15-x64

    Here my configuration:

    ++++ php 7.4.2-nts
    ++++ Nginx 1.16.0
    ++++ apcu-5.1.18-7.4-nts-vc15-x64

    My php.ini

    apc.enabled=1
    apc.shm_size=32M
    apc.ttl=7200
    apc.enable_cli=1
    apc.serializer=php

    Information of phpinfo(), apcu working good:
    alt text

    Now i test apcu_store with a key in a file apcu_test.php:

    <?php
    error_reporting(E_ALL);ini_set('display_errors', true);

    echo (apcu_store("key_test","val key",0) ? "key store ok" : "key store error");
    ?>

    Now i refresh browser chorme

    Show:
    key store ok

    Now i refresh again browser:

    Error in php-cgi.exe
    and process stop

    Show log error of nginx:

    2020/02/17 00:05:27 [error] 6928#5944: *11 WSARecv() failed (10054: FormatMessage() error:(15100)) while reading response header from upstream, client: 127.0.0.1, server: localhost, request: "GET /apcu_test.php HTTP/1.1", upstream: "fastcgi://127.0.0.1:9001", host: "localhost", referrer: "http://localhost/"

    Friends how solve this problem??? apcu not working

    Thanks all for read, and thanks for develop laragon the best software for testing ;)

    Bye all


  • | 392 points

    I solve my problem change :

    fastcgi_pass php_upstream;

    to

    fastcgi_pass 127.0.0.1:9001;

    Example

        location ~ \.php$ {
            include snippets/fastcgi-php.conf;
            #fastcgi_pass php_upstream;
            #fastcgi_pass unix:/run/php/php7.0-fpm.sock;
            fastcgi_pass 127.0.0.1:9001;
        }
    

    Bye all


Log in to reply
 

Looks like your connection to Laragon was lost, please wait while we try to reconnect.