Giter Club home page Giter Club logo

Comments (17)

gordalina avatar gordalina commented on July 20, 2024

Interesting!
/dev/shm or (worse) /var/run could be used instead. Can you test if php-fpm with PrivateTmp can read from those directories?

from cachetool.

 avatar commented on July 20, 2024

they both work

from cachetool.

 avatar commented on July 20, 2024

as an aside: the visible error you get when this fails ( Primary script unknown ) was kinda hard to understand. definitely had to open up the fastcgi client code to figure it out.

from cachetool.

gordalina avatar gordalina commented on July 20, 2024

Did you add any logging code? Could be useful to have this logged.
I will have a look at this tomorrow, add a input option for the writable directory and as a configuration parameter.

from cachetool.

 avatar commented on July 20, 2024

i just added a var_dump in ebernhardson/fastcgi

from cachetool.

 avatar commented on July 20, 2024

is there a reason we can't just use /dev/shm if it exists and fall back to /var/run instead of using /tmp at all?

from cachetool.

gordalina avatar gordalina commented on July 20, 2024

Yes, shm only works in Linux
On qui, 8/01/2015 at 01:57 Johnny Robeson [email protected] wrote:

is there a reason we can't just use /dev/shm if it exists and fall back to
/var/run instead of using /tmp at all?


Reply to this email directly or view it on GitHub
#7 (comment).

from cachetool.

gordalina avatar gordalina commented on July 20, 2024

also you can have a configuration file:

# /etc/cachetool.yml
# or in any directory upwards to current directory

adapter: fastcgi
fastcgi: /var/run/php-fpm/php-fpm.sock
temp_dir: /dev/shm/cachetool

from cachetool.

 avatar commented on July 20, 2024

i know, but considering this will becoming the most common configuration.

Here are the distributions that will be using systemd and likely with PrivateTmp:

  • debian jessie (next stable)
  • ubuntu 15.04
  • fedora 20, 21 (all maintained versions)
  • centos/rhel 7
  • opensuse 13.1
  • arch

and probably some others.

Do we want the most common configurations to require configuration?

from cachetool.

gordalina avatar gordalina commented on July 20, 2024

I can make a test for linux to use /dev/shm.
Have you tried the pull request: #8 work?

from cachetool.

 avatar commented on July 20, 2024

make sure to check that /dev/shm exists too. I'll try #8 in the next half hour.

from cachetool.

gordalina avatar gordalina commented on July 20, 2024

I pushed a595a70

from cachetool.

gordalina avatar gordalina commented on July 20, 2024

Fixed in 1.5.0

from cachetool.

 avatar commented on July 20, 2024

wow. thanks @gordalina! I really appreciate you taking the time to work so closely with me.

from cachetool.

gordalina avatar gordalina commented on July 20, 2024

thanks for your instrumental feedback! are you using it in production?

from cachetool.

 avatar commented on July 20, 2024

i'm about to. It's part of my ansible playbook for deploying my php application. BTW: i heard about it here: http://www.reddit.com/r/PHP/comments/2l1hx6/cachetool_cli_application_library_to_manage/

from cachetool.

gordalina avatar gordalina commented on July 20, 2024

Thanks :) let me know if something doesn't work
On qui, 8/01/2015 at 23:59 Johnny Robeson [email protected] wrote:

i'm about to. It's part of my ansible playbook for deploying my php
application. BTW: i heard about it here:
http://www.reddit.com/r/PHP/comments/2l1hx6/cachetool_cli_application_library_to_manage/


Reply to this email directly or view it on GitHub
#7 (comment).

from cachetool.

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.