By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,751 Members | 1,216 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,751 IT Pros & Developers. It's quick & easy.

apache, php - problems with image galleries

P: n/a
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
Jul 17 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a

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


Jul 17 '05 #2

P: n/a
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:

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


Jul 17 '05 #3

P: n/a
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.

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:

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



Jul 17 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.