A list of problems I'm facing: 1. I discovered 'apt-get --reinstall' from the APT howto and tried reinstalling apache2. However, starting httpd with apache2ctl gave me the following
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80 no listening sockets available, shutting down Unable to open logs 'netstat -lt' doesn't show anybody listening on port 80 What's going on here? 2. in the mean time, my source-compiled installation of apache2 works fine. Why? 3. What is the command which can show a listing of the files installed by a package? I've hunted for this, but failed. 4. I have libapache2_mod_php5 installed (using APT). PHP pages still get returned (from the source-compiled apache2) as cleartext without getting interpreted. The httpd.conf file for the source-compiled apache2 doesn't contain any directive which seems relevant to php. What am I missing? thanks, Rohit. On 5/20/07, Steve Holdoway <[EMAIL PROTECTED]> wrote:
libapache2-mod-php5 Do an apt-cache search libapache2 for a list of all the precompiled modules for apache. Alternatively, you can build from scratch - not that I recommend it. Steve On Sun, 20 May 2007 15:03:51 +1200 Rohit Grover <[EMAIL PROTECTED]> wrote: > Hi All, > > I have recently installed Ubuntu 7.04 (desktop) on a machine and am > trying to set it up as a webserver. I need to enable PHP support for > apache (currently my apache simply returns the code for html-php > without interpreting them). I am new to APT and can't figure out which > packages I need to install. I wanted to start with apache2 so I did: > > % apt-get install apache2 > > The execution of the above command completed without an error, but the > system didn't have the apache2 server running automagically. > Executing: > > % /usr/sbin/apache2ctl start > > 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. > > I gave up and installed apache2 from source and that seemed to work > fine. I have a HTTP server going now. > > 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? > > I'm tired today, being down with flu, so my usual troubleshooting > energies are low. Can someone hand-hold me through this process? > > thanks in advance, > Rohit.
