473,408 Members | 2,161 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

apache, php - problems with image galleries

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
3 2082

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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Captain Ranger McCoy | last post by:
Hello! Suppose I have ten servers at ten ips: x.x.x.1 x.x.x.2 x.x.x.3 x.x.x.4 and so on Each server hosts 100+ photo galleries, all under a single domain name,
5
by: Lorenzo Bolognini | last post by:
Hi all, i'm looking for a free image gallery generator in ASP 3 on ASP+. I've already looked on sourceforge.net but no one seems to fit my needs which include: - admin area to create/destroy...
10
by: ste | last post by:
Hi there, I'm trying to query a MySQL database (containing image data) and to output the results in a HTML table of 3 columns wide (and however many rows it takes) in order to create a basic...
10
by: cjparis | last post by:
Hello everyone. If anyone can give me a hand I would be gratefull Am doing a site which requires a moving element and have used DHTML to do it. Have a simple Browser detect script to sort IE...
11
by: timmyb | last post by:
I have an image that is supposed to be in a centered div in the center of a page. It looks fine in IE7. But in Firefox, the image is pushed way over to the right. ...
4
by: tswaters | last post by:
Alright, so generally I'm using document.createElement("IMG").... but, I've noticed something just recently that made me switch to "new Image()" What I'm doing is creating a photo gallery of...
11
by: shapper | last post by:
Hello, I am displaying an image on a few pages. The image size is 50 px height and 50 px width. In some pages I need the image to be 30x30 px in others 40x40 px and in others 50x50px. Can I...
0
by: aromes | last post by:
Hi, How to grab pictures out of online Flash image galleries? I will have the same question for hp/javascript online photo galleries as well (but will post them in their relevant sections unless...
1
by: aromes | last post by:
How to Grab pictures out of online JAVASCRIPT image galleries? Thanks so much
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.