Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Mandrake apache problem - duplicate httpd.conf

Status
Not open for further replies.

rantnrave

Programmer
Jul 21, 2002
11
0
0
GB
This is an update to an earlier situation, but I'll give the context.

I have Mandrake 8.0, and I have installed apache 1.3.27 and PHP 4.2.3.

My problem is that I have duplicate httpd.conf files and the wrong one (at
Code:
/usr/etc/httpd/conf/
) is being accessed . Similarly, the browser (Konqueror (sp?)) is not looking at
Code:
/usr/local/apache/htdocs
for my html and php files, but at a different directory:
Code:
/usr/home/httpd/html/
. The 'right' httpd.conf file contains the correct path for files.

I have only one installation of apache (although Software Manager tells me that none is installed - should that worry me, or is it just because I didn't use RPM to install it?) and I did that after installing Mandrake. When I did the latter I didn't install apache as I knew I could get a later version. When I point my browser at localhost I get the welcome page for Advanced Extranet, not the normal apache page. This page is in the 'wrong' html directory, as I've mentioned. I've not been able to find any files for Extranet, or advx, on the machine, other than the welcome page. I'm not sure whether in my case it was bundled with apache and somehow didn't install properly, or whether it came with Mandrake or KDE. I can find very little information about it, other than that it might not be PHP4 compatible. In any case, I didn't ask for it and I don't really want it - I'm quite happy to make do with 'normal' apache!

My PHP installation went okay, eventually, and I checked httpd.conf in
Code:
/usr/local/apache/conf
for the AddType and all that stuff. The right bits were there and I added the bits that needed to be added. So the PHP installation had assumed that that httpd.conf was the one to use, not the 'rogue' one elsewhere.

So: I could just get on with it and use the httpd.conf and the html directory that the system wants me to use, but that doesn't seem correct and I would like to use what would seem to be the proper set-up. How can I do this?
 
How exactly did you configure Apache? Did you run the configure script twice? //Daniel
 
In a sense, yes. I mean I had installed Apache and couldn't then get PHP to configure (it couldn't deal with the apxs script). So I started again, by re-configuring Apache.
But surely cofiguring, making and installing it again would overwrite any existing installation? And in any case, the extra HTML directory and httpd.conf file have ended up in what, even to me - a bemused newbie -, seem rather odd places. Perhaps not - I don't know.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top