Nick Rout wrote:
Rohit Grover wrote:
Thanks to all,

I built php from source and dropped the config lines in httpd.conf
(from Steve's email) and it all works. I wonder why the APT packages
didn't work for me.

regards,
Rohit.


Quite likely because, as I said, you weren't starting apache properly.

That was the first problem. The second was that you didn't have a config file.

> failed and complained about a missing /etc/apache2/httpd.conf file.
> Why didn't the apache2 installation come with a default? Resuing an
> older apache1.3 config file didn't do the trick. There was a syntax
> error reported by apache2 with it.

A tiny amount of googling/research would have told you that the config file changed drastically when version 2 was released. I suspect that this is one of the most significant reasons that version 2 hasn't been universally adopted.

The apache website has some useful information about *cough* apache. 
http://httpd.apache.org/docs/2.0/upgrading.html, upgrading from 1.3 to 2.0 is 
not straightforward due to the substantial rework.

Then came time to enable support for PHP. Now which package should I
install for php? There seem to be plenty to choose from. Will
installing PHP using APT have trouble dealing with the installation of
apache2 which was done from source?

OK, Ubuntu I believe is a Debian based system so try or libapache2-mod-php5 
then use a2enmod to enable it.

From "man a2enmod"

      a2enmod, a2dismod - enable or disable an apache2 module

a2enmod is a script that enables the specified module within the apache2 configuration. It does this by creating symlinks within /etc/apache2/mods-enabled. Likewise, a2dismod disables a module by removing those symlinks. It is not an error to enable a module which
      is already enabled, or to disable one which is already disabled.

Just FYI, from "man man":

      man - an interface to the on-line reference manuals

I don't know why I'm telling you this since you've hosed your package management by installing from source. Maybe you should have tried doing a linux from scratch install instead. Yes, I know I'm being a drama queen!

Cheers,
Michael.

Reply via email to