Git Product home page Git Product logo

Comments (7)

mpartel avatar mpartel commented on July 30, 2024 1

Hmm..
Is PHP-FPM running as www-data?
Do you see the files when you ls /var/www?
Anything interesting in the Apache logs?

You can also try running bindfs with -d to get (lots of) debug output.

from bindfs.

mpartel avatar mpartel commented on July 30, 2024
  • Is user_allow_other enabled in /etc/fuse.conf?
  • Which version of bindfs are you using? Versions 1.13.1-1.13.3 have an unfortunate bug in them that could cause this.
  • What does your bindfs command look like?

from bindfs.

canfone avatar canfone commented on July 30, 2024

Hi @mpartel ,

Thanks for your response. I am using bindfs version 1.12.3 and currently my user_allow_other is commented. Could that be the reason? My bindfs command is this sudo bindfs -o perms=0750,mirror-only=www-data,force-group=www-data,force-user=www-data /home/vagrant/www /var/www

from bindfs.

mpartel avatar mpartel commented on July 30, 2024

Yes, you need user_allow_other uncommented unless PHP-FPM runs as the
same user as bindfs.

On 9 Nov 2016 7:35 am, "Cliff Richard Anfone" [email protected]
wrote:

Hi @mpartel https://github.com/mpartel ,

Thanks for your response. I am using bindfs version 1.12.3 and currently my
user_allow_other is commented. Could that be the reason? My bindfs command
is this sudo bindfs -o
perms=0750,mirror-only=www-data,force-group=www-data,force-user=www-data
/home/vagrant/www /var/www


You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub
#44 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAUE-ISAh7j4OiRGaPquv8tB1M9r3gEtks5q8XeygaJpZM4KsFBG
.

from bindfs.

canfone avatar canfone commented on July 30, 2024

Hi @mpartel ,

I already uncommented the user_allow_other in my /etc/fuse.conf but my virtualhost is still returning File not found. What could be the other possible reason to this?

from bindfs.

canfone avatar canfone commented on July 30, 2024

This is what I'll see if I run this command.

$ ps aux | grep php-fpm
104:root      1073  0.0  3.0 318612 31240 ?        Ss   08:18   0:00 php-fpm: master process (/etc/php/7.0/fpm/php-fpm.conf)
110:www-user  1149  0.0  1.0 319072 11176 ?        S    08:18   0:00 php-fpm: pool www
111:www-user  1150  0.0  1.0 319072 11176 ?        S    08:18   0:00 php-fpm: pool www
142:vagrant  16429  0.0  0.2  14120  2336 pts/0    R+   08:30   0:00 grep --color=auto -in php-fpm

I can also see my files if I run sudo ls /var/www so I'm not sure what did I miss.

from bindfs.

canfone avatar canfone commented on July 30, 2024

Hi @mpartel,

Thank you so much for your help. I manage to successfully run php-fpm + bindfs in my virtual machine. I just made sure that user who is running php-fpm and apache are the one I set in my bindfs command. My apache is run by www-user so I change my command to sudo bindfs -o perms=0755,mirror-only=www-user,force-group=www-data,force-user=www-user /home/vagrant/www /var/www and made sure that apache is also run by www-user.

Once again thanks for your help.

from bindfs.

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.