Apache and ubuntu

Schiz0 schiz0phrenic21 at gmail.com
Mon Jan 14 22:43:06 UTC 2008


On Jan 14, 2008 5:33 PM, Mike Dugger <manifold at golfront.org> 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
>
>

If the php tags embedded into HTML aren't proper (Like "<?php" and
"?>"), they you should enable the "short_open_tag" option in your
php.ini file.

As for starting/stopping apache, use the script "/etc/init.d/apache2"




More information about the ubuntu-users mailing list