Re: PHP-FPM, PHP code in browser

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





Il giorno lun 8 ott 2018 alle 5:04, Benjamin Smith <yesthatguy@xxxxxxxxx> ha scritto:

[...]

I have apache/php-fpm running on an ubuntu vm.  File layouts are
different from fedora but enough is similar that this may help.

Again, this is ubuntu...

/etc/php/7.2/fpm/php.ini

engine = On

/etc/php/7.2/pool.d/www.conf

listen = /run/php/php7.2-fpm.sock

/etc/apache2/apache2.conf

SetHandler "proxy:unix:/var/run/php/php7.2-fpm.sock|fcgi://localhost/"

These three things are pretty straight forward.

Enable the php-fpm engine,
Specify where the php-fpm socket is to be created,
Tell apache where to find the socket and how to access it

On fedora these files may reside elsewhere.  Use "locate" and "grep".


On Fedora it's named differently. I use the following socket (with Caddy server):

/run/php-fpm/www.sock



_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux