photoworks Posted October 26, 2006 Report Share Posted October 26, 2006 (edited) I have recently installe Mandrive 2007 community with server and networking options ticked at installation. However, when i go to webmin to activate apache which is installed (version 1 and 2 as it is) it says that apache is not configured or not installed. strange occurence, when i type localhost in browser address bar, there is the "it Works" page which is displayed. i tried to go on command line and type urpmi apache but then it tells me that apache is installled correctly. when i try to start apache from command line, it tells me something like host name not rignt or not found ( i have to try it again tonight to get the exact mesage). what i am trying to run is server apache with phpmy admin so that i can run phbbb board website on it. I am aware that need not only apache and phpmyadmin installed on my machine but as well some php modules and mysql modules. However, the exact list of packages to install for that purpose, somehow eludes me. which version of apache do i have to install and which other packages do i have to install ? help please. Edited October 26, 2006 by photoworks Quote Link to comment Share on other sites More sharing options...
ianw1974 Posted October 26, 2006 Report Share Posted October 26, 2006 If it's installed, and is complaining about hostname, then make sure this is set in /etc/sysconfig/network, and also in /etc/hosts. [ian@europa ~]$ cat /etc/sysconfig/network NETWORKING=yes HOSTNAME=europa.asseco.pl [ian@europa ~]$ cat /etc/hosts 127.0.0.1 europa.buziaks.com europa localhost.localdomain localhost Then you should be fine, if this is the error. Also, check it's installed with: rpm -qa | grep apache or: rpm -qa | grep httpd it can vary from one distro to another, whether it's apache or httpd. I normally use the wizard to install it. urpmi drakwizard and then go into mcc, and configure using the wizard, is nice and easy. Quote Link to comment Share on other sites More sharing options...
photoworks Posted October 26, 2006 Author Report Share Posted October 26, 2006 thanks, i will try that tonight. :D Quote Link to comment Share on other sites More sharing options...
Gowator Posted October 26, 2006 Report Share Posted October 26, 2006 The webmin for apache is configured for apache not apache2 but its fairly easy to configure by changing the directory names and config files....in the configure module part for apache. The most important part is the /etc/apache2/ directory since otherwise its looking in /etc/apache or /etc/http etc. once you get the basics working you can set the log files etc. Look into Webalizer or similar to make reports based on your log files (once its all working) Quote Link to comment Share on other sites More sharing options...
photoworks Posted October 27, 2006 Author Report Share Posted October 27, 2006 i comfigured apached following the using the drakwizard. however when i go to webmin it still tells me that apache is not configured or not installed. Do i still have to configure it in webmin, ie in the configure module ? Quote Link to comment Share on other sites More sharing options...
ianw1974 Posted October 27, 2006 Report Share Posted October 27, 2006 How did you install webmin? From urpmi sources, or directly from their website? As gowator says, it might be looking for apache 1.x rather than apache 2, and which is why it's failing to see it. Quote Link to comment Share on other sites More sharing options...
photoworks Posted October 27, 2006 Author Report Share Posted October 27, 2006 How did you install webmin? From urpmi sources, or directly from their website? As gowator says, it might be looking for apache 1.x rather than apache 2, and which is why it's failing to see it. i installed every thing from urpmi sources. Quote Link to comment Share on other sites More sharing options...
ianw1974 Posted October 27, 2006 Report Share Posted October 27, 2006 Hmmm, something within webmin then that hasn't been matched correctly. There's prob a config file somewhere, but I'm unsure where, perhaps /etc/webmin.conf maybe. Quote Link to comment Share on other sites More sharing options...
Gowator Posted October 27, 2006 Report Share Posted October 27, 2006 You just need to configure the module To do this you need the information like ServerRoot, DocumentRoot and the position of apache2.conf etc. + apache2ctl All of this should be in the apache2.conf file ... just open with a text editor and use search the you can copy/paste into the webmin configure modules for apache. Here is what works as a minimum for me in a debian installed apache2 (everything else is defaults) 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 NOTE THIS IS NOT MANDRIVA .. you need to locate those files or equivalents since the path might be different .... once you have this set you can configure the rest using webmin. Quote Link to comment Share on other sites More sharing options...
photoworks Posted October 27, 2006 Author Report Share Posted October 27, 2006 All the file i can see are refering to apache 1, is that normal, there are no mention of apache 2. i found the httpd.conf but when i put it in the path to httpd executable, it tells me : The Apache server executable /etc/httpd/conf/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. is that normal ? somehow i cannot find any apache2 in my rpm installed. how can i figure out which version of apache is running on my machine ? Quote Link to comment Share on other sites More sharing options...
ianw1974 Posted October 29, 2006 Report Share Posted October 29, 2006 I gave you the command before to find out the version :P Read the above posts, in particular, post 2. All the info is there. Quote Link to comment Share on other sites More sharing options...
Gowator Posted October 30, 2006 Report Share Posted October 30, 2006 All the file i can see are refering to apache 1, is that normal, there are no mention of apache 2. The webmin for apache is configured for apache not apache2 If that is not clear The default configuration for the webmin module for apache is configured for apache2 not apache i found the httpd.conf but when i put it in the path to httpd executable, it tells me : Well the .conf file is the configuration file. As I said: Path to httpd executable=/usr/sbin/apache2 (or similar) is that normal ?Yes ... somehow i cannot find any apache2 in my rpm installed. how can i figure out which version of apache is running on my machine ? As ianw says... Quote Link to comment Share on other sites More sharing options...
photoworks Posted October 30, 2006 Author Report Share Posted October 30, 2006 Strange, even though for webmin, apache module is not configured or not installed. through the mcc iu was able to configure apache and it works. Don't know why it is not acknowledge in webmin. i tried the differents paths suggested but webmin still says that apache needs to be configured. However since my server is up and running so i don't know if i should be worried that webmin states it is not "installed" or configured" ? Quote Link to comment Share on other sites More sharing options...
Gowator Posted October 30, 2006 Report Share Posted October 30, 2006 This obviously isn't going anywhere in English. What is your preferred language? Quote Link to comment Share on other sites More sharing options...
photoworks Posted October 30, 2006 Author 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.