For Programmers: Free Programming Magazines  


Home > Archive > PHP Programming > June 2004 > apache, php - problems with image galleries









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author apache, php - problems with image galleries
Oliver

2004-06-28, 4:07 pm

Hi,

I have a strange problem and I am not sure where to look for the core
reason. I have a homepage in php which is working fine since ages and
I have now a new server with a fresh Suse 9.1 installation and all
apache + php modules installed (coming with Suse). My side is working
allright apart from my image gallery which does not generate any error
message but I can only see a few "random" images. First I thought ok
my php script needs an update but I also tried the
http://spgm.sourceforge.net gallery with the same problem (here I
cannot see even the demo gallery), again no error message.
I have linked my directory to another server running Suse 8.2 with
apache 2.0.48 and php 4.3.4 and here my side is running with no
problems. The same applies to the spgm gallery.

Does anyone has an idea what could cause this problem?

Oliver
obi wan kenobi

2004-06-28, 4:07 pm


do you have the gd library and php-gd installed? you did say it was a fresh
server install...



Oliver wrote:
> Hi,
>
> I have a strange problem and I am not sure where to look for the core
> reason. I have a homepage in php which is working fine since ages and
> I have now a new server with a fresh Suse 9.1 installation and all
> apache + php modules installed (coming with Suse). My side is working
> allright apart from my image gallery which does not generate any error
> message but I can only see a few "random" images. First I thought ok
> my php script needs an update but I also tried the
> http://spgm.sourceforge.net gallery with the same problem (here I
> cannot see even the demo gallery), again no error message.
> I have linked my directory to another server running Suse 8.2 with
> apache 2.0.48 and php 4.3.4 and here my side is running with no
> problems. The same applies to the spgm gallery.
>
> Does anyone has an idea what could cause this problem?
>
> Oliver


Oliver Otto

2004-06-28, 4:07 pm

I just started debugging on this problem and I found out that the
function "readdir" causes all this trouble. For some reason it is not
reading directories and only some file names.

I don't know yet why this happens, but I will keep looking for it.

Oliver

obi wan kenobi wrote:

>do you have the gd library and php-gd installed? you did say it was a fresh
>server install...
>
>
>
>Oliver wrote:
>
>
>
>
>

obi wan kenobi

2004-06-29, 8:56 am

Oliver Otto wrote:

> I just started debugging on this problem and I found out that the
> function "readdir" causes all this trouble. For some reason it is not
> reading directories and only some file names.
>
> I don't know yet why this happens, but I will keep looking for it.
>
> Oliver


sounds like a permissions issue.

you need to ensure that whatever user apache runs as , has read and write
access to the gallery directories, using chown/chmod command.

in most cases the user is "apache", but it might be different for you.

ps -ef | grep -i "httpd" | awk {'print $1'}

will give you a list of who is running the httpd processes.



[color=darkred]
> obi wan kenobi wrote:
>

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2010 codecomments.com