How to make Apache run PHP on Debian

Support and queries relating to all previous versions of ZoneMinder
Locked
birdbrain
Posts: 5
Joined: Mon Aug 22, 2005 11:18 pm

How to make Apache run PHP on Debian

Post by birdbrain »

Thanks b.addis for the advice on using Debian Stable. Installed once I upgraded libgcc1

Next problem is that when I click on the zm directory from a browser I get the download dialog. How do I make apache (not apache2) execute the php scripts?
I tried this

<Directory /var/www/zm>
Options +ExecCGI
</Directory>

but it still shows the download dialog after starting

Using Debian Stable 2.4.24
maximum
Posts: 19
Joined: Wed Aug 17, 2005 8:17 pm

Re: How to make Apache run PHP on Debian

Post by maximum »

if you haven't php4 running this mean that php4 is not installed. i think you need to install:

# apt-get install php4 php4-cgi php4-common php4-gd php4-mysql

ciao,
MaX
Locked