We have upgraded the community system as part of the upgrade a password reset is required for all users before login in.

Omega2 : probleme installation php7 with nginx



  • Hello

    I can not configure php7 with nginx.

    I currently own nginx 1.10 which works perfectly for the display of html content but the problem is that I could not read my php pages while I put the fastcgi.

    Here is a pasted copy of my nginx configuration.

    If anyone could help me would be really cool thank you.

    server {
    listen 80; # Port, make sure it is not in conflict with another http daemon.
    server_name YOUR_SERVER; # Change this, reference -> http://nginx.org/en/docs/http/server_names.html
    fastcgi_connect_timeout 300;
    fastcgi_send_timeout 300;
    fastcgi_read_timeout 300;
    fastcgi_buffer_size 32k;
    fastcgi_buffers 4 32k;
    fastcgi_busy_buffers_size 32k;
    fastcgi_temp_file_write_size 32k;
    client_body_timeout 10;
    client_header_timeout 10;
    send_timeout 60; # 60 sec should be enough, if experiencing a lot of timeouts, increase this.
    output_buffers 1 32k;
    postpone_output 1460;

                root   /www;            # Your document root, where all public material is.                                   
                                                                                                                              
                location ~ \.php$ {                                                                                           
                        fastcgi_index  index.php;                                                                             
                        include        fastcgi_params;                                                                        
                        fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;                                   
                                                                                                                              
                        fastcgi_pass    127.0.0.1:1026;     # The upstream determined above                                   
                                                                                                                              
                }                                                                                                             
        }


  • Greets!

    I also have had issues with PHP and nginx but on a Raspberry PI flavor board and I found this link to be helpful in getting it up and running with a MySQL database and Zabbix system monitoring a time ago.

    You of course will have to adapt it to the Omega environment but it may give you some ideas of how or what you may have missed.

    Setting up PHP, Nginx and FastCGI

    Good Luck!
    ~Icky



  • This post is deleted!


  • Did you ever have any luck? I've been pulling my hair out trying to configure php7 with nginx. I have had zero success (and I'm an expert at php and nginx, so if I can't figure it out...)



  • Ugh LITERALLY just figured it out

    For whatever reason, the document root is also specified in the /etc/php.ini file. (this is DUMB DUMB DUMB) See more here:

    https://community.onion.io/post/8605



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