My /etc/apache2/mods-enabled/suphp.conf reads:

<IfModule mod_suphp.c>
        AddType application/x-httpd-suphp .php .php3 .php4 .php5 .phtml
        suPHP_AddHandler application/x-httpd-suphp

    <Directory />
        suPHP_Engine on
    </Directory>

    # By default, disable suPHP for debian packaged web applications as
files
    # are owned by root and cannot be executed by suPHP because of min_uid.
    <Directory /usr/share>
        suPHP_Engine off
    </Directory>

# # Use a specific php config file (a dir which contains a php.ini file)
#       suPHP_ConfigPath /etc/php4/cgi/suphp/
# # Tells mod_suphp NOT to handle requests with the type <mime-type>.
#       suPHP_RemoveHandler <mime-type>
</IfModule>

So that line about the AddType application and suPHP_AddHandler were all
along there...

Since I am getting a download for every page that I look that is php it
seems that the new setup does not read .htaccess and therefore does not
parse any php, I wonder what could also be wrong in my apache2.conf and
site.con under sites-available...

Any hint where to look?

On Tue, Nov 2, 2010 at 11:42 PM, Luis Cordova <[email protected]> wrote:

> Aki:
> now you confuse me.
> When I install suphp I used Applications>>Ubuntu Software Center>> and
> typed suphp, and then I installed those packages, if I remember correctly
> they were already there (but I don't quite remember). In any case, that is
> what I have been using all along. And when I do apt-get I think I get the
> same modules you are talking about. So I am not sure if you are more newbie
> than I am or if I am mistaken or if you are talking of something else.
>
> I will now proceed following the instructions I get from corrideat
>
> On Tue, Nov 2, 2010 at 3:43 AM, Aki Tuomi <[email protected]> wrote:
>
>> You are using Ubuntu, why not utilize:
>>
>> libapache2-mod-suphp - Apache2 module to run php scripts with the owner
>> permissions
>>
>> which would set it up for you...
>>
>> Aki Tuomi
>>
>> -----BEGIN PGP SIGNATURE-----
>> Version: GnuPG v1.4.9 (GNU/Linux)
>>
>> iEYEARECAAYFAkzPzyAACgkQahHbMDrZuj4MxQCglnsWbWYdiLblRRP2Www2EnRz
>> o4QAnRb0Q8TNwFXzh13FNNZsv6IWRcIw
>> =/4lI
>> -----END PGP SIGNATURE-----
>>
>>
>
_______________________________________________
suPHP mailing list
[email protected]
https://lists.marsching.com/mailman/listinfo/suphp

Reply via email to