GithubHelp home page GithubHelp logo

Comments (7)

tombh avatar tombh commented on May 7, 2024

Also, this is along the same lines. Would it not make more sense to use the default.conf file from the copied src/ folder rather than the one relative to domman.sh? That way if you want to change it then you're not mucking up the git repo.

from nginx-boilerplate.

tombh avatar tombh commented on May 7, 2024

BTW I solved the original issue with this bash script in my $PATH, which I called ngbp_create:

#!/bin/bash
/usr/local/share/nginx-boilerplate/bin/domman.sh -c /etc/nginx/sites "$@"

But personally I'd sooner have /etc/nginx/sites hardcoded as the default for $BPCONFPATH in domman.sh. Happy to PR that if it helps.

from nginx-boilerplate.

tombh avatar tombh commented on May 7, 2024

Sorry, one more thing! Not related, but I didn't want to start a new issue in case it's just me being stupid. But I had to use the following in upstreams/php.conf to get my php5-fpm working on Debian Wheezy using Dotdeb's repo:

upstream php
{
    server unix:/var/run/php5-fpm.sock;
    server 127.0.0.1:9000;
    #ip_hash;
    keepalive 16;
}

from nginx-boilerplate.

Umkus avatar Umkus commented on May 7, 2024

Hey, thanks for the feedback. The domman.sh indeed needs work, since I haven't touched it for a long time and at some point even wondered what it does 😄. Initially, if I remember correctly, I used it only to manage the not-yet-installed nginx-boilerplate in a random directory, that's probably why it didn't work for /etc/nginx. A decent sdk-like environment would be great, since to develop this config you don't need it installed, you just run it wherever it is. I'll make a note to create an install.sh, thanks for the hint.

from nginx-boilerplate.

Umkus avatar Umkus commented on May 7, 2024

About the upstream settings - looks like you have your php-fpm set up listening on the socket, rather than tcp/ip.
Good thing to have both: one active and one commented out for easy switch. I'll make the change.

EDIT: I see you used the correct port 9000. I remember changing mine to 9001 because 9000 was used for xdebug and I didn't want to tuch that, since it was always a pain for me to make xdebug work with netbeans. And it slipped into git, which it shouldn't have.

from nginx-boilerplate.

tombh avatar tombh commented on May 7, 2024

That makes sense that domman.sh hasn't been updated in a while. The main thing after all is the fantastic modularised conf files :)

Glad I helped out with the php settings too.

from nginx-boilerplate.

Umkus avatar Umkus commented on May 7, 2024

OK, thanks :) I'll close this issue and open a new one as soon as I have it decently formulated.

from nginx-boilerplate.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.