Apache 2

wrzask

Joined: 2002-10-07
Posts: 3
Posted: Mon, 2002-10-07 12:16

Hello there,

I would like to kindly request support for Apache 2. As for now, PHP 4.2.3 supports
Apache2 and works fine. Still, I cannot run Gallery (1.3.1). After configuring the
gallery, I still get an information that it's not configured. I checked it on the other
server, on which I have Apache 1.3 and it works fine there. I guess it must be some
problem with predefined server variables (eg. configuration wizard had trouble determining
the server name and document root on Apache 2, while it worked on 1.3).

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Mon, 2002-10-07 21:48

According to the php.net site, support for Apache 2 is still experimental in PHP 4.2.3.

We won't support Apache 2 until PHP does.

 
wrzask

Joined: 2002-10-07
Posts: 3
Posted: Tue, 2002-10-08 00:28

Well, maybe they call it "experimental", but still many people do use it.
From my observations PHP on Apache2 works just as stable as on 1.3; Does
it have to be so official? What's the difference, anyway?

Gallery is the firs thing I had trouble with on Apache2 and PHP.

 
axman

Joined: 2002-09-07
Posts: 57
Posted: Sat, 2002-10-19 04:22

I am also experiencing this same problem, i would much appreciate it if you started to offer apache 2 support

 
Pathstar2
Pathstar2's picture

Joined: 2002-11-07
Posts: 3
Posted: Thu, 2002-11-07 04:19

Please advise where in the apache or php web site they say they don't officially support apache2 and php4 together I have done a search of both sites and can't find any reference. I did find one reference on Google that Apache2 officially supported PHP 4.3 but it was not on either site.

 
beckett
beckett's picture

Joined: 2002-08-16
Posts: 3474
Posted: Thu, 2002-11-14 10:28

Pathstar...
PHP Changelog at http://www.php.net/ChangeLog-4.php
PHP 4.2.0 Release Notes at http://www.php.net/release_4_2_0.php

"The Apache Software Foundation recently released their first General Availability version of Apache 2. PHP 4.2.0 will have EXPERIMENTAL support for this version... We do not recommend that you use this in a production environment."

"Version 4.2.0 : 22-Apr-2002 ...
Note: Apache2 support is EXPERIMENTAL."

Regards,
-Beckett (beck@beckettmw.com)

 
TheHideoutGuy

Joined: 2002-10-08
Posts: 2
Posted: Tue, 2002-11-19 14:51

It's also worth noting that Apache 2 requires all modules to be thread-safe, and the php sapi modules still are not. The only reliable way to use Apache2+php is to run it as a CGI which is not a viable option in a production environment.

 
wrzask

Joined: 2002-10-07
Posts: 3
Posted: Sun, 2002-11-24 19:29

Apache2 requires modules to be thread-safe only when it is being run
with threads. You can run Apache2 in pre-fork, multiprocess mode and you don't
have to worry about threads at all.

 
mrbinky3000
mrbinky3000's picture

Joined: 2002-11-12
Posts: 23
Posted: Mon, 2002-11-25 19:55

I know NEXT TO NOTHING about LINUX. I'm a complete newbie running my first ever stab at Red Hat 8.0 on an obsolete 200 MHz pentium 2 pro with 32 meg of ram....

... that said, I have gotten Gallery 1.3.1 to work with APACHE2.

Out of the box install of RedHat 8.0, did not do any further updates.
PHP version 4.2.2
Apache Version 2.0.40

In the gallery directory's .htaccess file I had to remove the line
php_flag magic_quotes_gpc off

Apache 2 didn't like that line for some reason. Anyway, I had already set that option to off in /etc/php.ini (PHP's INI file) so it was redundant.

...but I still can't get the exif jhead option to work :grin:

- Matt

 
beckett
beckett's picture

Joined: 2002-08-16
Posts: 3474
Posted: Mon, 2002-11-25 20:24

... that said, I have gotten Gallery 1.3.1 to work with APACHE2.

That's GREAT!
(BTW, if you change the "php_flag" to "php_value" does it work then?... Apache2 is supposed to prefer "php_value")

...but I still can't get the exif jhead option to work :grin:

Are you sure Jhead's not working? Check the [photo properties] on a photo that you know for sure has EXIF data and see.
(I say this because of <!-- BBCode Start --><A HREF="http://gallery.sf.net/forums.php?topic=1929" TARGET="_blank">this thread</A><!-- BBCode End --> I posted).

-Beckett (beck@beckettmw.com)

 
mrbinky3000
mrbinky3000's picture

Joined: 2002-11-12
Posts: 23
Posted: Mon, 2002-11-25 22:59

there is no [photo properties] option anywhere that I can see. All the pictures are from a sony digital camera.

here is my url...
<!-- BBCode Start --><A HREF="http://marshal.frognet.net/~mtoledo/gallery" TARGET="_blank">Matt's Photo Album</A><!-- BBCode End -->

I have jhead in the proper location and the setup page says that it can find jhead. I can also run it from the command line.

One other odd thing I've noticed is that I've configured gallery several times to remove the "print with shutterfly" option and it is still showing up.

 
beckett
beckett's picture

Joined: 2002-08-16
Posts: 3474
Posted: Mon, 2002-11-25 23:22

Well, I clicked on <!-- BBCode Start --><A HREF="http://marshal.frognet.net/~mtoledo/gallery/view_photo.php?set_albumName=2002-11-02_halloween02&amp;id=Halloween_Athens_2002_photos_00005" TARGET="_blank">this photo</A><!-- BBCode End -->, and clicking on [photo properties], the EXIF data came up correctly... so Jhead's working just fine. (That's why I posted that other thread asking about it!).

As for removing the "Shutterfly" option, the settings in the Config. Wizard only apply to newly created albums... they don't take effect retroactively on albums you've already created. Navigate to each album and click on [properties] to turn off Shutterfly.

-Beckett (beck@beckettmw.com)

 
mrbinky3000
mrbinky3000's picture

Joined: 2002-11-12
Posts: 23
Posted: Mon, 2002-11-25 23:34

THANKS!

:grin:

 
vallimar

Joined: 2002-08-15
Posts: 487
Posted: Thu, 2002-12-05 20:52

Just to contribute, I've been using Apache 2/php 4.2.x-4.3.0 for quite some time
now running Gallery and everything else. I have yet to experience any apache 2
specific difficulties. Only bad thing about apache 2 that i've seen so far is the
lack of people porting their modules/extensions to it. I've also been using it
with mod_perl and mysql without any problems either, although I recommend
using mod_perl 1.99_05 currently over the newer one.

 
alindeman
alindeman's picture

Joined: 2002-10-06
Posts: 8194
Posted: Thu, 2002-12-05 22:58

A follow up to vallimar. I have been using Apache 2.0.43 also w/ Gallery (I was running a stable snapshot of PHP though [4.2.4-dev at the time]). I finally decided to downgrade because of the module support. I finally started feeling a little uncomfortable about running a development version of a bunch of modules that only had experimental support for Apache 2 (PHP, Mod_Perl [the version vallimar mentioned is still beta or alpha, I think], and Mod_Layout). Apache 1.3.27 is working fine and I found no real advantages *for me* to use 2.0, yet.