Re: Apache FastCGI display Website not correct
Silvio Siefke wrote: > Hello, > > > i want say its running now perfect. I has search in internet and found > the follow Howto, and now it run. > > http://blog.myprod.net/2010/08/14/apache2-suexec-fastcgi-php-5-3-3-fpm- cache-opcode-apc/ That is excellent. I had also forgoten all about the suexec aspect too. -Mike ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Apache FastCGI display Website not correct
Hello, i want say its running now perfect. I has search in internet and found the follow Howto, and now it run. http://blog.myprod.net/2010/08/14/apache2-suexec-fastcgi-php-5-3-3-fpm-cache-opcode-apc/ Regards Silvio ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Apache FastCGI display Website not correct
Silvio Siefke wrote: > Hello, > > > i use fastcgi with PHP-FPM on Apache 2.2.17. When i go on Website with > FastCGI then the page load not complete. > > http://mail.silviosiefke.de/fastcgi_apache.png > > When i run with FCGID then the page load complete. > > http://mail.silviosiefke.de/fcgid_apache.png > > Has someone a idea what is the problem? Thank you. > Strictly _not_ a FreeBSD issue, but FWIW I thought maybe I'd respond anyway. Someone please correct me if I'm wrong here, as I haven't been keeping up with the latest Apache news and stuff so the following may be out of touch. I thought that at some point a couple of years ago that FastCGI became deprecated in favor of mod_fcgid. Look at the dates on this page: http://www.fastcgi.com/drupal/node/19 Apache has absorbed the mod_fcgid into the mainstream. Notice the dates on the support page below seem to be more recent: http://httpd.apache.org/mod_fcgid/ Since your website works OK with mod_fcgid why not use it because it works? I use Apache with the event mpm and mod_fcgid, but am still using PHP 5.2.x. For purposes of this problem the difference between my use of the event mpm and you using worker should probably not be significant. I cannot properly address your question concerning FastCGI as I do not use it. What I can do is share some of my configs for my web development server using mod_fcgid. httpd.conf: [...] LoadModule alias_module libexec/apache22/mod_alias.so LoadModule rewrite_module libexec/apache22/mod_rewrite.so #LoadModule php5_modulelibexec/apache22/libphp5.so LoadModule fcgid_module libexec/apache22/mod_fcgid.so [...] SetOutputFilter Deflate AddOutputFilterByType DEFLATE text/html text/plain text/css text/javascript application/javascript application/x-javascript text/xml application/xml application/xhtml+xml SetEnvIfNoCase Request_URI \\.(?:gif|jpe?g|png)$ no-gzip dont-vary Options Indexes FollowSymLinks AllowOverride All Order allow,deny Allow from all # added for mod_fcgid #SetHandler fcgid-script FCGIWrapper /usr/local/bin/php-cgi .php Options ExecCGI # end of mod_fcgid change # added to enable mod_fcgid: AddHandler fcgid-script .fcgi .php SocketPath /var/run/fcgidsock/ #SocketPath /var/run/fcgid_shm IPCConnectTimeout 10 IPCCommTimeout 20 OutputBufferSize 0 MaxRequestsPerProcess 1024 # DirectoryIndex: sets the file that Apache will serve if a directory # is requested. DirectoryIndex index.html index.php [...] This is for the main site. In addition I only have one virtual host and the httpd-vhosts.conf looks like this: NameVirtualHost *:80 ServerAdmin webmas...@test.zip DocumentRoot "/usr/local/www/apache22/oldriver.test.zip" ServerName oldriver.test.zip ServerAlias oldriver.test.zip ErrorLog "/var/log/httpd-error.log" CustomLog "/var/log/httpd-access.log" common Options Indexes FollowSymLinks FCGIWrapper /usr/local/bin/php-cgi .php Options ExecCGI DirectoryIndex index.html index.php home.php AllowOverride All Order deny,allow allow from all Your requirements are likely somewhat different from mine, so these configs work for me but you should only consider them as examples. If any of it may be useful adjust accordingly. Consider using mod_fcgid instead of FastCGI because it is newer and more currently under active support. That is, unless you have some other overriding reason that makes you forced to use FastCGI. -Mike ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Apache FastCGI display Website not correct
Hey, Am 02.03.2011 15:25, schrieb Ivan Voras: > > This is not a FreeBSD problem. Thank u, that i know. But i has think that is a user list, someone can help me. Because i try since weeks and found not where is the mistake. > The most likely problem is that your FastCGI configuration handles more > paths than it should, including images, CSS and other non-fastcgi URLs. That mean? Regards Silvio ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Apache FastCGI display Website not correct
On 01/03/2011 20:22, Silvio Siefke wrote: Hello, i use fastcgi with PHP-FPM on Apache 2.2.17. When i go on Website with FastCGI then the page load not complete. http://mail.silviosiefke.de/fastcgi_apache.png When i run with FCGID then the page load complete. http://mail.silviosiefke.de/fcgid_apache.png Has someone a idea what is the problem? Thank you. This is not a FreeBSD problem. The most likely problem is that your FastCGI configuration handles more paths than it should, including images, CSS and other non-fastcgi URLs. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Apache FastCGI display Website not correct
Hello, i use fastcgi with PHP-FPM on Apache 2.2.17. When i go on Website with FastCGI then the page load not complete. http://mail.silviosiefke.de/fastcgi_apache.png When i run with FCGID then the page load complete. http://mail.silviosiefke.de/fcgid_apache.png Has someone a idea what is the problem? Thank you. Regards Silvio Some Config Parameters: SuexecUserGroup "siefke" "siefke" ServerName silviosiefke.de DocumentRoot /usr/local/www/vserver/silviosiefke.de/data ScriptAlias /cgi-bin/ "/usr/local/www/vserver/silviosiefke.de/cgi-bin/" AddHandler php5-fastcgi .php FastCgiExternalServer /usr/local/www/vserver/silviosiefke.de/data -socket /tmp/siefke.socket RewriteEngine On RewriteCond %{REQUEST_URI} \/$ RewriteRule ^(.*)$ index.php [L,QSA] Options -All +FollowSymLinks +ExecCGI AllowOverride Options FileInfo AuthConfig Limit allow from all AllowOverride All ErrorLog /usr/local/www/vserver/silviosiefke.de/log/error.log CustomLog /usr/local/www/vserver/silviosiefke.de/log/access.log combined # httpd -V Server version: Apache/2.2.17 (FreeBSD) Server built: Feb 26 2011 13:17:20 Server's Module Magic Number: 20051115:25 Server loaded: APR 1.4.2, APR-Util 1.3.10 Compiled using: APR 1.4.2, APR-Util 1.3.10 Architecture: 32-bit Server MPM: Worker threaded: yes (fixed thread count) forked: yes (variable process count) Server compiled with -D APACHE_MPM_DIR="server/mpm/worker" -D APR_HAS_SENDFILE -D APR_HAS_MMAP -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled) -D APR_USE_FLOCK_SERIALIZE -D APR_USE_PTHREAD_SERIALIZE -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT -D APR_HAS_OTHER_CHILD -D AP_HAVE_RELIABLE_PIPED_LOGS -D DYNAMIC_MODULE_LIMIT=128 -D HTTPD_ROOT="/usr/local" -D SUEXEC_BIN="/usr/local/sbin/suexec" -D DEFAULT_SCOREBOARD="logs/apache_runtime_status" -D DEFAULT_ERRORLOG="logs/error_log" -D AP_TYPES_CONFIG_FILE="etc/apache22/mime.types" -D SERVER_CONFIG_FILE="etc/apache22/httpd.conf" ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"