Koozali.org: home of the SME Server

Legacy Forums => General Discussion (Legacy) => Topic started by: copyl3ft on March 31, 2004, 07:59:49 AM

Title: gallery will upload pics but wont show it
Post by: copyl3ft on March 31, 2004, 07:59:49 AM
i followed Swerts-Knudsen.dk's howto on my sme5.6 update 6. when i did  http://yourhost.yourdomain/gallery/setup, i got these warnings:

Quote
Warning!
Apache is not obeying your .htaccess file. Try entering the following into your web server's httpd.conf file:


<Directory /home/e-smith/files/ibays/gallery/html>
   AllowOverride Options FileInfo
</Directory>
-----------------

Warning!
Magic quotes are on. Your webserver administrator can turn them off by putting :

   magic_quotes_gpc = Off
in your php.ini file.
-------------------

Warning!
Either mod_rewrite is not installed or your .htaccess file is not enabled (see above). Either way, we'll have to use longer URLs in the Gallery. If you want to turn it on, first make sure that your .htaccess file is being obeyed. If it still doesn't work, you may need to reconfigure and rebuild Apache with this flag:

   --enable-module=rewrite
-----------------

Warning!
I can't find ImageMagick. If it's installed and not in the path of the webserver user that's OK—you can specify the path to ImageMagick by hand on the following page. If it's not installed, you must install it. Gallery prefers ImageMagick version 5.4.8 and up. You can compile and install the entire ImageMagick package from the ImageMagick website.

Note: The site also has binaries available for assorted operating systems. If you can't get it working, try leaving the ImageMagick path blank and using NetPBM instead.

Note: Your PHP installation is configured with the open_basedir restriction. This may make it difficult for Gallery to detect and verify your binaries, even if you've already successfully used the Config. Wizard in the past. Don't worry too much if this page gives warnings; your settings will still be saved properly.
-------------

Warning

It seems you didn't download any additional languages. This is not a problem! Gallery will appear just in English. Note: If this is not true, check that all files in locale folder are readable for the webserver, or contact the Gallery Team.

-----------------------

but it said in the bottom part:
Quote
Your installation has warnings, but this is usually OK. Keep going!


so i did. then howto said "click Default", and again i did up to "save config".

when i uploaded the picture, its was successful but the gallery wont show it. i checked it in the ibay, and its there but it wont really show the picture.

i emailed the author of the howto, but i still didnt heard from him/them so i made an experiment. heres what i did:

i followed some points from the HowTo implement website access security for internal/external users by Darrell May on how edit the the httpd.conf. so hears what i did:

Quote
mkdir -p /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf
pico /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/86TestSecurity


-- i used pico then pasted this:

Code: [Select]
#------------------------------------------------------------
# gallery ibay directories (Picture Gallery)
#------------------------------------------------------------

<Directory /home/e-smith/files/ibays/gallery/html>
    Options Indexes
    Options +Includes
    AllowOverride Options FileInfo
    order deny,allow
    deny from all
    allow from all
</Directory>


base from the said warning i had:
Quote
Warning!
Apache is not obeying your .htaccess file. Try entering the following into your web server's httpd.conf file:


<Directory /home/e-smith/files/ibays/gallery/html>
AllowOverride Options FileInfo
</Directory>


then i expanded the template:
Quote
sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
/etc/rc.d/init.d/httpd-e-smith restart


but when i pico to /etc/httpd/conf/httpd.conf, it seems that what i did didnt do anything to it:

Code: [Select]
#------------------------------------------------------------
# gallery ibay directories (Picture Gallery)
#------------------------------------------------------------

<Directory /home/e-smith/files/ibays/gallery/html>
    Options Indexes
    Options +Includes
    AllowOverride None
    order deny,allow
    deny from all
    allow from all
</Directory>

<Directory /home/e-smith/files/ibays/gallery/cgi-bin>
    Options ExecCGI
    AllowOverride None
    order deny,allow
    deny from all
    allow from all
</Directory>

<Directory /home/e-smith/files/ibays/gallery/files>
    AllowOverride None
    order deny,allow
    deny from all
    allow from all
</Directory>
[/color]


im still not that good in the template system of e-smith so i refer to the the HOWTOs of other people on doing things. so PLEASE, PLEASE HELP ME ON THIS :(
Title: gallery will upload pics but wont show it
Post by: ajkeane on March 31, 2004, 09:27:47 AM
This is the custom template that I have used.

#-------------------------------------------
#   Gallery 1.3
#-------------------------------------------

  Alias       /gallery         /opt/gallery

<Directory /home/e-smith/files/ibays/gallery/html>
    AddType application/x-httpd-php .php .php3 .phtml
    Options Indexes +Includes FollowSymLinks
    AllowOverride Options FileInfo
    order deny,allow
    deny from all
    allow from all
</Directory>

#------------------------------------------

This all works fine for me.

No errors on install. I also installed imagemagic.

I did have an issue with the pictures not showing. Only got a square with an X in it this was due to the path to the album being incorrect in the config file.

Tony
Title: gallery will upload pics but wont show it
Post by: Anonymous on March 31, 2004, 10:41:30 AM
so ill do the same steps but ill use that template?
Title: gallery will upload pics but wont show it
Post by: copyl3ft on March 31, 2004, 10:44:50 AM
sorry forgot to login
Title: gallery will upload pics but wont show it
Post by: copyl3ft on March 31, 2004, 10:50:30 AM
Quote
[root@gateway root]# rpm -i ImageMagick-5.5.7-10.src.rpm
[root@gateway root]# rpm -q ImageMagick
package ImageMagick is not installed
[root@gateway root]# rpm -i ImageMagick-5.5.7-10.i386.rpm
error: failed dependencies:
        libICE.so.6   is needed by ImageMagick-5.5.7-10
        libSM.so.6   is needed by ImageMagick-5.5.7-10
        libX11.so.6   is needed by ImageMagick-5.5.7-10
        libXext.so.6   is needed by ImageMagick-5.5.7-10
        libXt.so.6   is needed by ImageMagick-5.5.7-10
        libc.so.6(GLIBC_2.3)   is needed by ImageMagick-5.5.7-10
        libdps.so.1   is needed by ImageMagick-5.5.7-10
        libdpstk.so.1   is needed by ImageMagick-5.5.7-10
        libgcc_s.so.1   is needed by ImageMagick-5.5.7-10
        libgcc_s.so.1(GCC_3.0)   is needed by ImageMagick-5.5.7-10
        libpng12.so.0   is needed by ImageMagick-5.5.7-10
        libstdc++.so.5   is needed by ImageMagick-5.5.7-10
        libstdc++.so.5(CXXABI_1.2)   is needed by ImageMagick-5.5.7-10
        libstdc++.so.5(GLIBCPP_3.2)   is needed by ImageMagick-5.5.7-10
        libstdc++.so.5(GLIBCPP_3.2.2)   is needed by ImageMagick-5.5.7-10
[root@gateway root]#
Title: gallery will upload pics but wont show it
Post by: ajkeane on March 31, 2004, 12:41:35 PM
Flick me an email and I will get the imagemagic rpms to you.

Tony
Title: gallery will upload pics but wont show it
Post by: knut on March 31, 2004, 01:43:28 PM
If you use non english letters in the filename or album name the pictures wont show, but you dont get an error message when uploading with gallery remote. I have made this mistake with norwegian characters myself.
Title: gallery will upload pics but wont show it
Post by: copyl3ft on March 31, 2004, 01:48:25 PM
Quote from: "ajkeane"
Flick me an email and I will get the imagemagic rpms to you.

Tony


the email add is copyl3ft@yahoo.com

thanks
Title: gallery will upload pics but wont show it
Post by: cyberdude on September 26, 2004, 01:00:01 PM
Quote from: "copyl3ft"
Quote from: "ajkeane"
Flick me an email and I will get the imagemagic rpms to you.

Tony


the email add is copyl3ft@yahoo.com

thanks

is it posible to get a copy of that rpm to ?
i'm trying to install typo3 cms - and it needed by that software
my e-mail is file@gonzzo.dk

sincerly
Sonny