Hi, 1. I learnt in a php book that; in httpd.conf; this line should exist to enable dso for apache: LoadModule php4_modulelibexec/libphp4.so But it doesn't. Should i add it to enable dso? 2. httpd.conf: # Note: this email address is set by SuSEconfig according to the setting of the # HTTPD_SEC_SERVERADMIN variable in /etc/sysconfig/apache! ServerAdmin webmaster@linux.local /etc/sysconfig/apache: # If empty ("") it defaults to root@$FQHOSTNAME. FQHOSTNAME is set in # /etc/sysconfig/network/config. HTTPD_SEC_SERVERADMIN="" And in /etc/sysconfig/network/config; there's no FQHOSTNAME statement. So, which file should i modify? 3. In /var/spool/mail; there's only one spool, and that's root. How can i create another spool for webmaster@linux.local? Thanks..
On Wed, 2003-05-07 at 22:28, oguzeren wrote:
Hi,
1. I learnt in a php book that; in httpd.conf; this line should exist to enable dso for apache: LoadModule php4_modulelibexec/libphp4.so But it doesn't. Should i add it to enable dso?
You'll probally find there are some include lines in thier httpd.conf, and that will exsist in htere if needed.
2. httpd.conf:
# Note: this email address is set by SuSEconfig according to the setting of the # HTTPD_SEC_SERVERADMIN variable in /etc/sysconfig/apache! ServerAdmin webmaster@linux.local
If the box is for local usage only (i.e testing and breaking :)), then you can generally ignore 99% of the options, unless the box is exposed to the great World Wide Wait, as apache will run fine out of the box, but this will really depend upon what you require.
/etc/sysconfig/apache:
# If empty ("") it defaults to root@$FQHOSTNAME. FQHOSTNAME is set in # /etc/sysconfig/network/config. HTTPD_SEC_SERVERADMIN=""
And in /etc/sysconfig/network/config; there's no FQHOSTNAME statement. So, which file should i modify?
/etc/HOSTNAME
3. In /var/spool/mail; there's only one spool, and that's root. How can i create another spool for webmaster@linux.local?
Create a new account, but you will find that, webmaster, postmaster will all go to the root account or another account that is a real user (if setup in /etc/aliases), thus that user will then get that mail, i,e # Person who should get all of root's mail root: support Thus all mail destined for root, will go to the support account (this support account is a real account) just remember to run: newaliases after :) I wouldn't bother, unless you want to learn about apache. Hope that helps Mark
* oguzeren; <oguze@turk.net> on 08 May, 2003 wrote:
Hi,
1. I learnt in a php book that; in httpd.conf; this line should exist to enable dso for apache: LoadModule php4_modulelibexec/libphp4.so But it doesn't. Should i add it to enable dso?
The way SuSE uses the httpd.conf is different compared to the book you are reading. SuSE does not create a httpd.conf full of modules or lack of modules. The needed modules are loaded via suse_loadmodule.conf (/etc/httpd/suse_loadmodule.conf) which is created, and updated by the mod_XYZ rpms you install. If you look to the /etc/httpd/httpd.conf you will see a line like below which has the modules necessary for the mod_XYZ Include /etc/httpd/suse_loadmodule.conf generally if you want to modify httpd.conf it is recommended that you create a seperate configuration file for your need and have it loaded so whatever you define in that config is applied for example to have the server-status to be allowed from one local network IP create a config admin_stat.conf <IfDefine STATUS> <Location /server-status> SetHandler server-status Order deny,allow Deny from all Allow from 192.168.1.3 localhost </Location> </IfDefine and then add the file name and location to /etc/sysconfig/apache HTTPD_CONF_INCLUDE_FILES="/etc/httpd/admin_stat.conf" when SuSEconfig --module apache is run the new module (the one you just defined will also be parsed and will be applied. This way you do not modify the /etc/httpd.conf yet since it is modular you can basically change the whole thing with the HTTPD_CONF_INCLUDE_FILES parameter.
2. httpd.conf:
# Note: this email address is set by SuSEconfig according to the setting of the # HTTPD_SEC_SERVERADMIN variable in /etc/sysconfig/apache! ServerAdmin webmaster@linux.local
/etc/sysconfig/apache:
# If empty ("") it defaults to root@$FQHOSTNAME. FQHOSTNAME is set in # /etc/sysconfig/network/config. HTTPD_SEC_SERVERADMIN=""
you need to put the full e-mail address here ie serveradmin@mysite.com otherwise if you look at /sbin/conf.d/SuSEconfig.apache you will see that it is created by the following # set the server admin's email address # : ${HTTPD_SEC_SERVERADMIN:=webmaster@$FQHOSTNAME}
And in /etc/sysconfig/network/config; there's no FQHOSTNAME statement. So, which file should i modify?
well basically none as you have already defined /etc/HOSTNAME during install or later on via YaST2 and again /sbin/conf.d/SuSEconfig.apache states as follows if [ -z "$FQHOSTNAME" ] ; then FQHOSTNAME=`cat /etc/HOSTNAME` fi
3. In /var/spool/mail; there's only one spool, and that's root. How can i create another spool for webmaster@linux.local?
by creating an account for webmaster -- Togan Muftuoglu Unofficial SuSE FAQ Maintainer http://dinamizm.ath.cx
participants (3)
-
MaC
-
oguzeren
-
Togan Muftuoglu