Gowator Posted October 30, 2006 Report Share Posted October 30, 2006 Well the .conf file is the configuration file.As I said: Path to httpd executable=/usr/sbin/apache2 (or similar) i cannot find that folder. local@Kanotix32:~$ which apache local@Kanotix32:~$ which apache2 /usr/sbin/apache2 hence apache2 is installed and the exectutable is /usr/sbin/apache2 (on Debian) Mandriva may well call it something else, that is the executable might be something else You can also try local@Kanotix32:~$ which apache2ctl /usr/sbin/apache2ctl local@Kanotix32:~$ which apachectl local@Kanotix32:~$ So as you see apache2ctl is installed but not apachectl... config wise there is really not much difference in apache and apache2 hence webmin handles them both as apache BUT all its defaults are set for apache NOT apache2 You can also go to the package manager and see files ... it will show where all the files were installed If you open webmin at the same time you can cut and paste. Link to comment Share on other sites More sharing options...
photoworks Posted October 30, 2006 Author Report Share Posted October 30, 2006 in the package manager, it says that the conf files for apache are located there : /etc/httpd/conf. howeverm when i enter that value in webmin apache nodule configuration , it tells me : The Apache server executable /etc/httpd/conf/ does not exist. If you have Apache installed, adjust the module configuration to use the correct path. The Apache Webserver package can be automatically installed by Webmin. Click here to have it downloaded and installed using URPMI. i am at a loss Link to comment Share on other sites More sharing options...
ianw1974 Posted October 31, 2006 Report Share Posted October 31, 2006 Are you sure? I have a funny feeling it's /etc/apache2, but I've not got it installed to check right now. Go to /etc and manually look and find it than trust what webmin is saying, as it's probably looking for apache 1.x until you tell it where the files are. Link to comment Share on other sites More sharing options...
photoworks Posted October 31, 2006 Author Report Share Posted October 31, 2006 Are you sure? I have a funny feeling it's /etc/apache2, but I've not got it installed to check right now. Go to /etc and manually look and find it than trust what webmin is saying, as it's probably looking for apache 1.x until you tell it where the files are. i did a manual search in etc, but i cannot find any apache2 directory. Link to comment Share on other sites More sharing options...
Gowator Posted October 31, 2006 Report Share Posted October 31, 2006 If you have a /etc/httpd then put that as the conf location BUT THAT IS NOT THE SAME AS EXECUTABLE PATH FOR INSTANCE (and don't blindly copy this its for a different distro and mandriva fsck's about with a lof of applications) Direct from my webmin Apache server root directory = /etc/apache2 Path to httpd executable = /usr/sbin/apache2 Command to start apache = /etc/init.d/apache2 start Command to stop apache = /etc/init.d/apache2 stop Path to httpd.conf or apache2.conf = /etc/apache2/httpd.conf BUT YOU MUST CHECK THESE FILES EXIST.... You still have not answered any of the questions ianw or I have asked.... Just type which apache2ctl and which apachectl and POST THE RESULTS I don't know if ianw's patience is running out but mine is... UNTIL YOU DO THIS IM NOT WASTING ANY MORE TIME ON IT. We are not psychic.... If you don't understand ASK... Then if apache2ctl EXISTS you can stick for instance Command to start apache = /usr/sbin/apache2ctl start or IF /etc/init.d/apache EXISTS You can put Command to start apache = /etc/init.d/apache start BUT YOU MUST CHECK THESE FILES EXIST AND PREFERABLY WORK.... EG if apache2ctl exists then type apache2ctl # apache2ctlUsage: /usr/sbin/apache2 [-D name] [-d directory] [-f file] [-C "directive"] [-c "directive"] [-k start|restart|graceful|stop] [-v] [-V] [-h] [-l] [-L] [-t] [-S] Options: -D name : define a name for use in <IfDefine name> directives -d directory : specify an alternate initial ServerRoot -f file : specify an alternate ServerConfigFile -C "directive" : process directive before reading config files -c "directive" : process directive after reading config files -e level : show startup errors of level (see LogLevel) -E file : log startup errors to file -v : show version number -V : show compile settings -h : list available command line options (this page) -l : list compiled in modules -L : list available configuration directives -t -D DUMP_VHOSTS : show parsed settings (currently only vhost settings) -S : a synonym for -t -D DUMP_VHOSTS -t : run syntax check for config files This is what happens when I type it.... So if as a non privelidged user I type what it tells me apache2ctl start $ apache2ctl start(13)Permission denied: make_sock: could not bind to address 0.0.0.0:80 no listening sockets available, shutting down Unable to open logs Don't panick.... THIS IS NORMAL because I set it up so only a single non priv user can start it.... but this is OK because the scripts in webmin take care of this once its set-up BUT I now know the correct name to put in the config box. This is exactly what I did to configure mine.... after the intial .. Why isn't it working I tried finding the paths. Link to comment Share on other sites More sharing options...
photoworks Posted October 31, 2006 Author Report Share Posted October 31, 2006 here are the results : [photoworks@localhost ~]$ which apache2ctl which: no apache2ctl in (/usr/bin:/bin:/usr/local/bin:/usr/X11R6/bin/:/usr/games:/usr/lib/qt3//bin:/home/photoworks/bin:/usr/lib/qt3//bin) and [photoworks@localhost ~]$ which apachectl which: no apachectl in (/usr/bin:/bin:/usr/local/bin:/usr/X11R6/bin/:/usr/games:/usr/lib/qt3//bin:/home/photoworks/bin:/usr/lib/qt3//bin) Link to comment Share on other sites More sharing options...
Mhn Posted October 31, 2006 Report Share Posted October 31, 2006 (edited) On my Mandriva 2006 server with Apache version 2.0.54 the webmin module for apache is configured: Apache server root directory: /etc/httpd Path to httpd executable: /usr/sbin/httpd Command to start apache: /etc/rc.d/init.d/httpd start Command to stop apache: /etc/rc.d/init.d/httpd stop Path to httpd.conf: Automatic Edited October 31, 2006 by Mhn Link to comment Share on other sites More sharing options...
photoworks Posted October 31, 2006 Author Report Share Posted October 31, 2006 On my Mandriva 2006 server with Apache version 2.0.54 the webmin module for apache is configured: Apache server root directory: /etc/httpd Path to httpd executable: /usr/sbin/httpd Command to start apache: /etc/rc.d/init.d/httpd start Command to stop apache: /etc/rc.d/init.d/httpd stop Path to httpd.conf: Automatic at last, i got it, it works thanks. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now