Re: Re: PHP Parsing Problem

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

 



Igor,
1. Firefox asks me what I want it to do with the file whenever I try to open a php file.
2. The contents of the php5.conf file are as follows:
<IfModule mod_php5.c>
<FilesMatch "\.ph(p3?|tml)$">
SetHandler application/x-httpd-php
</FilesMatch>
<FilesMatch "\.phps$">
SetHandler application/x-httpd-php-source
</FilesMatch>
# To re-enable php in user directories comment the following lines
# (from <IfModule ...> to </IfModule>.) Do NOT set it to On as it
# prevents .htaccess files from disabling it.
<IfModule mod_userdir.c>
<Directory /home/*/public_html>
php_admin_value engine Off
</Directory>
</IfModule>
</IfModule>

Thank you for your help.

-Xavier
On , Igor GaliÄ <i.galic@xxxxxxxxxxxxxx> wrote:
>
>
>
>
> ----- Original Message -----
>
> > Dear Users,
>
> >
>
> > I'm still not getting Apache to parse PHP. I've learned a lot though,
>
> > here's what I know:
>
> >
>
> > In apache2.conf, there are these lines:
>
> >
>
> > Include /etc/apache2/mods-enabled/*.load
>
> > Include /etc/apache2/mods-enabled/*.conf
>
> >
>
> > When I run Âls /mods-enabled, I see php5.conf and php5.load, among
>
> > others,
>
> > And when I run cat 'php5.load', I see LoadModule php5_module
>
> > /usr/lib/apache2/modules/libphp5.so.
>
> >
>
> > Do these facts, taken together, not mean that PHP5 is installed,
>
> > available, and enabled?
>
> >
>
> > Shouldn't Apache therefore parse PHP?
>
> >
>
> > When I run apache2ctl -L. I don't see the string 'PHP' anywhere in
>
> > the
>
> > output. Should I?
>
> >
>
> > When I run a2enmod php5, it says it's already enabled.
>
> >
>
> > This is my Virtual Host configuration:
>
> >
>
> >
>
> > Â Â Â Â ServerName http://testing.dev
>
> > Â Â Â Â ServerAdmin webmaster@localhost
>
> > Â Â Â Â DocumentRoot /home/zave/Public/testing
>
> > Â Â Â Â
>
> > Â Â Â Â Â ÂSetHandler application/x-httpd-php
>
> > Â Â Â Â
>
> > Â Â Â Â
>
> > Â Â Â Â Â Â Â Â Options FollowSymLinks
>
> > Â Â Â Â Â Â Â Â AllowOverride None
>
> > Â Â Â Â
>
> > Â Â Â Â
>
> > Â Â Â Â Â Â Â Â Options Indexes FollowSymLinks MultiViews
>
> > Â Â Â Â Â Â Â Â AllowOverride None
>
> > Â Â Â Â Â Â Â Â Order allow,deny
>
> > Â Â Â Â Â Â Â Â allow from all
>
> > Â Â Â Â
>
> >
>
> > Â Â Â Â ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
>
> > Â Â Â Â
>
> > Â Â Â Â Â Â Â Â AllowOverride None
>
> > Â Â Â Â Â Â Â Â Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
>
> > Â Â Â Â Â Â Â Â Order allow,deny
>
> > Â Â Â Â Â Â Â Â Allow from all
>
> > Â Â Â Â
>
> >
>
> >
>
> > Does anyone see what is preventing PHP from being parsed? I'm running
>
> > Apache 2.2.14/Ubuntu 10.04, LAMP Install. Thanks for your help thus
>
> > far.
>
>
>
> How, exactly, is the problem manifesting?
>
>
>
> What is the contents of the php5.conf file?
>
>
>
> > -Xavier
>
>
>
> i
>
>
>
> --
>
> Igor GaliÄ
>
>
>
> Tel: +43 (0) 664 886 22 883
>
> Mail: i.galic@xxxxxxxxxxxxxx
>
> URL: http://brainsware.org/
>
>
>
> ---------------------------------------------------------------------
>
> The official User-To-User support forum of the Apache HTTP Server Project.
>
> See http://httpd.apache.org/userslist.html> for more info.
>
> To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
>
> Â " Â from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
>
> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
>
>
>
[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux