Nope still didn't work.. Can't see anything else with the configs.
Neil Perry
Hi Neil,
Hmm, that doesn't look right to me. Perhaps you could try taking that
out and then restarting Apache?
James
On 10 March 2010 20:46, Neil Perry <nperry@gmail.com> wrote:
> Woops, my bad - Sorry.
> <IfModule mod_userdir.c>
> UserDir public_html
> UserDir disabled root
> <Directory /home/*/public_html>
> AllowOverride FileInfo AuthConfig Limit Indexes
> Options MultiViews Indexes SymLinksIfOwnerMatch
> IncludesNoExec
> <Limit GET POST OPTIONS>
> Order allow,deny
> Allow from all
> </Limit>
> <LimitExcept GET POST OPTIONS>
> Order deny,allow
> Deny from all
> </LimitExcept>
> AddHandler php5-script php
> </Directory>
> </IfModule>
> is in userdir.conf, is the Addhandler line right?
> Many Thanks
> Neil Perry
>
>
> On 10 March 2010 20:44, James Gregory <jgxenite@gmail.com> wrote:
>>
>> Hi Neil,
>>
>> (cc'd the list back in :)
>>
>> Might be a good idea to grep the rest of the Apache config files, and
>> see if you can find anywhere else where it might be disabled. That
>> config should allow it to work anywhere on your site (assuming it
>> isn't disabled elsewhere :)
>>
>> James
>>
>> On 10 March 2010 20:42, Neil Perry <nperry@gmail.com> wrote:
>> > James,
>> > Thanks for your reply. I'm using debian, but found the php5.conf.
>> > Here is its current contents:
>> > <IfModule mod_php5.c>
>> > <FilesMatch "\.ph(p3?|tml)$">
>> > SetHandler application/x-httpd-php
>> > </FilesMatch>
>> > </IfModule>
>> > Nothing about the ifmodule user dir.
>> > Thanks
>> > Neil Perry
>> >
>> >
>> > On 10 March 2010 20:38, James Gregory <jgxenite@gmail.com> wrote:
>> >>
>> >> Hi Neil,
>> >>
>> >> If you're using Ubuntu, look in /etc/apache2/mods-available/php5.conf:
>> >> <IfModule mod_userdir.c>
>> >> <Directory /home/*/public_html>
>> >> php_admin_value engine Off
>> >> </Directory>
>> >> </IfModule>
>> >> You need to comment out the above lines - they disable PHP in user
>> >> directories.
>> >>
>> >> Hope that helps!
>> >>
>> >> James
>> >>
>> >> On 10 March 2010 20:28, Mathew Newton <bitfolklist@newtonnet.co.uk>
>> >> wrote:
>> >> > Sorry Neil, disregard my advice as I now that I read your e-mail
>> >> > *properly* I see you were making specific reference to the user dir!
>> >> >
>> >> > Apologies for the noise everyone...
>> >> >
>> >> > Mathew
>> >> >
>> >> > On Wed, March 10, 2010 8:25 pm, Mathew Newton wrote:
>> >> >> Hi Neil,
>> >> >>
>> >> >> On Wed, March 10, 2010 8:16 pm, Neil Perry wrote:
>> >> >>> When I go to a PHP file in my user dir it downloads the php file.
>> >> >>> The
>> >> >>> html
>> >> >>> index file seems to work fine.
>> >> >>
>> >> >> Have you got Apache's PHP module installed and enabled?
>> >> >>
>> >> >> As root, the following will sort it (or confirm if they are
>> >> >> already):
>> >> >>
>> >> >> apt-get install libapache2-mod-php5
>> >> >> a2enmod php5
>> >> >>
>> >> >> (Then restart Apache with /etc/init.d/apache2 restart)
>> >> >>
>> >> >> Without this module, Apache just sees them as text files and outputs
>> >> >> the
>> >> >> content rather than interprets it.
>> >> >>
>> >> >> Mathew
>> >> >
>> >> >
>> >> >
>> >> >
>> >> > _______________________________________________
>> >> > users mailing list
>> >> > users@lists.bitfolk.com
>> >> > https://lists.bitfolk.com/mailman/listinfo/users
>> >> >
>> >
>> >
>
>