Running Gallery with Apache, MySQL and PHP on WinXP - help n

bigbear

Joined: 2002-08-16
Posts: 11
Posted: Thu, 2002-08-22 07:00

Hi

I am currently running on the above setup, but here's a more specific outline:
Apache 1.3
MySQL 3.2
PHP 4.2.2
Windows XP

Setup went well without any problems. It's only when I try to upload pictures. By the way, I am running Gallery on my own computer, testing it out first. Here's how the directory structure is like:
d:/program files/apache group/apache/htdocs/demo/gallery
d:/program files/apache group/apache/htdocs/netpbm
( d:/program files/apache group/apache/htdocs = http://localhost )

The setup detected Netpbm. But when I launch the Check Netpbm utility it gave me a lot of error messages that it could not find the files.

If I try to link an image file after clicking on the add photos option, Gallery will be able to detect the file and list it down, but 'hang' on the uploading screen.

Any help is much appreciated on what I must do to get Gallery running on my computer. I've even renamed the pnmtojpeg thingy, but still no luck.

 
Nobsi

Joined: 2002-08-22
Posts: 2
Posted: Thu, 2002-08-22 18:56

Well, I have the same configuration and exactly the same problem. Can anybody help?

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Thu, 2002-08-22 19:49

Looks like there were some issues with check_netpbm.php so that it didn't work very effectively on Windows. That's what I get for adding some diagnostics without really checking them on all platforms. At any rate, if you get the latest version of check_netpbm.php from CVS, or get the latest snapshot (v1.3.2-cvs-b2) from the snapshots page (it'll be out tomorrow) it should improve the functionality of that page.

As for the upload-hang issue, I don't have a good answer for that. It's an issue with the way that PHP interacts with the NetPBM binaries. It affects some folks and not others. If anybody has a clue on this let me know.

 
sajo
sajo's picture

Joined: 2002-08-24
Posts: 3
Posted: Fri, 2002-09-06 02:06

I have exatly the same problem What to do :mad:

 
Rosco

Joined: 2002-09-07
Posts: 1
Posted: Sat, 2002-09-07 05:38

It is faily simple to resolve this problem. Got to the setup of the gallery again ( after you did the configure.bat (start-> run-> cdm-> cd c:pathtogallery
cmd configure.bat ) the run the setup. If you place the Netpbm in c:appsnetpbm have it look one directory down say by me c:appsnetpbmwin32 and it should be fine :cool: null

 
havardt

Joined: 2002-09-16
Posts: 1
Posted: Mon, 2002-09-16 21:49

I’m running:
Apache 1.3.26
PHP 4.2.2
WindowsXP

I have the exact same problem as well. :???: When I try to upload images it looks like everything is going well. I can see the first image going over to the album directory on the server in Windows Explorer, and then the tubnail is created. But nothing actually happens on the server. The window with “File uploads in progress!

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Wed, 2002-09-18 07:39
Quote:
When I try to upload images it looks like everything is going well. I can see the first image going over to the album directory on the server in Windows Explorer, and then the tubnail is created. But nothing actually happens on the server. The window with “File uploads in progress!

 
rmulders

Joined: 2003-02-27
Posts: 2
Posted: Thu, 2003-02-27 08:22

Anyone figured this problem out yet?

It seems I got the same problem that teh systems *sometimes* hangs when uploading pictures. I am running win2k with apache 1.3.X and PHP (als a dll).

Will try some more test tonight, including the debug option and running PHP as CGI.

 
somroj

Joined: 2003-02-27
Posts: 8
Posted: Thu, 2003-02-27 11:20

I am also a newby. But here is what I did to solve the problem, mine is uploading now, so this should help just a little.

- Make sure you have changed in httpd.conf the AllowOverride Options FileInfo on the line that control what directives may be placed in .htaccess file (again, I am a newby, don't know exactly what it did, trying to follow the instructions)
- Increase the max_execution_time in php.ini to 300 (that works for me)
- Increase the same execution time limit in gallery setup page, again I use 300

These are what I did and my gallery now can upload photos, though very slowly. It seems to slow down for no reason right after netpbm loaded the original and created a thumb nail. It stalls for like 3 mins before it spits out the .sized.jpg file (640x480). Because all these, I can only upload one photo at a time.

Btw, I am test running mine right on my machine (through localhost). Hope these help some what. I still have this super slow upload problem. But for now, I am happy it's working. Gallery has the best features indeed!

Somroj :smile:

PS: If you find the real solution to this, please email me

 
dazman
dazman's picture

Joined: 2003-03-02
Posts: 3
Posted: Sun, 2003-03-02 09:42

Running

Apache 1.3.27
PHP 4.2.3
WinXP SP1..

And I am having the same problem. In the album folder, it will place the original .jpg, and create a new jpg called xxx.thumb.jpg with a zero byte size, and pause there.

I increased the execution time, and that stopped giving me the timeout error, but it sat there for a long time, and still didnt finnish. (I just gave up on waiting).

There has to be a fix for this.. Takes over 5 minutes to upload a 12kb image (if it even does) and during that time, the CPU is 99% idle.. no processes related to apache/netpbm are even 1% active.

 
dazman
dazman's picture

Joined: 2003-03-02
Posts: 3
Posted: Mon, 2003-03-03 03:44