otrs in plesk einbauen httpd.conf file ?!?!?!?

Hilfe zu OTRS Problemen aller Art
Post Reply
bci-digix
Znuny newbie
Posts: 4
Joined: 20 Dec 2006, 13:42

otrs in plesk einbauen httpd.conf file ?!?!?!?

Post by bci-digix »

Hallo,

ich versuche verzweifelt otrs in einen domain in plesk ein zu bauen. leider bis jetzt ohne erfolg.

meine conf für die domain sieht so aus:

Code: Select all

# ATTENTION!
# DO NOT MODIFY THIS FILE OR ANY PART OF IT. THIS CAN RESULT IN IMPROPER PLESK
# FUNCTIONING OR FAILURE, CAUSE DAMAGE AND LOSS OF DATA. IF YOU REQUIRE CUSTOM
# MODIFICATIONS TO BE APPLIED TO THE CONFIGURATION, PLEASE, PERFORM THEM IN THE
# FOLLOWING FILE(S):
# /var/www/vhosts/domain.at/conf/vhost.conf
# /var/www/vhosts/domain.at/conf/vhost_ssl.conf
# /var/www/vhosts/domain.at/subdomains/<subdomain-name>/conf/vhost.conf

<IfModule mod_ssl.c>

<VirtualHost 00.00.00.00:443>
	ServerName   domain.at:443
		SuexecUserGroup         domain-at psacln
	ServerAdmin  shop@domain.at
	DocumentRoot /var/www/vhosts/domain.at/httpdocs
	CustomLog  /var/www/vhosts/domain.at/statistics/logs/access_ssl_log plesklog
	ErrorLog     /var/www/vhosts/domain.at/statistics/logs/error_ssl_log
<IfModule mod_userdir.c>
	UserDir /var/www/vhosts/domain.at/web_users
</IfModule>
	#ScriptAlias  /cgi-bin/ /var/www/vhosts/domain.at/httpdocs/otrs/bin/cgi-bin/
	Alias  /plesk-stat /var/www/vhosts/domain.at/statistics/
	Alias  /webstat /var/www/vhosts/domain.at/statistics/webstat
	Alias  /webstat-ssl /var/www/vhosts/domain.at/statistics/webstat-ssl
	Alias  /ftpstat /var/www/vhosts/domain.at/statistics/ftpstat
	Alias  /anon_ftpstat /var/www/vhosts/domain.at/statistics/anon_ftpstat
	Alias  /otrs-web /var/www/vhosts/domain.at/httpdocs/otrs/var/httpd/htdocs/
	ScriptAlias  /otrs /var/www/vhosts/domain.at/httpdocs/otrs/bin/cgi-bin/	
	SSLEngine on
	SSLVerifyClient none
	SSLCertificateFile /opt/psa/var/certificates/cert-qZf6kW
	<Directory /var/www/vhosts/domain.at/httpdocs>
	<IfModule mod_perl.c>
	<Files ~ (\.pl$)>
		SetHandler perl-script
		PerlHandler ModPerl::Registry
		Options ExecCGI
		PerlSendHeader On
		PerlSetupEnv On
		allow from all
		PerlSendHeader On
	</Files>
	</IfModule>
	<IfModule mod_perl.c>
	<Files ~ (\.asp$)>
		SetHandler perl-script
		PerlHandler Apache::ASP
		PerlSetVar Global /tmp
	</Files>
	</IfModule>
	<IfModule mod_php4.c>
		php_admin_flag engine on
		php_admin_value open_basedir "/var/www/vhosts/domain.at/httpdocs:/tmp"
	</IfModule>
	<IfModule mod_php5.c>
		php_admin_flag engine on
		php_admin_value open_basedir "/var/www/vhosts/domain.at/httpdocs:/tmp"
	</IfModule>
	<IfModule mod_python.c>
	<Files ~ (\.py$)>
		SetHandler python-program
		PythonHandler	mod_python.cgihandler
	</Files>
	</IfModule>
		SSLRequireSSL
		Options +Includes +ExecCGI
	</Directory>
	<Directory /var/www/vhosts/domain.at/web_users>
	<IfModule mod_php4.c>
		AddType text/plain .php .php4 .php3 .phtml
		php_admin_flag engine off
	</IfModule>
	<IfModule mod_php5.c>
		AddType text/plain .php .php5 .php4 .php3 .phtml
		php_admin_flag engine off
	</IfModule>
	</Directory>
	<Directory "/var/www/vhosts/domain.at/statistics">
		AuthType Basic
		AuthName "Domain-Statistiken"
		AuthUserFile /var/www/vhosts/domain.at/pd/d..plesk-stat
		require  valid-user
	</Directory>
	Alias "/error_docs" "/var/www/vhosts/domain.at/error_docs"
	ErrorDocument 400 /error_docs/bad_request.html
	ErrorDocument 401 /error_docs/unauthorized.html
	ErrorDocument 403 /error_docs/forbidden.html
	ErrorDocument 404 /error_docs/not_found.html
	ErrorDocument 500 /error_docs/internal_server_error.html
</VirtualHost>

</IfModule>

<VirtualHost 00.00.00.00:80>
	ServerName   domain.at:80
	SuexecUserGroup         domain-at psacln
	ServerAdmin  "shop@domain.at"
	DocumentRoot /var/www/vhosts/domain.at/httpdocs
	CustomLog  /var/www/vhosts/domain.at/statistics/logs/access_log plesklog
	ErrorLog   /var/www/vhosts/domain.at/statistics/logs/error_log
<IfModule mod_userdir.c>
	UserDir /var/www/vhosts/domain.at/web_users
</IfModule>
	#ScriptAlias  /cgi-bin/ /var/www/vhosts/domain.at/httpdocs/otrs/bin/cgi-bin/
	Redirect permanent /plesk-stat https://domain.at/plesk-stat
	Redirect permanent /webstat https://domain.at/webstat
	Redirect permanent /webstat-ssl https://domain.at/webstat-ssl
	Redirect permanent /ftpstat https://domain.at/ftpstat
	Redirect permanent /anon_ftpstat https://domain.at/anon_ftpstat
	<IfModule mod_ssl.c>
		SSLEngine off
	</IfModule>
	<Directory /var/www/vhosts/domain.at/httpdocs>
	<IfModule mod_perl.c>
	<Files ~ (\.pl$)>
		SetHandler perl-script
		PerlHandler ModPerl::Registry
		Options ExecCGI
		PerlSendHeader On
		PerlSetupEnv On
		allow from all
	
	</Files>
	</IfModule>


	<IfModule mod_perl.c>
	<Files ~ (\.asp$)>
		SetHandler perl-script
		PerlHandler Apache::ASP
		PerlSetVar Global /tmp
	</Files>
	</IfModule>
	<IfModule mod_php4.c>
		php_admin_flag engine on
		php_admin_value open_basedir "/var/www/vhosts/domain.at/httpdocs:/tmp"
	</IfModule>
	<IfModule mod_php5.c>
		php_admin_flag engine on
		php_admin_value open_basedir "/var/www/vhosts/domain.at/httpdocs:/tmp"
	</IfModule>
	<IfModule mod_python.c>
	<Files ~ (\.py$)>
		SetHandler python-program
		PythonHandler	mod_python.cgihandler
	</Files>
	</IfModule>
		Options +Includes +ExecCGI
	</Directory>
	<Directory /var/www/vhosts/domain.at/web_users>
	<IfModule mod_php4.c>
		AddType text/plain .php .php4 .php3 .phtml
		php_admin_flag engine off
	</IfModule>
	<IfModule mod_php5.c>
		AddType text/plain .php .php5 .php4 .php3 .phtml
		php_admin_flag engine off
	</IfModule>
	</Directory>
	Alias "/error_docs" "/var/www/vhosts/domain.at/error_docs"
	Alias  "/otrs-web" "/var/www/vhosts/domain.at/httpdocs/otrs/var/httpd/htdocs"
  ScriptAlias  "/otrs" "/var/www/vhosts/domain.at/httpdocs/otrs/bin/cgi-bin"
	#ScriptAlias  / /var/www/vhosts/domain.at/httpdocs/otrs/bin/cgi-bin/
	ErrorDocument 400 /error_docs/bad_request.html
	ErrorDocument 401 /error_docs/unauthorized.html
	ErrorDocument 403 /error_docs/forbidden.html
	ErrorDocument 404 /error_docs/not_found.html
	ErrorDocument 500 /error_docs/internal_server_error.html
</VirtualHost>


die Verzeichnissstrucktur sieht wie folgt aus:

domain.at
|-cgi-bin
|-httpdocs
|-tmp
|-...

in httpdocs habe ich den ordner otrs rein kopiert , so wie er war.

Das Problem ist nun das wenn ich das install.pl oder das index.pl starte immer die fehlermeldung 500 bekomme und im errorlog steht das er die Kernel/Config.pm nicht finden kann.

Warum ist das so, kann mir da jemand weiter helfen?

Danke
bci-digix
Znuny newbie
Posts: 4
Joined: 20 Dec 2006, 13:42

Post by bci-digix »

So, ich hab nun einen Web gefunden wie das ganze funktioniert!

Also für alle die OTRS auf Ihrem Server nutzen wollen.

1. eine Domain über das Admin panel anlegen (die erforderlichen perl unterstützungen einschalten)
(HINWEIS: es ist auch möglich eine Subdomain als Domain an zu legen, behebt in Plesk viele Probleme mit SSL usw)

2.Die Source herunterladen und entpacken.

3. Via FTP einloggen und im cgi-bin verzeichniss die otrs reinladen.
Ich habe nur die Ordner aus dem OTRS Verzeichniss hineingeladen, ohne den Ordner OTRS

den Ordner var aus dem otrs Verzeichniss habe ich in das Verzeichniss httpdocs upgeloadet

(TIPP: Im Ordner doc bedinen sich PDF Dateien die gut die hälfte des uploads ausmachen, diese habe ich gelöscht!)

4.die httpd.include anpassen, dazu benötigt man einen SSH Zugang zum System

man findet diese Datei unter

/var/www/vhosts/ticket.domain.at/conf

diese wird so optimiert:

Code: Select all

# ATTENTION!
# DO NOT MODIFY THIS FILE OR ANY PART OF IT. THIS CAN RESULT IN IMPROPER PLESK
# FUNCTIONING OR FAILURE, CAUSE DAMAGE AND LOSS OF DATA. IF YOU REQUIRE CUSTOM
# MODIFICATIONS TO BE APPLIED TO THE CONFIGURATION, PLEASE, PERFORM THEM IN THE
# FOLLOWING FILE(S):
# /var/www/vhosts/ticket.domain.at/conf/vhost.conf
# /var/www/vhosts/ticket.domain.at/conf/vhost_ssl.conf
# /var/www/vhosts/ticket.domain.at/subdomains/<subdomain-name>/conf/vhost.conf

<IfModule mod_ssl.c>

<VirtualHost 00.00.00.00:443>
	ServerName   ticket.domain.at:443
		SuexecUserGroup         ticket-domain-at psacln
	ServerAdmin  shop@domain.at
	DocumentRoot /var/www/vhosts/ticket.domain.at/httpdocs
	CustomLog  /var/www/vhosts/ticket.domain.at/statistics/logs/access_ssl_log plesklog
	ErrorLog     /var/www/vhosts/ticket.domain.at/statistics/logs/error_ssl_log
<IfModule mod_userdir.c>
	UserDir /var/www/vhosts/ticket.domain.at/web_users
</IfModule>
	ScriptAlias  / /var/www/vhosts/ticket.domain.at/cgi-bin/bin/cgi-bin/
	Alias  /plesk-stat /var/www/vhosts/ticket.domain.at/statistics/
	Alias  /webstat /var/www/vhosts/ticket.domain.at/statistics/webstat
	Alias  /webstat-ssl /var/www/vhosts/ticket.domain.at/statistics/webstat-ssl
	Alias  /ftpstat /var/www/vhosts/ticket.domain.at/statistics/ftpstat
	Alias  /anon_ftpstat /var/www/vhosts/ticket.domain.at/statistics/anon_ftpstat
	#Alias  /otrs-web/ /var/www/vhosts/ticket.domain.at/httpdocs/var/httpd/htdocs
	SSLEngine on
	SSLVerifyClient none
	SSLCertificateFile /opt/psa/var/certificates/cert-qZf6kW
	<Directory /var/www/vhosts/ticket.domain.at/httpdocs>
	<IfModule mod_perl.c>
	<Files ~ (\.pl$)>
		SetHandler perl-script
		PerlHandler ModPerl::Registry
		Options ExecCGI
		allow from all
		PerlSendHeader On
	</Files>
	</IfModule>
	<IfModule mod_perl.c>
	<Files ~ (\.asp$)>
		SetHandler perl-script
		PerlHandler Apache::ASP
		PerlSetVar Global /tmp
	</Files>
	</IfModule>
	<IfModule mod_php4.c>
		php_admin_flag engine on
		php_admin_value open_basedir "/var/www/vhosts/ticket.domain.at/httpdocs:/tmp"
	</IfModule>
	<IfModule mod_php5.c>
		php_admin_flag engine on
		php_admin_value open_basedir "/var/www/vhosts/ticket.domain.at/httpdocs:/tmp"
	</IfModule>
	<IfModule mod_python.c>
	<Files ~ (\.py$)>
		SetHandler python-program
		PythonHandler	mod_python.cgihandler
	</Files>
	</IfModule>
		SSLRequireSSL
		Options +Includes +ExecCGI
	</Directory>
	<Directory /var/www/vhosts/ticket.domain.at/web_users>
	<IfModule mod_php4.c>
		AddType text/plain .php .php4 .php3 .phtml
		php_admin_flag engine off
	</IfModule>
	<IfModule mod_php5.c>
		AddType text/plain .php .php5 .php4 .php3 .phtml
		php_admin_flag engine off
	</IfModule>
	</Directory>
	<Directory "/var/www/vhosts/ticket.domain.at/statistics">
		AuthType Basic
		AuthName "Domain-Statistiken"
		AuthUserFile /var/www/vhosts/ticket.domain.at/pd/d..plesk-stat
		require  valid-user
	</Directory>
	Alias "/error_docs" "/var/www/vhosts/ticket.domain.at/error_docs"
	ErrorDocument 400 /error_docs/bad_request.html
	ErrorDocument 401 /error_docs/unauthorized.html
	ErrorDocument 403 /error_docs/forbidden.html
	ErrorDocument 404 /error_docs/not_found.html
	ErrorDocument 500 /error_docs/internal_server_error.html
</VirtualHost>

</IfModule>

<VirtualHost 00.00.00.00:80>
	ServerName   ticket.domain.at:80
	SuexecUserGroup         ticket-domain-at psacln
	ServerAdmin  "shop@domain.at"
	DocumentRoot /var/www/vhosts/ticket.domain.at/httpdocs
	CustomLog  /var/www/vhosts/ticket.domain.at/statistics/logs/access_log plesklog
	ErrorLog   /var/www/vhosts/ticket.domain.at/statistics/logs/error_log
<IfModule mod_userdir.c>
	UserDir /var/www/vhosts/ticket.domain.at/web_users
</IfModule>
	Alias	/otrs-web	"/var/www/vhosts/ticket.domain.at/httpdocs/var/httpd/htdocs/"
	ScriptAlias  / "/var/www/vhosts/ticket.domain.at/cgi-bin/bin/cgi-bin/"
	
	Redirect permanent /plesk-stat https://ticket.domain.at/plesk-stat
	Redirect permanent /webstat https://ticket.domain.at/webstat
	Redirect permanent /webstat-ssl https://ticket.domain.at/webstat-ssl
	Redirect permanent /ftpstat https://ticket.domain.at/ftpstat
	Redirect permanent /anon_ftpstat https://ticket.domain.at/anon_ftpstat
	<IfModule mod_ssl.c>
		SSLEngine off
	</IfModule>
	<Directory /var/www/vhosts/ticket.domain.at/httpdocs>
	<IfModule mod_perl.c>
	<Files ~ (\.pl$)>
		SetHandler perl-script
		PerlHandler ModPerl::Registry
		Options ExecCGI
		allow from all
		PerlSendHeader On
		PerlSetupEnv On
	</Files>
	</IfModule>
	<IfModule mod_perl.c>
	<Files ~ (\.asp$)>
		SetHandler perl-script
		PerlHandler Apache::ASP
		PerlSetVar Global /tmp
	</Files>
	</IfModule>
	<IfModule mod_php4.c>
		php_admin_flag engine on
		php_admin_value open_basedir "/var/www/vhosts/ticket.domain.at/httpdocs:/tmp"
	</IfModule>
	<IfModule mod_php5.c>
		php_admin_flag engine on
		php_admin_value open_basedir "/var/www/vhosts/ticket.domain.at/httpdocs:/tmp"
	</IfModule>
	<IfModule mod_python.c>
	<Files ~ (\.py$)>
		SetHandler python-program
		PythonHandler	mod_python.cgihandler
	</Files>
	</IfModule>
		Options +Includes +ExecCGI
	</Directory>
	<Directory /var/www/vhosts/ticket.domain.at/web_users>
	<IfModule mod_php4.c>
		AddType text/plain .php .php4 .php3 .phtml
		php_admin_flag engine off
	</IfModule>
	<IfModule mod_php5.c>
		AddType text/plain .php .php5 .php4 .php3 .phtml
		php_admin_flag engine off
	</IfModule>
	</Directory>
	Alias /error_docs "/var/www/vhosts/ticket.domain.at/error_docs/"
	#Alias "/otrs-web/" "/var/www/vhosts/ticket.domain.at/httpdocs/var/httpd/htdocs/"	
	ErrorDocument 400 /error_docs/bad_request.html
	ErrorDocument 401 /error_docs/unauthorized.html
	ErrorDocument 403 /error_docs/forbidden.html
	ErrorDocument 404 /error_docs/not_found.html
	ErrorDocument 500 /error_docs/internal_server_error.html
</VirtualHost>

Besonders sind dabei die Zeilen

Alias /otrs-web "/var/www/vhosts/ticket.domain.at/httpdocs/var/httpd/htdocs/"
ScriptAlias / "/var/www/vhosts/ticket.domain.at/cgi-bin/bin/cgi-bin/"

und

<Files ~ (\.pl$)>
SetHandler perl-script
PerlHandler ModPerl::Registry
Options ExecCGI
allow from all
PerlSendHeader On
PerlSetupEnv On
</Files>

wichtig.

ist das fertig sollte man apache neu starten

falls sich apache nicht neu starten lässt kann man auch die alte original http.include.new über die bestehende kopieren, mit

cp httpd.include.new httpd.include

sNun sollte man otrs über das webinterface unter http://ticket.domain.at/installer.pl erreichen.

Nach der erfolgreichen installation der DB usw. müssen wir nun noch die Cronjobs in plesk einbinden.

Dazu geben wir als erstes den Dateien im Verzeichniss ../cgi-bin/bin/

GenericAgent.pl
PendingJobs.pl
otrs.cleanup
PostMasterPOP3.pl
RebuildTicketIndex.pl
DeleteSessionIDs.pl
UnlockTickets.pl

den Status 755

nun müssen wir noch die dateien umbenenen, diese finden wir in den verzeichnissen

../cgi-bin/Kernel/Config
../cgi-bin/var/cron

wir müssen in desen verzeichnissen alle files von *.dist auf ohne endung bzw. *.pm umbenennen

Nun gehen wir unter Plesk in Server->CronTab
und wählen den Benutzer aus unter dem das ganze statfinden soll, vorzugsweie ticket.domain.at (sonst gehts nicht)

dann ändern wir als erstes die e-mail adresse an den die fehlermeldungen des crons geschickt werden und klicken auf setzen.

nun legen wir einen neuen cron job an.

Diese Zeilen geben an wie der Cronjob aus zu sehen hat, ich erläutere diese gleich

*/20 * * * * $HOME/bin/GenericAgent.pl >> /dev/null
*/10 * * * * $HOME/bin/GenericAgent.pl -c db >> /dev/null
45 */2 * * * $HOME/bin/PendingJobs.pl >> /dev/null
10 0 * * * $HOME/bin/otrs.cleanup >> /dev/null
*/10 * * * * $HOME/bin/PostMasterPOP3.pl >> /dev/null
01 01 * * * $HOME/bin/RebuildTicketIndex.pl >> /dev/null
55 */2 * * * $HOME/bin/DeleteSessionIDs.pl --expired >> /dev/null
35 * * * * $HOME/bin/UnlockTickets.pl --timeout >> /dev/null

$HOME ist in unserem Fall /var/www/vhosts/ticket.domain.at/cgi-bin

z:b.: in das feld miute tragen wir */20 ein (d.h: in jeder 20igsten Minute wird das skript ausgeführt)

in die anderen Zeitfelder tragen wir * ein,d.h jede stunde bzw. tag,monat wird das skript ausgeführt, in die komandozeile tragen wir /var/www/vhosts/ticket.domain.at/cgi-bin/bin/GenericAgent.pl >> /dev/null ein.

das machen wir mit allen crons.

danach muss man nur noch im webadmininterface den rest einstellen.

ich hoffe geholfen zu haben!!!
Fritz
Znuny newbie
Posts: 1
Joined: 05 Mar 2007, 09:54

Post by Fritz »

Moin Moin,

folgendes ....ich prokel hier jetzt schon viel zu lange rum. Ich habe es genau so gemacht, wie Du schreibst. Als erstes scheitere ich schon mal daran die ScriptAlias Zeilen in die Include einzusetzen. Beim Apache Restart erhalte ich an dieser Stelle stets eine Warnung, dass die Alias darunter dann keinen Effekt mehr haben.
Wenn ich das ScriptAlias dann allerdings fast nach ganz unten setze, so dass keine Alias danach mehr kommen, geht es ohne Fehlermeldung. Jedoch funktioniert die Installation immer noch nicht. Ich bekomme die installer.pl nicht zum laufen.
Wenn ich im ScriptAlias nicht das cgi-bin/bin/cgi-bin Verzeichnis auf Root setze, sondern auf cgi-bin, kommen ebenfalls keine Fehlermeldungen bei Apache restart....jedoch komme ich damit auch nicht weiter.

Installiert werden soll OTRS auf einem Plesk 8.1 SuSE Linux.
Das var Verzeichnis ist unter httpdocs der Rest ist im Verzeichnis cgi-bin
in der Kernel Config.pm.dist habe ich das Rootverzeichnis auf "/httpdocs" gesetzt.
pcw
Znuny newbie
Posts: 3
Joined: 09 Mar 2007, 00:49
Contact:

Post by pcw »

in der Kernel Config.pm.dist habe ich das Rootverzeichnis auf "/httpdocs" gesetzt.
Sollte die nicht Config.pm heißen?

Detailiertere Fehlermeldungen findest du z.B. unter /var/log/apache/error.log (die Zugriffsfehler wenn du versucht die Seite zu laden), evtl. ist das Vereichnis bei dir in Suse auch leicht anders.
goldfisch
Znuny newbie
Posts: 20
Joined: 27 Aug 2006, 18:45

otrs in plesk einbauen httpd.conf file ?!?!?!?

Post by goldfisch »

Hallo,

ich bekomme die Conf Datei irgendwie nicht hin.
Der Server startet danach zwar, der Apache jedoch nicht.
Aus dem Log werde ich auch nicht wirklich schau.
Meine Datei sieht auch etwas anders aus als das Beispiel weiter oben.
Server Konfiguration:
- Plesk 8,0.1
- SuSe Linux 9.3
Sieht in der Datei selbst jmd ein Fehler ?!

Code: Select all

# ATTENTION!
# DO NOT MODIFY THIS FILE OR ANY PART OF IT. THIS CAN RESULT IN IMPROPER PLESK
# FUNCTIONING OR FAILURE, CAUSE DAMAGE AND LOSS OF DATA. IF YOU REQUIRE CUSTOM
# MODIFICATIONS TO BE APPLIED TO THE CONFIGURATION, PLEASE, PERFORM THEM IN THE
# FOLLOWING FILE(S):
# /srv/www/vhosts/meine.domain.tld/conf/vhost.conf
# /srv/www/vhosts/meine.domain.tld/conf/vhost_ssl.conf
# /srv/www/vhosts/meine.domain.tld/subdomains/<subdomain-name>/conf/vhost.conf

<IfModule mod_ssl.c>

<VirtualHost xx.xxx.xx.xxx:443>
	ServerName   meine.domain.tld:443
	ServerAlias  www.meine.domain.tld
	UseCanonicalName Off
		SuexecUserGroup         tsug24 psacln
	DocumentRoot /srv/www/vhosts/meine.domain.tld/httpdocs
	CustomLog  /srv/www/vhosts/meine.domain.tld/statistics/logs/access_ssl_log plesklog
	ErrorLog     /srv/www/vhosts/meine.domain.tld/statistics/logs/error_ssl_log
<IfModule mod_userdir.c>
	UserDir /srv/www/vhosts/meine.domain.tld/web_users
</IfModule>
	Alias /otrs-web "/var/www/vhosts/meine.domain.tld/httpdocs/var/httpd/htdocs/"
	ScriptAlias / "/var/www/vhosts/meine.domain.tld/cgi-bin/bin/cgi-bin/"

	Alias  /plesk-stat /srv/www/vhosts/meine.domain.tld/statistics/
	Alias  /webstat /srv/www/vhosts/meine.domain.tld/statistics/webstat
	Alias  /webstat-ssl /srv/www/vhosts/meine.domain.tld/statistics/webstat-ssl
	Alias  /ftpstat /srv/www/vhosts/meine.domain.tld/statistics/ftpstat
	Alias  /anon_ftpstat /srv/www/vhosts/meine.domain.tld/statistics/anon_ftpstat
	SSLEngine on
	SSLVerifyClient none
	SSLCertificateFile /usr/local/psa/var/certificates/certhO32406
	<Directory /srv/www/vhosts/meine.domain.tld/httpdocs>
	<IfModule mod_perl.c>
	<Files ~ (\.pl$)>
SetHandler perl-script
PerlHandler ModPerl::Registry
Options ExecCGI
allow from all
PerlSendHeader On
PerlSetupEnv On
</Files> 
	</IfModule>
	<IfModule mod_perl.c>
	<Files ~ (\.asp$)>
		SetHandler perl-script
		PerlHandler Apache::ASP
		PerlSetVar Global /tmp
	</Files>
	</IfModule>
	<IfModule sapi_apache2.c>
		php_admin_flag engine on
		php_admin_flag safe_mode on
		php_admin_value open_basedir "/srv/www/vhosts/meine.domain.tld/httpdocs:/tmp"
	</IfModule>
	<IfModule mod_php5.c>
		php_admin_flag engine on
		php_admin_flag safe_mode on
		php_admin_value open_basedir "/srv/www/vhosts/meine.domain.tld/httpdocs:/tmp"
	</IfModule>
	<IfModule mod_python.c>
	<Files ~ (\.py$)>
		SetHandler python-program
		PythonHandler	mod_python.cgihandler
	</Files>
	</IfModule>
		SSLRequireSSL
		Options +Includes +ExecCGI
	</Directory>
	<Directory /srv/www/vhosts/meine.domain.tld/web_users>
	<IfModule sapi_apache2.c>
		php_admin_flag engine off
	</IfModule>
	<IfModule mod_php5.c>
		php_admin_flag engine off
	</IfModule>
	</Directory>
	<Directory "/srv/www/vhosts/meine.domain.tld/statistics">
		AuthType Basic
		AuthName "Domain-Statistiken"
		AuthUserFile /srv/www/vhosts/meine.domain.tld/pd/d..httpdocs@plesk-stat
		require  valid-user
	</Directory>
</VirtualHost>

</IfModule>

<VirtualHost xx.xxx.xx.xxx:80>
	ServerName   meine.domain.tld:80
	ServerAlias  www.meine.domain.tld
	UseCanonicalName Off
	SuexecUserGroup         tsug24 psacln
	DocumentRoot /srv/www/vhosts/meine.domain.tld/httpdocs
	CustomLog  /srv/www/vhosts/meine.domain.tld/statistics/logs/access_log plesklog
	ErrorLog   /srv/www/vhosts/meine.domain.tld/statistics/logs/error_log
<IfModule mod_userdir.c>
	UserDir /srv/www/vhosts/meine.domain.tld/web_users
</IfModule>
	Alias /otrs-web "/var/www/vhosts/meine.domain.tld/httpdocs/var/httpd/htdocs/"
	ScriptAlias / "/var/www/vhosts/meine.domain.tld/cgi-bin/bin/cgi-bin/"

	Redirect permanent /plesk-stat https://meine.domain.tld/plesk-stat
	Redirect permanent /webstat https://meine.domain.tld/webstat
	Redirect permanent /webstat-ssl https://meine.domain.tld/webstat-ssl
	Redirect permanent /ftpstat https://meine.domain.tld/ftpstat
	Redirect permanent /anon_ftpstat https://meine.domain.tld/anon_ftpstat
	<IfModule mod_ssl.c>
		SSLEngine off
	</IfModule>
	<Directory /srv/www/vhosts/meine.domain.tld/httpdocs>
	<IfModule mod_perl.c>
<Files ~ (\.pl$)>
SetHandler perl-script
PerlHandler ModPerl::Registry
Options ExecCGI
allow from all
PerlSendHeader On
PerlSetupEnv On
</Files> 
	</IfModule>
	<IfModule mod_perl.c>
	<Files ~ (\.asp$)>
		SetHandler perl-script
		PerlHandler Apache::ASP
		PerlSetVar Global /tmp
	</Files>
	</IfModule>
	<IfModule sapi_apache2.c>
		php_admin_flag engine on
		php_admin_flag safe_mode on
		php_admin_value open_basedir "/srv/www/vhosts/meine.domain.tld/httpdocs:/tmp"
	</IfModule>
	<IfModule mod_php5.c>
		php_admin_flag engine on
		php_admin_flag safe_mode on
		php_admin_value open_basedir "/srv/www/vhosts/meine.domain.tld/httpdocs:/tmp"
	</IfModule>
	<IfModule mod_python.c>
	<Files ~ (\.py$)>
		SetHandler python-program
		PythonHandler	mod_python.cgihandler
	</Files>
	</IfModule>
		Options +Includes +ExecCGI
	</Directory>
	<Directory /srv/www/vhosts/meine.domain.tld/web_users>
	<IfModule sapi_apache2.c>
		php_admin_flag engine off
	</IfModule>
	<IfModule mod_php5.c>
		php_admin_flag engine off
	</IfModule>
	</Directory>
</VirtualHost>
Danke für die Hilfe !
goldfisch
Znuny newbie
Posts: 20
Joined: 27 Aug 2006, 18:45

otrs in plesk einbauen httpd.conf file ?!?!?!?

Post by goldfisch »

Hat denn hier keine eine Idee !?
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:

otrs in plesk einbauen httpd.conf file ?!?!?!?

Post by Andre Bauer »

Habe kein Plesk aber normaler Weise solltest Du doch nur die Einträge im otrs_apache.conf in nen Virtual Host eintragen müssen...
Prod: Ubuntu Server 16.04 / Zammad 1.2

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

OtterHub.org
goldfisch
Znuny newbie
Posts: 20
Joined: 27 Aug 2006, 18:45

otrs in plesk einbauen httpd.conf file ?!?!?!?

Post by goldfisch »

Hallo Zusammen,

nach dem ich es länger in der Offline Version hatte, hatte ich mich vorhin nochmal mit der Online Version beschäftigt.
Leider bekomme ich es immer noch nicht unter Plesk zum laufen.

Eingesetzt wird ein SuSe 10 Linux und Plesk 8.3

Ich habe hierfür eine Subdomain angelegt "solution"

Die Ordner Struktur sieht bei mir wie folgt aus:

Code: Select all

.../subdomains/solution/cgi-bin # dir
total 284
drwxrwxrwx  6 solution psaserv   1024 Jan  8 00:02 .
drwxr-xr-x  7 root root      1024 Jan  7 22:36 ..
-rwxrwxrwx  1 solution psacln    1235 Jan  7 22:44 .fetchmailrc.dist
-rwxrwxrwx  1 solution psacln    1698 Jan  7 22:44 .mailfilter.dist
-rwxrwxrwx  1 solution psacln    1924 Jan  7 22:45 .procmailrc.dist
-rwxrwxrwx  1 solution psacln   59141 Jan  7 22:45 ARCHIVE
-rwxrwxrwx  1 solution psacln  137018 Jan  7 22:45 CHANGES
-rwxrwxrwx  1 solution psacln   18009 Jan  7 22:45 COPYING
-rwxrwxrwx  1 solution psacln    1870 Jan  7 22:45 CREDITS
-rwxrwxrwx  1 solution psacln    5632 Jan  7 22:45 INSTALL
-rwxrwxrwx  1 solution psacln    1136 Jan  7 22:45 INSTALL.RedHat
-rwxrwxrwx  1 solution psacln    1315 Jan  7 22:45 INSTALL.SuSE
drwxrwxrwx  8 solution psacln    1024 Jan  7 22:47 Kernel
-rwxrwxrwx  1 solution psacln    8317 Jan  7 22:45 README
-rwxrwxrwx  1 solution psacln    4420 Jan  7 22:45 README.database
-rwxrwxrwx  1 solution psacln    4550 Jan  7 22:45 README.webserver
-rwxrwxrwx  1 solution psacln     104 Jan  7 22:45 RELEASE
-rwxrwxrwx  1 solution psacln    8316 Jan  7 22:45 TODO
-rwxrwxrwx  1 solution psacln    1700 Jan  7 22:45 UPGRADING
drwxrwxrwx  4 solution psacln    1024 Jan  7 22:45 bin
drwxrwxrwx  2 solution psacln    1024 Jan  7 22:45 cpanel
-rwxrwxrwx  1 solution psacln    1515 Jan  7 22:45 customer.pl
-rwxrwxrwx  1 solution psacln    1503 Jan  7 22:45 index.pl
-rwxrwxrwx  1 solution psacln    4343 Jan  7 22:45 installer.pl
-rwxrwxrwx  1 solution psacln    1487 Jan  7 22:45 public.pl
-rwxrwxrwx  1 solution psacln    3081 Jan  7 22:45 rpc.pl
drwxrwxrwx  6 solution psacln    2048 Jan  7 22:51 scripts
Hierbei sind entsprechend die kompletten Ordner aus dem OTRS jedoch ohne var und Dokumente.

Im Ordner "httpdocs" sieht es so aus:

Code: Select all

.../solution/httpdocs # dir
total 3
drwxrwxrwx   3 solution psaserv 1024 Jan  7 23:59 .
drwxr-xr-x   7 root root    1024 Jan  7 22:36 ..
drwxr-xr-x  10 solution psaserv 1024 Jan  7 23:59 var
im Ordner "var" befindet sich entsprechend der Inhalt.

Ich habe entsprechend eine conf erstellt, die wie folgt aussieht:

Code: Select all

# ATTENTION!
# DO NOT MODIFY THIS FILE OR ANY PART OF IT. THIS CAN RESULT IN IMPROPER PLESK
# FUNCTIONING OR FAILURE, CAUSE DAMAGE AND LOSS OF DATA. IF YOU REQUIRE CUSTOM
# MODIFICATIONS TO BE APPLIED TO THE CONFIGURATION, PLEASE, PERFORM THEM IN THE
# FOLLOWING FILE(S):
# /srv/www/vhosts/PLATZHALTER.XY/subdomains/solution/conf/vhost.conf
# /srv/www/vhosts/PLATZHALTER.XY/subdomains/solution/conf/vhost_ssl.conf
# /srv/www/vhosts/PLATZHALTER.XY/subdomains/solution/subdomains/<subdomain-name>/conf/vhost.conf

<IfModule mod_ssl.c>

<VirtualHost xx.xxx.xx.xxx:443>
	ServerName   solution.PLATZHALTER.XY:443
	ServerAlias  www.solution.PLATZHALTER.XY
	UseCanonicalName Off
		SuexecUserGroup         solution psacln
	DocumentRoot /srv/www/vhosts/PLATZHALTER.XY/subdomains/solution/httpdocs
	CustomLog  /srv/www/vhosts/PLATZHALTER.XY/subdomains/solution/statistics/logs/access_ssl_log plesklog
	ErrorLog  /srv/www/vhosts/PLATZHALTER.XY/subdomains/solution/statistics/logs/error_log
<IfModule mod_userdir.c>
	UserDir /srv/www/vhosts/PLATZHALTER.XY/subdomains/solution/web_users
</IfModule>
#Alias   /otrs-web   "/srv/www/vhosts/PLATZHALTER.XY/subdomains/solution/httpdocs/"
       ScriptAlias  / "/srv/www/vhosts/PLATZHALTER.XY/subdomains/solution/cgi-bin/bin/cgi-bin/"
	ScriptAlias  /cgi-bin/ /srv/www/vhosts/PLATZHALTER.XY/subdomains/solution/cgi-bin/
	Alias  /plesk-stat /srv/www/vhosts/PLATZHALTER.XY/subdomains/solution/statistics/
	<Location  /plesk-stat/>
		Options +Indexes
	</Location>
	<Location  /plesk-stat/logs/>
		Require valid-user
	</Location>
	Alias  /webstat /srv/www/vhosts/PLATZHALTER.XY/subdomains/solution/statistics/webstat
	Alias  /webstat-ssl /srv/www/vhosts/PLATZHALTER.XY/subdomains/solution/statistics/webstat-ssl
	Alias  /ftpstat /srv/www/vhosts/PLATZHALTER.XY/subdomains/solution/statistics/ftpstat
	Alias  /anon_ftpstat /srv/www/vhosts/PLATZHALTER.XY/subdomains/solution/statistics/anon_ftpstat
	Alias  /awstats-icon /usr/share/apache2/icons/awstats/icon
	SSLEngine on
	SSLVerifyClient none
	SSLCertificateFile /usr/local/psa/var/certificates/certhO32406
	<Directory /srv/www/vhosts/PLATZHALTER.XY/subdomains/solution/httpdocs>
	<IfModule mod_perl.c>
	<Files ~ (\.pl$)>
		SetHandler perl-script
		PerlHandler ModPerl::Registry
		Options ExecCGI
		allow from all
		PerlSendHeader On
	</Files>
	</IfModule>
	<IfModule mod_perl.c>
	<Files ~ (\.asp$)>
		SetHandler perl-script
		PerlHandler Apache::ASP
		PerlSetVar Global /tmp
	</Files>
	</IfModule>
	<IfModule sapi_apache2.c>
		php_admin_flag engine on
		php_admin_flag safe_mode on
		php_admin_value open_basedir "/srv/www/vhosts/PLATZHALTER.XY/subdomains/solution/httpdocs:/tmp"
	</IfModule>
	<IfModule mod_php5.c>
		php_admin_flag engine on
		php_admin_flag safe_mode on
		php_admin_value open_basedir "/srv/www/vhosts/PLATZHALTER.XY/subdomains/solution/httpdocs:/tmp"
	</IfModule>
	<IfModule mod_python.c>
	<Files ~ (\.py$)>
		SetHandler python-program
		PythonHandler	mod_python.cgihandler
	</Files>
	</IfModule>
		SSLRequireSSL
		Options +Includes +ExecCGI
	</Directory>
	<Directory /srv/www/vhosts/PLATZHALTER.XY/subdomains/solution/web_users>
	<IfModule sapi_apache2.c>
		php_admin_flag engine off
	</IfModule>
	<IfModule mod_php5.c>
		php_admin_flag engine off
	</IfModule>
	</Directory>
	<Directory "/srv/www/vhosts/PLATZHALTER.XY/subdomains/solution/statistics">
		AuthType Basic
		AuthName "Domain statistics"
		AuthUserFile /srv/www/vhosts/PLATZHALTER.XY/subdomains/solution/pd/d..httpdocs@plesk-stat
		require  valid-user
	</Directory>
</VirtualHost>

</IfModule>

<VirtualHost xx.xxx.xx.xxx:80>
ServerName   solution.PLATZHALTER.XY:443
	ServerAlias  www.solution.PLATZHALTER.XY
	UseCanonicalName Off
	SuexecUserGroup         solution psacln
	DocumentRoot /srv/www/vhosts/PLATZHALTER.XY/subdomains/solution/httpdocs
	CustomLog  /srv/www/vhosts/PLATZHALTER.XY/subdomains/solution/statistics/logs/access_log plesklog
	ErrorLog  /srv/www/vhosts/PLATZHALTER.XY/subdomains/solution/statistics/logs/error_log
<IfModule mod_userdir.c>
	UserDir /srv/www/vhosts/PLATZHALTER.XY/subdomains/solution/web_users
</IfModule>
	Alias   /otrs-web   "/srv/www/vhosts/PLATZHALTER.XY/subdomains/solution/httpdocs/var/httpd/htdocs/"
       ScriptAlias  / "/srv/www/vhosts/PLATZHALTER.XY/subdomains/solution/cgi-bin/bin/cgi-bin/"
	ScriptAlias  /cgi-bin/ /srv/www/vhosts/PLATZHALTER.XY/subdomains/solution/cgi-bin/
	Redirect permanent /plesk-stat https://solution.PLATZHALTER.XY/plesk-stat
	Redirect permanent /webstat https://solution.PLATZHALTER.XY/webstat
	Redirect permanent /webstat-ssl https://solution.PLATZHALTER.XY/webstat-ssl
	Redirect permanent /ftpstat https://solution.PLATZHALTER.XY/ftpstat
	Redirect permanent /anon_ftpstat https://solution.PLATZHALTER.XY/anon_ftpstat
	Redirect permanent /awstats-icon https://solution.PLATZHALTER.XY/awstats-icon
	<IfModule mod_ssl.c>
		SSLEngine off
	</IfModule>
	<Directory /srv/www/vhosts/PLATZHALTER.XY/subdomains/solution/httpdocs>
	<IfModule mod_perl.c>
	<Files ~ (\.pl$)>
		SetHandler perl-script
		PerlHandler ModPerl::Registry
		Options ExecCGI
		allow from all
		PerlSendHeader On
          PerlSetupEnv On
	</Files>
	</IfModule>
	<IfModule mod_perl.c>
	<Files ~ (\.asp$)>
		SetHandler perl-script
		PerlHandler Apache::ASP
		PerlSetVar Global /tmp
	</Files>
	</IfModule>
	<IfModule sapi_apache2.c>
		php_admin_flag engine on
		php_admin_flag safe_mode on
		php_admin_value open_basedir "/srv/www/vhosts/PLATZHALTER.XY/subdomains/solution/httpdocs:/tmp"
	</IfModule>
	<IfModule mod_php5.c>
		php_admin_flag engine on
		php_admin_flag safe_mode on
		php_admin_value open_basedir "/srv/www/vhosts/PLATZHALTER.XY/subdomains/solution/httpdocs:/tmp"
	</IfModule>
	<IfModule mod_python.c>
	<Files ~ (\.py$)>
		SetHandler python-program
		PythonHandler	mod_python.cgihandler
	</Files>
	</IfModule>
		Options +Includes +ExecCGI
	</Directory>
	<Directory /srv/www/vhosts/PLATZHALTER.XY/subdomains/solution/web_users>
	<IfModule sapi_apache2.c>
		php_admin_flag engine off
	</IfModule>
	<IfModule mod_php5.c>
		php_admin_flag engine off
	</IfModule>
	</Directory>
</VirtualHost>
Sieht jmd von Euch den Fehler, den ich nicht sehe?
Denn mein Ergebnis, wenn ich die Domain Aufrufe sieht leider so aus:
Not Found
The requested document was not found on this server.
Danke schonmal für Eure Hilfestellung :-)
odcheck
Znuny newbie
Posts: 3
Joined: 12 Dec 2007, 15:30

otrs in plesk einbauen httpd.conf file ?!?!?!?

Post by odcheck »

Died at /var/www/vhosts/thedomain/subdomains/support/cgi-bin/bin/cgi-bin/../../Kernel/Config/Defaults.pm line 2291.


Kommt bei mir immer...
Kann es sein das man ggf. nochmals genauer auf die Config.pm bzw. Defaults.pm eingehen sollte?
k3v
Znuny newbie
Posts: 27
Joined: 18 Aug 2009, 11:41
Znuny Version: 2.4.3

otrs in plesk einbauen httpd.conf file ?!?!?!?

Post by k3v »

Wenn bei euren http.includes und Config.pm's alles funktioniert dann seht mal nach wo apache nach den Perl Modulen sucht.
Den Befehl findet man auch ganz leicht in Google! Ich gebe die Info jetzt absichtlich nicht her da es mich mehrere Tage gekostet hat das zu finden! Und mit einem kleinen Workaround lässt sich hier perfekt arbeiten! :)
Praktikant mit Abschlussarbeit welche auf OTRS basiert, werdet mich in nächster Zeit öfter hier sehen! ;)
Version: 2.4.4 | Debian (Lenny) | V-Server | OTRS::ITSM 1.3.1 | MySQL
maxbacks
Znuny wizard
Posts: 326
Joined: 30 Jan 2008, 14:59
Znuny Version: 6.0.19
Real Name: Max Hendrik Backs

otrs in plesk einbauen httpd.conf file ?!?!?!?

Post by maxbacks »

Hallo k3v,

falls du das nächste mal wieder eine Frage hast, kannst auch bei gidf.de nachschlagen.
Zu behaupten ich weiß es, helfe dir aber nicht weiter ist asozial.

Denke immer daran, wie du rein rufst, schallt es auch wieder zurück

mfg
mbacks
Ticket-System
Ubuntu 18.04
OTRS 6.0.19
Post Reply