Connecting Tech Pros Worldwide Forums | Help | Site Map

apache, php - problems with image galleries

Oliver
Guest
 
Posts: n/a
#1: Jul 17 '05
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
Guest
 
Posts: n/a
#2: Jul 17 '05

re: apache, php - problems with image galleries



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



Oliver wrote:[color=blue]
> 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[/color]

Oliver Otto
Guest
 
Posts: n/a
#3: Jul 17 '05

re: apache, php - problems with image galleries


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:
[color=blue]
>do you have the gd library and php-gd installed? you did say it was a fresh
>server install...
>
>
>
>Oliver wrote:
>
>[color=green]
>>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
>>
>>[/color]
>
>
>[/color]
obi wan kenobi
Guest
 
Posts: n/a
#4: Jul 17 '05

re: apache, php - problems with image galleries


Oliver Otto wrote:
[color=blue]
> 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[/color]

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=blue]
> obi wan kenobi wrote:
>[color=green]
>>do you have the gd library and php-gd installed? you did say it was a
>>fresh server install...
>>
>>
>>
>>Oliver wrote:
>>
>>[color=darkred]
>>>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
>>>
>>>[/color]
>>
>>
>>[/color][/color]

Closed Thread


Similar PHP bytes