MandrivaThis Forum is for the discussion of Mandriva (Mandrake) Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: Xandros, Mandrake, FreeBSD, i like to tinker.
Posts: 33
Rep:
Default Apache Directory
i have mandrake 9.2 and apache, and i want to remote admin it via webmin, but webmin needs to know the apache dir and the location of the apache httpd executable.
what is the default apache directory for mandrake 9.2? i installed it with the rpms that came with mandrake.
and where can i find the httpd executable? it is not the script in /etc/rc.d/init.d/ that it wants but an executable.
I don't have Mandrake so I can't help you explicitly, but if you go to the script in /etc/rc.d/init.d/ it will tell you the location of the apache binary.
It will be something like /usr/sbin/apachectl or /usr/sbin/httpd or something like that. You'll just have to look.
Distribution: Xandros, Mandrake, FreeBSD, i like to tinker.
Posts: 33
Original Poster
Rep:
well, i looked there and it points to a .pid file, but thats not what i am looking for. i need the path to the httpd executable file. there is a httpd2 executable in /usr/sbin/ but i still cant find the "apache server root directory" or the "path to the httpd executable.
Last edited by emperorjordan; 02-25-2004 at 03:29 PM.
Distribution: Xandros, Mandrake, FreeBSD, i like to tinker.
Posts: 33
Original Poster
Rep:
Never mind, I found the answer. To configure the Webmin module for Mandrake's default installation of Apache2 (it was expecting Apache 1.x,) change the following:
Apache server root directory: /etc/httpd/2.0
Path to httpd executable: /usr/sbin/httpd2
Path to httpd.conf: /etc/httpd/2.0/conf/httpd2.conf
If you look carefully at those the only one needed is path to the executable. The rest are sym links . So to get webmin running just change the path to the executable from /usr/bin/httpd to /usr/bin/httpd2 That's all you need.
Distribution: Xandros, Mandrake, FreeBSD, i like to tinker.
Posts: 33
Original Poster
Rep:
actually, now i found out that apache 2 will not work with php and mySQL apps like phpnuke, so i reformatted and did a clean mandrake install with apache 1.3 and now everything is working fine. (and with 1.3, webmin already knows the dir for the exe)
When you say not work, what are you refering to. Does apache fail to start or is i a sql error or a php error???? Did you check the log files to see whats going on?? Give me some more detail and I'll bet we can solve it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.