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

Re: php and apache?



On Tue, 2008-02-19 at 15:14 -0500, Zach wrote:
> On Feb 19, 7:40 am, "Kushal Kumaran" <kushal.kumaran+deb...@gmail.com> wrote:
> >
> > 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.
> 
> Ok but it seems I already have this module loaded and I still can't
> open php scripts. When I try to open /var/www/phpsysinfo/index.php it
> says "You have chosen to open: index.php which is a PHP script" and it
> queries me if I want to save it to disk or open with Bluefish. Any
> other ideas?
> 
> Zach
> 
Sounds like apache2 knows what to do, BUT...did you check the /etc/php5/apache2/php.ini  for proper configs.
This may require a bit of study and effort on your part to determine
exactly how you want php5 to work. In the 'out of the box' set up
php.ini is NOT properly configured for a production system..but rather
for development.
Good Luck!
Frosty


Reply to: