Re: fastCGI

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

 



Le 14/06/2013 14:33, Rafnews a écrit :

> Situation:
> i installed on Fedora 18 a webserver where i need:
> - FastCGI
> - to use my standard fedora user account (let's say "rafnews") to
> edit/move/delete files/folder in my webroot /var/www/html folders, where
> files have 644 as permissions and folders : 705.
> 
> for now, all files/folders have correct permissions but owner is
> apache:apache

Once again : apache don't need to "own" the files, only to be able to
read them.

> 
> 1. FastCGI settings:
> my webserver was running (on PHP 5.4, _not php-fpm_) correctly using the
> standard Apache 2.4 handler, now i'm trying to make use of FastCGI bit
> without success.
> Here is my php.conf file setting from apache 2.4.4:
> 
>     DirectoryIndex index.php
> 
>     php_value session.save_handler "files"
>     php_value session.save_path    "/var/lib/php/session"
> 
> 
> i removed the addtype and handler as suggested on internet. I added in
> myvhosts.conf the following thing (withing <VirtualHost *:80> tag):
> <IfModule proxy_module>
>    ProxyPassMatch ^/(.*\.php(/.*)?)$ fcgi://127.0.0.1/var/www/html/info/$1
>   </IfModule>
> 

Obviously when you use mod_proxy_fgid, you need to run FPM (the FastCgi
Process Manager)

> Apache starts, however when i want to access to webpage i get the
> following error (in vhost log dedicated to my website):
> [Fri Jun 14 14:16:07.827425 2013] [proxy:error] [pid 24500]
> (111)Connection refused: AH00957: FCGI: attempt to connect to
> 127.0.0.1:8000 (*) failed
> [Fri Jun 14 14:16:07.827539 2013] [proxy_fcgi:error] [pid 24500] [client
> 127.0.0.1:40982] AH01079: failed to make connection to backend: 127.0.0.1

qed.

Note default FPM port is 9000, not 8000. So you need to adapt
ProxyPassMatch or FPM configuration.


Remi.
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org




[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