Problem bei rcapache2 start

Hilfe zu Znuny Problemen aller Art
Locked
Hanz
Znuny newbie
Posts: 7
Joined: 29 Sep 2006, 08:55

Problem bei rcapache2 start

Post by Hanz »

Hallo,

habe mir den apache2 und OTRS 2.0.4 unter Suse installiert und beim start von "rcapache2 start" kommt folgender Fehler:

Code: Select all

Starting httpd2 (prefork) Syntax error on line 10 of /etc/apache2/conf.d/otrs.conf:
Invalid command 'Perlrequire', perhaps misspelled or defined by a module not included in the server configuration

The command line was:
/usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
                                                                     failed
line 10: "Perlrequire /opt/otrs/scripts/apache2-perl-startup.pl"

httpd.conf:

Code: Select all

### Global Environment ######################################################
#

Include /etc/apache2/uid.conf
Include /etc/apache2/server-tuning.conf


ErrorLog /var/log/apache2/error_log

# generated from APACHE_MODULES in /etc/sysconfig/apache2
Include /etc/apache2/sysconfig.d/loadmodule.conf

# IP addresses / ports to listen on
Include /etc/apache2/listen.conf

# predefined logging formats
Include /etc/apache2/mod_log_config.conf

# generated from global settings in /etc/sysconfig/apache2
Include /etc/apache2/sysconfig.d/global.conf

# optional mod_status, mod_info
Include /etc/apache2/mod_status.conf
Include /etc/apache2/mod_info.conf

Include /etc/apache2/mod_usertrack.conf

# configuration of server-generated directory listings
Include /etc/apache2/mod_autoindex-defaults.conf

# associate MIME types with filename extensions
TypesConfig /etc/apache2/mime.types
DefaultType text/plain
Include /etc/apache2/mod_mime-defaults.conf

# set up (customizable) error responses
Include /etc/apache2/errors.conf

# global (server-wide) SSL configuration, that is not specific to 
# any virtual host
Include /etc/apache2/ssl-global.conf

# forbid access to the entire filesystem by default
<Directory />
    Options None
    AllowOverride None
    Order deny,allow
    Deny from all
</Directory>

# use .htaccess files for overriding,
AccessFileName .htaccess
# and never show them
<Files ~ "^\.ht">
    Order allow,deny
    Deny from all
</Files>

# List of resources to look for when the client requests a directory
DirectoryIndex index.html index.html.var

Include /etc/apache2/default-server.conf


# Another way to include your own files
#
# The file below is generated from /etc/sysconfig/apache2,
# include arbitrary files as named in APACHE_CONF_INCLUDE_FILES and
# APACHE_CONF_INCLUDE_DIRS
Include /etc/apache2/sysconfig.d/include.conf


Include /etc/apache2/vhosts.d/*.conf
Bitte um Hilfe... :?:
Andre Bauer
Znuny guru
Posts: 2189
Joined: 08 Dec 2005, 17:01
Znuny Version: 5.0.x
Real Name: André Bauer
Company: Magix Software GmbH
Location: Dresden
Contact:

Post by Andre Bauer »

Ist mod_perl aktiviert?
Prod: Ubuntu Server 16.04 / Zammad 1.2

DO NOT PM ME WITH OTRS RELATED QUESTIONS! ASK IN THE FORUMS!

OtterHub.org
Hanz
Znuny newbie
Posts: 7
Joined: 29 Sep 2006, 08:55

Post by Hanz »

hmm wie meinst das?

Also "apache2-mod_perl" ist installiert. Meinst du das?

Hab übrigens SuSE 10.1 wems interessiert.
Andre Bauer
Znuny guru
Posts: 2189
Joined: 08 Dec 2005, 17:01
Znuny Version: 5.0.x
Real Name: André Bauer
Company: Magix Software GmbH
Location: Dresden
Contact:

Post by Andre Bauer »

Ja, das meine ich.

Ist das Modul auch geladen?
Prod: Ubuntu Server 16.04 / Zammad 1.2

DO NOT PM ME WITH OTRS RELATED QUESTIONS! ASK IN THE FORUMS!

OtterHub.org
Hanz
Znuny newbie
Posts: 7
Joined: 29 Sep 2006, 08:55

Post by Hanz »

Sorry kenn mcih nicht so gut mit Linux aus.

Aber wenn ich in der Konsole "lsmod" eingebe kommt dies:

Code: Select all

nls_utf8                2048  0
joydev                  9024  0
sg                     31004  0
st                     34332  0
sd_mod                 16144  0
sr_mod                 14500  0
scsi_mod              122120  4 sg,st,sd_mod,sr_mod
xt_pkttype              1792  3
ipt_LOG                 5632  9
xt_limit                2432  9
snd_pcm_oss            42752  0
snd_mixer_oss          16512  1 snd_pcm_oss
snd_seq                47216  0
snd_seq_device          7948  1 snd_seq
af_packet              19336  2
edd                     8516  0
button                  6672  0
battery                 9476  0
ac                      4996  0
ip6t_REJECT             4992  3
xt_tcpudp               3072  5
ipt_REJECT              5120  3
xt_state                2048  12
iptable_mangle          2688  0
iptable_nat             7684  0
ip_nat                 15660  1 iptable_nat
iptable_filter          2816  1
ip6table_mangle         2304  0
ip_conntrack           47916  3 xt_state,iptable_nat,ip_nat
nfnetlink               6168  2 ip_nat,ip_conntrack
ip_tables              11080  3 iptable_mangle,iptable_nat,iptable_filter
ip6table_filter         2688  1
ip6_tables             12360  2 ip6table_mangle,ip6table_filter
x_tables               11908  10 xt_pkttype,ipt_LOG,xt_limit,ip6t_REJECT,xt_tcpudp,ipt_REJECT,xt_state,iptable_nat,ip_tables,ip6_tables
ipv6                  215808  13 ip6t_REJECT
apparmor               47004  0
aamatch_pcre           13440  1 apparmor
loop                   14728  0
dm_mod                 52584  0
shpchp                 39488  0
pci_hotplug            24372  1 shpchp
matrox_w1               3712  0
wire                   22696  1 matrox_w1
snd_intel8x0           30236  1
snd_ac97_codec         82848  1 snd_intel8x0
snd_ac97_bus            2176  1 snd_ac97_codec
snd_pcm                80136  3 snd_pcm_oss,snd_intel8x0,snd_ac97_codec
snd_timer              20868  2 snd_seq,snd_pcm
snd                    51076  10 snd_pcm_oss,snd_mixer_oss,snd_seq,snd_seq_device,snd_intel8x0,snd_ac97_codec,snd_pcm,snd_timer
soundcore               8672  1 snd
intel_agp              21020  1
snd_page_alloc          9608  2 snd_intel8x0,snd_pcm
agpgart                28976  1 intel_agp
uhci_hcd               27280  0
usbcore               109700  2 uhci_hcd
i2c_i801                8076  0
ide_cd                 35488  0
cdrom                  32416  2 sr_mod,ide_cd
i2c_core               19728  1 i2c_i801
r8169                  25864  0
parport_pc             34916  1
lp                     10948  0
parport                32200  2 parport_pc,lp
reiserfs              210944  2
fan                     4612  0
thermal                13448  0
processor              22592  1 thermal
piix                    9092  0 [permanent]
ide_disk               15104  4
ide_core              116540  3 ide_cd,piix,ide_disk
Andre Bauer
Znuny guru
Posts: 2189
Joined: 08 Dec 2005, 17:01
Znuny Version: 5.0.x
Real Name: André Bauer
Company: Magix Software GmbH
Location: Dresden
Contact:

Post by Andre Bauer »

Das Apache Modul mod_perl...
Da kommst du mit lsmod nicht ran...

Schau in der Apache Config nach, ob da Modukl aktiviert ist...
Prod: Ubuntu Server 16.04 / Zammad 1.2

DO NOT PM ME WITH OTRS RELATED QUESTIONS! ASK IN THE FORUMS!

OtterHub.org
flups
Znuny newbie
Posts: 95
Joined: 16 Mar 2006, 14:48
Location: Kelkheim
Contact:

Post by flups »

Ich kann mich erinnern, dass ich bei der Installation von OTRS auf SuSE 9.2 bzw. 9.3 mod_perl in der Apache-Konfiguration über YaST nachgetragen habe.

Das ging unter /etc/sysconfig-Editor -> Network -> WWW -> Apache 2 -> Apache_Modules und dann in bei den Modulen einfach noch "perl" eingetragen (das führende "mod_" wird wohl vom YaST automatisch gesetzt).

Vielleicht hilft das?

Flups
Ich arbeite mit OTRS 2.3.3, ITSM 1.2.2, SLES 10 Pl 2.

Alle Aussagen ohne Gewähr. Wer nicht testet, bevor er produktiv wird, ist selber schudl.
Hanz
Znuny newbie
Posts: 7
Joined: 29 Sep 2006, 08:55

Post by Hanz »

flups wrote:Ich kann mich erinnern, dass ich bei der Installation von OTRS auf SuSE 9.2 bzw. 9.3 mod_perl in der Apache-Konfiguration über YaST nachgetragen habe.

Das ging unter /etc/sysconfig-Editor -> Network -> WWW -> Apache 2 -> Apache_Modules und dann in bei den Modulen einfach noch "perl" eingetragen (das führende "mod_" wird wohl vom YaST automatisch gesetzt).

Vielleicht hilft das?

Flups
Ich weiß nicht wo ich das eintragen soll.

So siehts aus:
Image

Das steht in der einen Zeile:

Code: Select all

authz_host actions alias auth_basic authz_groupfile authn_file authz_user autoindex cgi dir include log_config mime negotiation setenvif status userdir asis imagemap php5 authz_default

@monotek:

Das steht in der loadmodule.conf:

Code: Select all

LoadModule authz_host_module              /usr/lib/apache2-prefork/mod_authz_host.so
LoadModule actions_module                 /usr/lib/apache2-prefork/mod_actions.so
LoadModule alias_module                   /usr/lib/apache2-prefork/mod_alias.so
LoadModule auth_basic_module              /usr/lib/apache2-prefork/mod_auth_basic.so
LoadModule authz_groupfile_module         /usr/lib/apache2-prefork/mod_authz_groupfile.so
LoadModule authn_file_module              /usr/lib/apache2-prefork/mod_authn_file.so
LoadModule authz_user_module              /usr/lib/apache2-prefork/mod_authz_user.so
LoadModule autoindex_module               /usr/lib/apache2-prefork/mod_autoindex.so
LoadModule cgi_module                     /usr/lib/apache2-prefork/mod_cgi.so
LoadModule dir_module                     /usr/lib/apache2-prefork/mod_dir.so
LoadModule include_module                 /usr/lib/apache2-prefork/mod_include.so
LoadModule log_config_module              /usr/lib/apache2-prefork/mod_log_config.so
LoadModule mime_module                    /usr/lib/apache2-prefork/mod_mime.so
LoadModule negotiation_module             /usr/lib/apache2-prefork/mod_negotiation.so
LoadModule setenvif_module                /usr/lib/apache2-prefork/mod_setenvif.so
LoadModule status_module                  /usr/lib/apache2-prefork/mod_status.so
LoadModule userdir_module                 /usr/lib/apache2-prefork/mod_userdir.so
LoadModule asis_module                    /usr/lib/apache2-prefork/mod_asis.so
LoadModule imagemap_module                /usr/lib/apache2-prefork/mod_imagemap.so
LoadModule php5_module                    /usr/lib/apache2/mod_php5.so
LoadModule authz_default_module           /usr/lib/apache2-prefork/mod_authz_default.so
...steht nicht wirklich was von mod_perl. Wenn ich das da eintragen möchte was soll ich für ein Pfad eingeben?


EDIT: habe die loadmodule.conf um diesen Eintrag erweitert:

Code: Select all

LoadModule perl                           /usr/lib/apache2/mod_perl.so
wenn ich dann rcapache2 start oder stop mache entfernt sich die Zeile von alleine. Der Fehler bleibt nach wie vor. "Perlrequire" etc.
Hanz
Znuny newbie
Posts: 7
Joined: 29 Sep 2006, 08:55

Post by Hanz »

SELBST GELÖST! :D

Yast2 -> Netzwerkdienste -> HTTP-Server -> Module -> perl = aktiviet

...udn es klappt!
Hanz
Znuny newbie
Posts: 7
Joined: 29 Sep 2006, 08:55

Post by Hanz »

Nächstes Problem:

Wenn ich in der Konsole "rsapache2 start" eingebe kommt das:

Code: Select all

[Mon Oct 02 11:10:13 2006] [warn] Useless use of AllowOverride in line 19.
Syntax OK
Starting httpd2 (prefork) [Mon Oct 02 11:10:13 2006] [warn] Useless use of AllowOverride in line 19.
                                                                      done
und wenn ich danach "rcapache2 restart" eingebe steht da wo jetzt "done" steht "failed"

Was mach ich falsch?
ghuerkam
Znuny newbie
Posts: 30
Joined: 25 Jun 2006, 08:26

Post by ghuerkam »

Hanz wrote: Das steht in der einen Zeile:

Code: Select all

authz_host actions alias auth_basic authz_groupfile authn_file authz_user autoindex cgi dir include log_config mime negotiation setenvif status userdir asis imagemap php5 authz_default
Jetzt hier noch mod_perl eintragen!
Hanz
Znuny newbie
Posts: 7
Joined: 29 Sep 2006, 08:55

Post by Hanz »

mod_perl habe ich auch schon in die loadmodule.conf eingetragen habs abaer auch so wie du es gesagt hattest ausprobiert und es kommt immer noch der Fehler mit "AllowOverride in line 19"

noch einer der viell. einen rat für mich hat.

Irgend wie liegts an der default-server.conf:

Code: Select all

<Directory "/srv/www/htdocs">
    	# Possible values for the Options directive are "None", "All",
	# or any combination of%u3a
	#   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
	#
	# Note that "MultiViews" must be named *explicitly* --- "Options All"
	# doesn't give it to you.
	#
	# The Options directive is both complicated and important.  Please see
	# http%u3a//httpd.apache.org/docs-2.2/mod/core.html#options
	# for more information.
Options None
    	# AllowOverride controls what directives may be placed in .htaccess files.
	# It can be "All", "None", or any combination of the keywords%u3a
	#   Options FileInfo AuthConfig Limit
AllowOverride None                                                          <============line 19
    	# Controls who can get stuff from this server.
Order allow,deny
 Allow from all
</Directory>
newcomer
Znuny newbie
Posts: 2
Joined: 10 Dec 2006, 18:02

Post by newcomer »

Hanz wrote:SELBST GELÖST! :D

Yast2 -> Netzwerkdienste -> HTTP-Server -> Module -> perl = aktiviet

...udn es klappt!
Hallo,

habe das gleiche Problem:

vserv:~/otrs # rsapache2 start
-bash: rsapache2: command not found

Leider finde ich unter Yast2 bei OpenSuse 10 den Menü Punkt nicht.
Bekomme ich den Fehler noch anderweitig gefixt ?
Locked