[GH-ISSUE #229] I search how to configure nginx #192

Closed
opened 2026-02-25 21:34:23 +03:00 by kerem · 2 comments
Owner

Originally created by @Mister6mik on GitHub (Oct 13, 2017).
Original GitHub issue: https://github.com/cypht-org/cypht/issues/229

Originally assigned to: @jasonmunro on GitHub.

Hi all,
I search which conf to apply with nginx to run cypht on my debian Jessie
With a simple config (for a simple php project) don't work.

Sorry for my english.

A french boy!

Originally created by @Mister6mik on GitHub (Oct 13, 2017). Original GitHub issue: https://github.com/cypht-org/cypht/issues/229 Originally assigned to: @jasonmunro on GitHub. Hi all, I search which conf to apply with **nginx** to run cypht on my **debian Jessie** With a simple config (for a simple php project) don't work. Sorry for my english. A french boy!
kerem 2026-02-25 21:34:23 +03:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@jasonmunro commented on GitHub (Oct 13, 2017):

I don't have a Jessie system, but here is what I did on Debian Sid:

I already had nginx and apache2 installed, so I stopped apache, and did the following:

  • edited the /etc/nginx/sites-enabled/default file to look like this:
server {
        listen 80 default_server;
        listen [::]:80 default_server;
        root /var/www/html;
        index index.php;
        server_name localhost;
        location ~ \.php$ {
                include snippets/fastcgi-php.conf;
                fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
        }
}

  • Ran "sudo apt-get install php-fpm" which also installed php7.0-fpm
  • Started the php-fpm service, then nginx

That was it, Cypht worked when symlinked into /var/www/html/cypht and accessing it at http://localhost/cypht/

Hope that helps!

<!-- gh-comment-id:336524392 --> @jasonmunro commented on GitHub (Oct 13, 2017): I don't have a Jessie system, but here is what I did on Debian Sid: I already had nginx and apache2 installed, so I stopped apache, and did the following: - edited the /etc/nginx/sites-enabled/default file to look like this: ``` server { listen 80 default_server; listen [::]:80 default_server; root /var/www/html; index index.php; server_name localhost; location ~ \.php$ { include snippets/fastcgi-php.conf; fastcgi_pass unix:/var/run/php/php7.0-fpm.sock; } } ``` - Ran "sudo apt-get install php-fpm" which also installed php7.0-fpm - Started the php-fpm service, then nginx That was it, Cypht worked when symlinked into /var/www/html/cypht and accessing it at http://localhost/cypht/ Hope that helps!
Author
Owner

@Mister6mik commented on GitHub (Oct 16, 2017):

Many thanks!
I don't exactly use your code, but with nginx default config everything work.

<!-- gh-comment-id:336815407 --> @Mister6mik commented on GitHub (Oct 16, 2017): Many thanks! I don't exactly use your code, but with nginx default config everything work.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/cypht#192
No description provided.