Bugzilla – Bug 143564
PHP5-fastcgi should be installed in /srv/www/fcgi-bin
Last modified: 2006-01-20 23:53:50 UTC
Hi. php5-fastcgi binary, should be installed in /srv/www/fcgi-bin and **not** in /srv/www/cgi-bin adittionally it should be compiled without --enable-discard-path see /usr/share/doc/packages/php5/README.FastCGI to know why.
Why it should be installed in /srv/www/fcgi-bin ? (I dind't find, that suse use this dir path). You are right with --enabling-discard-path , but which problem can caused I didn't chat it.
I found that /srv/www/fcgi-bin was owned by dropped apache2-mod_fastcgid , but new replacement apache2-mod_fcgid doesn't cover it. Peter, where is right place for this fastcgi binary?
$rpm -ql apache2-mod_fastcgi /etc/apache2/conf.d/mod_fastcgi.conf /srv/www/fcgi-bin /usr/lib64/apache2/mod_fastcgi.so /usr/share/doc/packages/apache2-mod_fastcgi /usr/share/doc/packages/apache2-mod_fastcgi/CHANGES /usr/share/doc/packages/apache2-mod_fastcgi/LICENSE.TERMS /usr/share/doc/packages/apache2-mod_fastcgi/mod_fastcgi.html /var/lib/apache2/fastcgi as you can see , that dir is created by apache2-mod_fastcgi. the reason I can argue, is only for consistency. PHP5-fastcgi is a fastcgi binary, so it should be installed in fcgi-bin directory. I have changed this bug,now it's a 10.1 suggested correction ;-)
Starting with 10.1, we don't have apache2-mod_fastcgi anymore, we have apache2-mod_fcgid instead. (It is a newer implementation.) Marcus, what do you think? Should apache2-mod_fcgi provide this directory? Should both packages provide the directory, or does php5-fastcgi depend on apache2-mod_fcgid anyway?
/srv/www/cgi-bin imho. as the binary can be used for both modes. actually we could even put it into /usr/bin as it doesnt matter where the binary is. will test that stuff over the weekend as i will move my server to mod_fcgid and apache 2.2.0
I had opened this bug report without knowing about the removal of mod_fastgi from the distribution. now, I think my suggestion do not apply..and if that direcoty doesn't not exists now, the binary should exists in /srv/www/cgi-bin as it is right now. Marcus: no.. please no in /usr/bin :) since executable use the same name than the cli version of PHP in that case we will have,once again, a doggy slow and resoource hungry PHP Command line binary. :-)