PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Internal Server Error :(



Spreech
30.03.07, 23:02
Hi Leute,

beschäftige mich gerade ein wenig mit einen ERP Programm (lx-office), bin ganz neu in dem Bereich.

Habe das Programm auf einen vServer installiert (Debian Etch).

Nur habe ich da nun einige Probleme, die wohl nicht zwingend mit dem Programm zusammenhängen, sondern wohl eher an der Konfiguration hängen.

Vielleicht kann mir dann hier wer weiterhelfen, ich hoffe sehr.

Folgendes geschieht wenn ich auf ein Feld aus einer Auswahlliste des Programmes im Browser klicke:


Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [no address given] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.
Apache/2.2.3 (Debian) mod_python/3.2.10 Python/2.4.4 PHP/4.4.4-8+etch1 mod_ssl/2.2.3 OpenSSL/0.9.8c Server at XXXXXXXX Port 80

Das Log File sagt:


Fri Mar 30 08:32:31 2007] [error] [client XXXXXXXXXX] SoftException in Application.cpp:199: Script "/usr/lib/lx-office-erp/crm/wvl1.php" resolving to "/usr/lib/lx-office-crm/wvl1.php" not within configured docroot, referer: http://XXXXXXXXXX/lx-office-erp/login.pl
[Fri Mar 30 08:32:31 2007] [error] [client XXXXXXXXXX] Premature end of script headers: wvl1.php, referer: http://XXXXXXXXXX/lx-office-erp/login.pl

Kann mir da jmd. weiterhelfen?


Besten Dank im Voraus.

Euer Spreech

Roger Wilco
31.03.07, 12:27
SuPHP beschwert sich, dass das Skript /usr/lib/lx-office-crm/wvl1.php nicht im eingestellten DocumentRoot liegt. Entweder du kopierst die Applikation oder du erweiterst das gültige DocumentRoot (vllt. in /etc/suphp.conf).

Spreech
31.03.07, 16:12
Hi Roger,

vielen Dank für deine rasche Antwort.

Die Datei suphp.conf sieht momentan so aus:



[global]
;Path to logfile
logfile=/var/log/suphp/suphp.log

;Loglevel
loglevel=info

;User Apache is running as
webserver_user=www-data

;Path all scripts have to be in
docroot=/var/www

;Path to chroot() to before executing script
;chroot=/mychroot

; Security options
allow_file_group_writeable=true
allow_file_others_writeable=true
allow_directory_group_writeable=true
allow_directory_others_writeable=true

;Check wheter script is within DOCUMENT_ROOT
check_vhost_docroot=true

;Send minor error messages to browser
errors_to_browser=false

;PATH environment variable
env_path=/bin:/usr/bin

;Umask to set, specify in octal notation
umask=0077

; Minimum UID
min_uid=100

; Minimum GID
min_gid=100


[handlers]
;Handler for php-scripts
x-httpd-php=php:/usr/bin/php5-cgi

;Handler for CGI-scripts
x-suphp-cgi=execute:!self


Das erwähnten .php Dateien von dem Programm (lx-office-crm) liegen momentan hier:



/usr/lib/lx-office-crm/


Ich habe nun in dem Dokumentroot aus der Datei suphp.conf einen symbolischen Link auf das Verzeichnis wo die .php Dateien liegen eingefügt.

Doch leider bringt das keine Änderung.

Wie kann ich denn das Dokumentenroot ändern? Einfach den zweiten Pfad noch dahinter schreiben?

Wäre über eine erneute Rückinfo sehr dankbar!

Gruß
Spreech

Roger Wilco
31.03.07, 16:26
Nein, es kann nur ein DocumentRoot pro Konfigurationsdatei angegeben werden.

Du könntest check_vhost_docroot entsprechend setzen, wodurch du allerdings diese zusätzliche Sicherheitsprüfung deaktivierst.

Spreech
31.03.07, 16:36
ich bin nun auch auf die Idee gestoßen durch eine Anmerkung eines Freundes die Datei



/etc/apache2/sites-available/default


entsprechend anzupassen.

okay, also ich habe die Datei nun wie folgt abgeändert:



NameVirtualHost *

<VirtualHost *>
ServerName xxxx.de
ServerAlias www.xyz.de xx.yy.zz.yy
DocumentRoot /var/www/
</VirtualHost>

<VirtualHost *>
ServerAdmin webmaster@localhost

DocumentRoot /var/www/
<Directory />
Options FollowSymLinks
AllowOverride All
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
# This directive allows us to have apache2's default start page
# in /apache2-default/, but still have / go to the right place
RedirectMatch ^/$ /apache2-default/
</Directory>

ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>

ErrorLog /var/log/apache2/error.log

# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn

CustomLog /var/log/apache2/access.log combined
ServerSignature On

Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>

# LX Office

AddHandler cgi-script .pl
Alias /lx-office-erp/ /usr/lib/lx-office-erp/
<Directory /usr/lib/lx-office-erp>
Order Deny,Allow
Allow from All
Options +ExecCGI +Includes +FollowSymlinks
</Directory>
<Directory /usr/lib/lx-office-erp/users>
Order Deny,Allow
Deny from All
</Directory>

<Directory /usr/lib/lx-office-crm>
Order Deny,Allow
Allow from All
Options +ExecCGI +Includes +FollowSymlinks
</Directory>


</VirtualHost>


Wobei ich den letzten Abschnitt, ab Lx-Office, frisch hinzugefügt habe.

aber leider will es noch immer nicht klappen ;-(

Gruß + Danke
Spreech