Re: solved: dynimages and php as fastcgi
Simon Rönnqvist <[email protected]>
| Newsgroups | gmane.comp.cms.bitflux.general |
|---|---|
| Message-ID | <[email protected]> |
Hi!
So does this mean that I just need to do a "svn up" and then all the
imagemagick stuff will work fine with Fast CGI too?
By the way... one thing occured to me, if FastCGI meanth a bit of
trouble of Flux CMS... doesn't swiching to Fast CGI then also mean a
risk for other PHP scripts on the server. How can I disable FastCGI
for some and enable for others?
cheers, Simon
On Sep 19, 2005, at 19:43, Matthias Dieke wrote:
> Hi,
>
> Matthias Dieke wrote:
>
>
>> 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 :(
>> 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);
>> ?>
>>
>>
>
>
> The code is shown, because the var $image has this value:
>
> "/var/www/matthias-dieke.de/web/bxcms//inc/bx/php/
> ResizeImageDynamic.php"
>
> IHMO, the value should have the path to the image in the dynamic-
> image-folder, because we want show an image ;)
>
> I replaced $_SERVER['REDIRECT_URL'] with $_SERVER['REQUEST_URI']
> and now all works fine.
>
> Matthias
>
>
>
>
>> 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
>
>
--
bitflux-cms mailing list
[email protected]
http://lists.bitflux.ch/cgi-bin/listinfo/bitflux-cms