Apache and ubuntu
andy baxter
andy at earthsong.free-online.co.uk
Mon Jan 14 23:24:16 UTC 2008
Mike Dugger wrote:
> Hello,
>
> My system consists of ubuntu 7.10, Apache 2.2.4 and PHP 5.2.1
>
> I have installed Apache, PHP and MySql for my education/entertainment in
> learning a bit about web design. The setup was working fine until I
> upgraded from 7.04 to 7.10. Now php functions within html will not run,
> while .php scripts run fine.
>
> It appears that Apache, as implemented in ubuntu, is set up differently
> than the indicated by the book (Apache, MySQL and PHP Weekend Crash
> Course) that I purchased to aid my education. In poking around I've noted
> a few differences. Significantly, in usr/apache2 I found two configuration
> files apache2.conf and the trusty httpd.conf. Can anyone tell me which is
> used, or why there are two confs and how do they differ?
>
> Secondly, my book refers to the apachectrl script for starting and
> restarting apache. It appears that ubuntu doesn't include this script in
> its apache install. What other convenient means exist for restarting apache
> to check changes in the configuration?
>
> Thanks in advance for any enlightenment.
>
> - Mike
>
>
>
As far as I know, the different conf files in /etc/apache2 are different
only by custom and for the sake of organisation - you can in fact put
any directive in any of the files if you like. I've had a quick look
through the ubuntu setup, and it looks like the apache2.conf file is the
master conf file, which then uses 'Include' directives to include other
conf files for various purposes. E.g. you are supposed to configure
virtual-server sites by putting a conf file in sites-available and then
symlinking to it from sites-enabled. This is meant for people running
many sites from one server though. httpd.conf is meant for user changes
to the default config file.
More information about the ubuntu-users
mailing list