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

Re: php and apache?



On Feb 19, 2008 5:25 PM, Zach <netrek@gmail.com> wrote:
> Hello,
>
> I am trying to open some PHP test scripts but my webserver (running on
> localnet) prompts me to download them when I try to load one in
> apache. Here are the packages I have installed:
>
> ii  libapache2-mod-php5                                     5.2.4-2+b1
>                     server-side, HTML-embedded scripting languag
> ii  php5                                                    5.2.4-2
>                     server-side, HTML-embedded scripting languag
> ii  php5-cgi                                                5.2.4-2+b1
>                     server-side, HTML-embedded scripting languag
> ii  php5-cli                                                5.2.4-2+b1
>                     command-line interpreter for the php5 script
> ii  php5-common                                             5.2.4-2+b1
>                     Common files for packages built from the php
> ii  apache2                                                 2.2.6-3
>                     Next generation, scalable, extendable web se
> ii  apache2-common                                          2.0.55-4
>                     next generation, scalable, extendable web se
> ii  apache2-mpm-prefork                                     2.2.6-3
>                     Traditional model for Apache HTTPD
> ii  apache2-utils                                           2.2.6-3
>                     utility programs for webservers
> ii  apache2.2-common                                        2.2.6-3
>                     Next generation, scalable, extendable web se
>
> Must I change /etc/apache2/apache2.conf somehow to get this working?
>
> Running Debian lenny.
>
> Zach
>

Run a2enmod php5 to enable the php5 module.  Then restart apache2.
You don't need to have both php5-cgi and libapache2-mod-php5
installed.  Unless you specifically need the cgi version, you can just
stick to the apache2 module.

-- 
Kushal


Reply to: