LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Mandriva (https://www.linuxquestions.org/questions/mandriva-30/)
-   -   Default Apache Directory (https://www.linuxquestions.org/questions/mandriva-30/default-apache-directory-150417/)

emperorjordan 02-25-2004 02:04 PM

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. :confused:
:cry:

benjithegreat98 02-25-2004 02:15 PM

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.

emperorjordan 02-25-2004 02:34 PM

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.:cry:

emperorjordan 02-25-2004 05:37 PM

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

:D

PDR60 02-25-2004 09:42 PM

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.

emperorjordan 02-26-2004 01:19 PM

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)

PDR60 02-26-2004 01:51 PM

Not true. I have several Lamp installs running phpnuke that are fine on 9.2.

emperorjordan 02-26-2004 03:29 PM

hmmmm.........then what was causing apache 2 not to work with nuke on my machine?:scratch:

PDR60 02-26-2004 11:07 PM

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.


All times are GMT -5. The time now is 02:44 AM.