Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #911702

    hi,

    I’m new to enfold and I tried to install the theme on my freebsd server. I found in the forum an entry that I can add
    add_theme_support('avia_no_session_support');
    to the function.php.

    That works for me but I want to use session support as well. Can somebody provide me a working nginx / php configuration?

    
        location / {
            # Expiry-Header for static content
            location ~ \.(jp(e)?g|gif|css|png|js)$ {
                access_log    /usr/local/www/blog.mydomain.de/log/access_static.log main;
                expires       30d;
            }
    
            # php
            location ~ \.php$ {
                # if a file isn't found, 404
                try_files      $uri =404;
                fastcgi_pass   10.1.1.7:9000;
                fastcgi_index  index.php;
                fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
                fastcgi_pass_header Set-Cookie;
                fastcgi_pass_header Cookie;
                fastcgi_ignore_headers Cache-Control Expires Set-Cookie;
                include        fastcgi_params;
            }
        }
    

    I set in the php.ini
    session.save_path = "/tmp"
    the directory is writeable by everyone.

    I use another nginx as proxy / balancer to separate different web installation. nextcloud separate to wordpress…

    server {
        ### domain names
        server_name    blog.mydomain.de;
        listen         80;
    
        location / {
            proxy_set_header Host $host;
            proxy_set_header X-Real-IP $remote_addr;
            proxy_set_header X-Forwarded-Host $host;
            proxy_set_header X-Forwarded-Protocol $scheme;
            proxy_set_header X-Forwarded-For $remote_addr;
            proxy_set_header X-Forwarded-Port $server_port;
            proxy_set_header X-Forwarded-Server $host;
            proxy_connect_timeout 3600;
            proxy_send_timeout 3600;
            proxy_read_timeout 3600;
            proxy_redirect off;
            proxy_max_temp_file_size 0;
    
            proxy_pass http://10.1.1.7:80;
        }
    }
    

    thank u
    Steffen

    #911781

    it’s easy to figure it out if u have root rights on the server.

    php -i
    there should be a session section

    session
    Session Support => enabled
    session.save_path => /tmp => /tmp
    

    make sure that the save_path is right.

    if there is no session section, please install the php72-session module (72 is the version)

    
    whereis php72-session
    make install clean
    

    the rest of the nginx and php config works very well. u can check by yourself with a simple php script

    
    <?php 
    session_start();
    print session_name()."=".session_id();
    ?>
    

    hope it helps
    Steffen

    #912050

    Hi,

    Thank you for using Enfold.

    I’m not really sure what you’re trying to do here but it sounds like you already figured it out. The “avia_no_session_support” function, if enabled, will disable the portfolio breadcrumb filter.

    Best regards,
    Ismael

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.