Re: browser tries to download php test file info.php
> > > Say, I'm stuck making PHP go. As per instructions on page 43 of
> > > Converse and Park, I made an info.php file, but when I specify
> it's URI,
> > > the browser just tries to download it. I've got the Addtype(s) in
> > > Apache, and I've got valid /etc/php4/*/php.ini files (the * gives
> > > "apache" and "cgi" directories), and I've protected /var/www as
> per the
> > > instructions. So what gives? Is this a simple omission, or am I
> > > broken? Is this obvious?
> > >
> >
> > Have you uncommented -
> > LoadModule php4_module /usr/lib/apache/1.3/libphp4.so
> > in /etc/apache/httpd.conf and restarted Apache?
>
> Yes:
>
> # LoadModule pgsql_auth_module /usr/lib/apache/1.3/mod_auth_pgsql.so
> # LoadModule eaccess_module /usr/lib/apache/1.3/mod_eaccess.so
> LoadModule php4_module /usr/lib/apache/1.3/libphp4.so
> # LoadModule roaming_module /usr/lib/apache/1.3/mod_roaming.so
>
> I tried restarting it both with /etc/init.d/apache restart and
> /etc/init.d/apache start after killing it manually. Both times same
> thing. Netscape just pops up a window to write the info.php file to a
> local file.
you need to add it as a file type too.
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
then, as root, type apachectl restart
(==timothy==)
Reply to: