[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Why the constant conflicts between Apache2 & PHP4, Now Gallery has quit!



> There seem to be constant conflicts between Apache2 & PHP4 as far as
> getting
> the apache2-mod-php4 and any dependent applicatione to work properly. Any
> one
> know why this condition is predominent. I think there is a bug in the
> configs
> as Debian installed them as I have tweaked them to get them to try to
> work.
> Apache2 says it has loaded the php4 module. I don't know of a way to check
> php4 the see if the various php.ini files are configured correctly. I did
> add
> the lines  highlighted below to my apache2.conf file and it did change the
> error message, but still no gallery.
>
> AddType application/x-httpd-php .php
> AddType application/x-httpd-php-source .phps
>
> # To use CGI scripts outside /cgi-bin/:
> #
> AddHandler cgi-script .cgi
> AddHandler cgi-script .php
> AddHandler cgi-script.pl
>
> Keep in mind that my photo gallery (gallery)  was working just fine until
> I
> upgraded Apache2 then more issues.
> Any ideas to get it working again?
> --
> John Foster
>

Sounds like you are trying to use apache the 'normal' way. Use it the
'debian' way and you will find that it works a lot better when you
upgrade.

It is all split up so you can easily upgrade versions without having to
re-configure or miss out on new configurations. It just implys that you do
it correctly otherwise all your hard work might start disappearing on you.

get the original apache2.conf back
(if you want to edit apache2.conf, add stuff to the blank httpd.conf instead)

find what you want in this directory
/etc/apache2/mods-available
symlink what you want from that directory to this directory
/etc/apache2/mods-enabled

For gallery do something like this

make a file /etc/apache2/conf.d/gallery

dump this inside
#-----------------------------------
Alias /gallery /usr/share/gallery

<Directory /usr/share/gallery>
  Options FollowSymLinks
  AllowOverride Limit Options FileInfo
</Directory>
#------------------------------------

as for php.ini

phpinfo.php
//-----------------
phpinfo();
//-----------------

will tell you the configuration.

-Mike



Reply to: