Jump to content

Server Configuration [solved]


photoworks
 Share

Recommended Posts

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.

 

:wall:

Edited by photoworks
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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)

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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 ?

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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" ?

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...