Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Apache2 configuration

9 views
Skip to first unread message

Charles

unread,
Apr 16, 2012, 9:18:01 PM4/16/12
to
I'm trying to set up a web server under Debian, with Apache2, and i
don't understand the configuration. IThe original setup for Debian and
Apache2 has /var/www as the root of the web server. I've created a
number of folders below it for individual packages, such as:

/var/www/phpmyadmin
/var/www/phpmyedit
/var/www/mediawiki
/var/www/phpbb3

These all work fine.

Now I'm trying to move the default document root to /var/www/website,
and that's where the problem is coming in. I can read/display the
index.html file from http://localhost/ , but I cannot read/display
*.php from it. All I'm getting from any php files is the HTML; the php
appears to not be executing. PHP is loaded properly, or phpmyadmin,
phpmyedit, mediawiki, and phpbb3 wouldn't work, and they do.

So it's a configuration problem.

Anyone care to walk me through checking permissions and configuration
files, starting with a default document root of /var/www/website and
intending to serve out html and process PHP files from all folders
below that?

John

unread,
Apr 17, 2012, 2:01:17 AM4/17/12
to

"Charles" <cch...@gmail.com> wrote in message
news:fafacd63-5f56-49c0...@n19g2000yqk.googlegroups.com...
Hi

Did you add:

AddHandler php5-script .php

Regards
John




Charles

unread,
Apr 18, 2012, 8:12:23 PM4/18/12
to
On Apr 16, 11:01 pm, "John" <john1...@yahoo.com> wrote:
> "Charles" <ccha...@gmail.com> wrote in message
>
> news:fafacd63-5f56-49c0...@n19g2000yqk.googlegroups.com...
>
>
>
> > I'm trying to set up a web server under Debian, with Apache2, and i
> > don't understand the configuration. IThe original setup for Debian and
> > Apache2 has /var/www as the root of the web server. I've created a
> > number of folders below it for individual packages, such as:
>
> > /var/www/phpmyadmin
> > /var/www/phpmyedit
> > /var/www/mediawiki
> > /var/www/phpbb3
>
> > These all work fine.
>
> > Now I'm trying to move the default document root to /var/www/website,
> > and that's where the problem is coming in. I can read/display the
> > index.html file fromhttp://localhost/, but I cannot read/display
> > *.php from it. All I'm getting from any php files is the HTML; the php
> > appears to not be executing. PHP is loaded properly, or phpmyadmin,
> > phpmyedit, mediawiki, and phpbb3 wouldn't work, and they do.
>
> > So it's a configuration problem.
>
> > Anyone care to walk me through checking permissions and configuration
> > files, starting with a default document root of /var/www/website and
> > intending to serve out html and process PHP files from all folders
> > below that?
>
> Hi
>
> Did you add:
>
> AddHandler php5-script .php
>
> Regards
> John

Yes, I did. Thank you for making me go over my setup one more
time<g>.

It's working again, and I'll have to study it. The mislocated
resources also included a php class file and a language folder that
apparently must accompany these scripts. I need to change that, so
that the class file can be centrally located relative to the web site
and still be used by all the scripts that need it.



0 new messages