[NTLUG:Discuss] Newbie question re: apache2, php, etc

Greg Edwards greg at edwards-tx.us
Sat Feb 7 09:01:11 CST 2015


In your Directory definition do you have access permissions setup?

   <Directory "/home/*/public_html">
     Order allow,deny
     Allow from all
   </Directory>


Greg
http://greg.edwards-tx.us

Fred wrote:
> Long back story but it boils down to I have a server that has a
> lot of php files and after much reading and configuration, etc I
> ran across this tidbit:
>
> In case the browser wants to save your php files instead of displaying
> the content, you should enable php support in the /etc/apache2/mod_
> userdir.conf file. Add the following line to it, just after the
> <Directory /home/*/public_html> line and restart the server.
> Include /etc/apache2/conf.d/php5.conf
>
> If you're still unable to get to the page or are getting error pages instead
> please <seek> help.
> ============
>
> Well, DUH!
>
> Ok, I think that I have everything installed, configured and running but
> when I try to open a php file with firefox it still wants to save the files
> instead of displaying them. I have tried running firefox as both a user
> and as root, no difference. My limited knowledge has been exceeded
> and now I am following instructions and asking for help.
>
> I really would like the php files to render in my browser and, hopefully,
> anyone else's browser that goes there.
>
> Thanks,
> Fred
> opensuse 12.3
> apache2 2.2.29
> perl 5.16.2
>
> _______________________________________________
> http://www.ntlug.org/mailman/listinfo/discuss
>



More information about the Discuss mailing list