Re: Fast CGI?
Matthias Dieke <[email protected]>
| Newsgroups | gmane.comp.cms.bitflux.general |
|---|---|
| Message-ID | <[email protected]> |
Hi Simon, hi Petignat,
I also have to use Flux CMS with fastCGI, because our server now based
on PHP as fastcgi-version.
Yesterday I checked out the latest version and it seems to work. OK, not
all, the gallery-stuff doesn't work :(
When I call the gallery (www.matthias-dieke.de/gallery) the pictures
won't be shown. In my apache error-log I found the following lines:
[Sun Sep 18 11:29:41 2005] [error] [client 83.169.141.118] FastCGI:
server "/var/www/php-fcgi-scripts/matthias-dieke.de/php-fcgi-starter"
stderr: Notice[8] Undefined offset: 1 in
/var/www/matthias-dieke.de/web/bxcms/inc/bx/php/ResizeImage.php at line
85, referer: http://www.matthias-dieke.de/gallery/
[Sun Sep 18 11:29:41 2005] [error] [client 83.169.141.118] FastCGI:
server "/var/www/php-fcgi-scripts/matthias-dieke.de/php-fcgi-starter"
stderr: Warning[2] filemtime() [<a
href='function.filemtime'>function.filemtime</a>]: stat failed for
varwwwmatthias-dieke.dewebbxcmsincbxphp/ResizeImageDynamic.php in
/var/www/matthias-dieke.de/web/bxcms/inc/bx/php/ResizeImage.php at line
56, referer: http://www.matthias-dieke.de/gallery/
In the config.xml I turned GD on and off but the error is the same.
When I call
"http://www.matthias-dieke.de/dynimages/100/files/_galleries/gallery/platzhalter.jpg"
directly the following php-code will be shown:
<?php
include_once("../../../inc/bx/init.php");
bx_init::start('conf/config.xml', "../../..");
include_once("./ResizeImage.php");
$image =
BX_OPEN_BASEDIR.substr($_SERVER['REDIRECT_URL'],strpos($_SERVER['REDIRECT_URL'],"/dynimages"));
$image = preg_replace("/\.html$/","",$image);
$image = preg_replace("/\/{2,}/","/",$image);
if (strpos( $_SERVER['REDIRECT_URL'],"/images/")) {
$rewrite = array(BX_OPEN_BASEDIR."dynimages/",BX_OPEN_BASEDIR);
} else if (strpos( $_SERVER['REDIRECT_URL'],"/files/")) {
$rewrite = array(BX_OPEN_BASEDIR."dynimages/",BX_OPEN_BASEDIR);
} else {
$rewrite = array(BX_OPEN_BASEDIR."dynimages",BX_DATA_DIR);
}
$bla = new
ImageResize($image,$GLOBALS['POOL']->config['image_allowed_sizes']
,$rewrite);
?>
It seems that some is wrong with the "fastcgi"-installation ;)
Any ideas... hope for some help, because I need a working flux cms with
fastcgi ;)
Thanks Matthias
Alain C. Petignat wrote:
> Hi Simon
>
> Simon Rönnqvist / Ownmedia wrote:
>
>> On Sep 15, 2005, at 01:09, Alain C. Petignat wrote:
>>
>>> I had some troubles with the gallery/imagemagick-stuff.
>>
>>
>> Hmmm... does this mean that I won't get the imagemagick stuff
>> working at all?
>> Or is there any kind of workaround?
>
>
> it *should* be working, since the image functions seemed to call the
> resizing-functions all directly via a exec() or similar function.
>
> I didn't figure, since i run my site on an own machine, so the apache
> can have one almighty pid.
>
> Otherwise Flux CMS should be now working with the GD-Libs as well [1].
>
>> Well now I've got mod_fastcgi and php5-fcgi installed... what else do
>> I need to do to get it working with Flux CMS?
>
>
> Does it then work for itself? Then it should run Flux CMS, too.
>
> hth,
> Alain
>
>
> [1]
> http://devblog.flux-cms.org/archive/how-to-use-gd2-instead-of-imagemagick.html
>
--
bitflux-cms mailing list
[email protected]
http://lists.bitflux.ch/cgi-bin/listinfo/bitflux-cms