[...]muss im DiskStation-Manager unter Systemsteuerung -> Webdienste -> PHP-Einstellungen -> PHP-Extensions auswählen auch mssql aktiviert werden.
Bezüglich der weißen Seiten bei Aufruf der Baïkal Admin-Seite: Wenn für den Server der eingebaute SQL-Dienst benutzt wird, muss im DiskStation-Manager unter Systemsteuerung -> Webdienste -> PHP-Einstellungen -> PHP-Extensions auswählen auch mssql aktiviert werden.
Gruß,
dsmynas
#define("PROJECT_URI", $sProtocol . "://" . $_SERVER["HTTP_HOST"] . $sHttpBaseUrl);
define("PROJECT_URI", $sProtocol . "://" . $_SERVER["HTTP_HOST"] . "/baikal/");
#define("PROJECT_URI", $sProtocol . "://" . $_SERVER["HTTP_HOST"] . $sHttpBaseUrl);
define("PROJECT_URI", $sProtocol . "://" . $_SERVER["HTTP_HOST"] . "/baikal/");
define("PROJECT_URI", $sProtocol . "://" . $_SERVER["HTTP_HOST"] . $sHttpBaseUrl);
Per Default läuft nur der System Apache. Zum Aktivieren des User Apache muss zumindest die Photostation aktiviert werden (im DSM). Solange aber die Webstation nicht aktiviert ist liegt der Document Root des User Apache unter /usr/syno/synoman/phpsrc/web und nicht unter /volume1/web
Yes indeed, WebStation is enabled.Anyway, I assume you did enable Web Station ?
Ich habe mir die Zeile 149 genauer angeschaut und mir ist aufgefallen, dass $_SERVER["DOCUMENT_ROOT"] sich nicht auf den üblichen Pfad bezieht sondern "/usr/syno/synoman/phpsrc/web" ausgibt und die Länge des Strings in diesem Fall nichts mit dem Skriptpfad zutun hat.
Ist bis jetzt bloß eine Annahme, da ich nicht viel Zeit hatte mir das noch genauer anzuschauen.
<?php
print_r($_SERVER);
?>
Array (
[HTTP_AUTHORIZATION] =>
[MOD_X_SENDFILE_ENABLED] => yes
[HTTP_ACCEPT] => */*
[HTTP_ACCEPT_LANGUAGE] => nl-NL
[HTTP_USER_AGENT] => Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.3; WOW64; Trident/7.0; .NET4.0E; .NET4.0C; .NET CLR 3.5.30729; .NET CLR 2.0.50727; .NET CLR 3.0.30729; MASMJS)
[HTTP_ACCEPT_ENCODING] => gzip, deflate
[HTTP_HOST] => basalt
[HTTP_DNT] => 1
[HTTP_CONNECTION] => Keep-Alive
[PATH] => /bin:/sbin:/usr/bin:/usr/sbin:/usr/syno/bin:/usr/syno/sbin:/usr/local/bin:/usr/local/sbin
[SERVER_SIGNATURE] =>
[SERVER_SOFTWARE] => Apache
[SERVER_NAME] => basalt
[SERVER_ADDR] => 192.xxx.xxx.xxx (sorry, private info :-)
[SERVER_PORT] => 80
[REMOTE_ADDR] => 192.yyy.yyy.yyy (sorry, private info :-)
[DOCUMENT_ROOT] => /var/services/web
[SERVER_ADMIN] => admin
[SCRIPT_FILENAME] => /var/services/web/baikal/zaza.php
[REMOTE_PORT] => 57441
[GATEWAY_INTERFACE] => CGI/1.1
[SERVER_PROTOCOL] => HTTP/1.1
[REQUEST_METHOD] => GET
[QUERY_STRING] =>
[REQUEST_URI] => /baikal/zaza.php
[SCRIPT_NAME] => /baikal/zaza.php
[PHP_SELF] => /baikal/zaza.php
[REQUEST_TIME] => 1400087815
)
Array
(
[USER] => http
[HOME] => /var/services/web
[FCGI_ROLE] => RESPONDER
[REDIRECT_MOD_X_SENDFILE_ENABLED] => yes
[REDIRECT_HANDLER] => php5-fastcgi
[REDIRECT_STATUS] => 200
[MOD_X_SENDFILE_ENABLED] => yes
[HTTP_HOST] => [hostname]
[HTTP_USER_AGENT] => [useragent]
[HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
[HTTP_ACCEPT_LANGUAGE] => en-US,en;q=0.5
[HTTP_ACCEPT_ENCODING] => gzip, deflate
[HTTP_COOKIE] => [somecookiestuff]
[HTTP_CONNECTION] => keep-alive
[HTTP_CACHE_CONTROL] => max-age=0
[PATH] => /bin:/sbin:/usr/bin:/usr/sbin:/usr/syno/bin:/usr/syno/sbin:/usr/local/bin:/usr/local/sbin
[SERVER_SIGNATURE] =>
[SERVER_SOFTWARE] => Apache
[SERVER_NAME] => [hostname]
[SERVER_ADDR] => [address]
[SERVER_PORT] => 80
[REMOTE_ADDR] => [address]
[DOCUMENT_ROOT] => /var/services/web
[SERVER_ADMIN] => admin
[SCRIPT_FILENAME] => /var/services/web/zaza.php
[REMOTE_PORT] => 53742
[REDIRECT_URL] => /zaza.php
[GATEWAY_INTERFACE] => CGI/1.1
[SERVER_PROTOCOL] => HTTP/1.1
[REQUEST_METHOD] => GET
[QUERY_STRING] =>
[REQUEST_URI] => /zaza.php
[SCRIPT_NAME] => /zaza.php
[ORIG_SCRIPT_FILENAME] => /php-fpm-handler
[ORIG_PATH_INFO] => /zaza.php
[ORIG_PATH_TRANSLATED] => /var/services/web/zaza.php
[ORIG_SCRIPT_NAME] => /php-fpm-handler.fcgi
[PHP_SELF] => /zaza.php
[REQUEST_TIME_FLOAT] => 1400090551.6918
[REQUEST_TIME] => 1400090551
)
Array (
[USER] => http
[HOME] => /var/services/web
[FCGI_ROLE] => RESPONDER
[REDIRECT_HTTP_AUTHORIZATION] =>
[REDIRECT_MOD_X_SENDFILE_ENABLED] => yes
[REDIRECT_HTTPS] => on
[REDIRECT_SSL_TLS_SNI] => xxx
[REDIRECT_HANDLER] => php5-fastcgi
[REDIRECT_STATUS] => 200
[MOD_X_SENDFILE_ENABLED] => yes
[HTTPS] => on
[SSL_TLS_SNI] => xxx
[HTTP_HOST] => xxx
[HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
[HTTP_COOKIE] => PHPSESSID=xxx
[HTTP_USER_AGENT] => Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_2) AppleWebKit/537.75.14 (KHTML, like Gecko) Version/7.0.3 Safari/537.75.14
[HTTP_ACCEPT_LANGUAGE] => de-de
[HTTP_ACCEPT_ENCODING] => gzip, deflate
[HTTP_CONNECTION] => keep-alive
[PATH] => /bin:/sbin:/usr/bin:/usr/sbin:/usr/syno/bin:/usr/syno/sbin:/usr/local/bin:/usr/local/sbin
[SERVER_SIGNATURE] =>
[SERVER_SOFTWARE] => Apache
[SERVER_NAME] => xxx
[SERVER_ADDR] => xxx
[SERVER_PORT] => 443
[REMOTE_ADDR] => xxx
[color="#0000FF"][DOCUMENT_ROOT] => /var/services/web/baikal[/color]
[SERVER_ADMIN] => admin
[color="#0000FF"][SCRIPT_FILENAME] => /var/services/web/baikal/zaza.php[/color]
[REMOTE_PORT] => 56098
[REDIRECT_URL] => /zaza.php
[GATEWAY_INTERFACE] => CGI/1.1
[SERVER_PROTOCOL] => HTTP/1.1
[REQUEST_METHOD] => GET
[QUERY_STRING] =>
[color="#0000FF"][REQUEST_URI] => /zaza.php[/color]
[color="#0000FF"][SCRIPT_NAME] => /zaza.php[/color]
[ORIG_SCRIPT_FILENAME] => /php-fpm-handler
[ORIG_PATH_INFO] => /zaza.php
[ORIG_PATH_TRANSLATED] => /var/services/web/baikal/zaza.php
[ORIG_SCRIPT_NAME] => /php-fpm-handler.fcgi
[PHP_SELF] => /zaza.php
[REQUEST_TIME_FLOAT] => 1400091229.207
[REQUEST_TIME] => 1400091229
)
Array (
[USER] => http
[HOME] => /var/services/web
[FCGI_ROLE] => RESPONDER
[REDIRECT_HTTP_AUTHORIZATION] =>
[REDIRECT_MOD_X_SENDFILE_ENABLED] => yes
[REDIRECT_HTTPS] => on
[REDIRECT_SSL_TLS_SNI] => xxx
[REDIRECT_SSL_SERVER_S_DN_CN] => xxx
[REDIRECT_SSL_SERVER_S_DN_ST] => xxx
[REDIRECT_SSL_SERVER_S_DN_C] => xxx
[REDIRECT_SSL_SERVER_S_DN_L] => xxx
[REDIRECT_SSL_SERVER_S_DN_Email] => xxx
[REDIRECT_SSL_SERVER_I_DN_CN] => xxx
[REDIRECT_SSL_SERVER_I_DN_O] => xxx
[REDIRECT_SSL_SERVER_I_DN_OU] => xxx
[REDIRECT_SSL_SERVER_I_DN_ST] => xxx
[REDIRECT_SSL_SERVER_I_DN_C] => xxx
[REDIRECT_SSL_SERVER_I_DN_L] => xxx
[REDIRECT_SSL_SERVER_I_DN_Email] => xxx
[REDIRECT_SSL_VERSION_INTERFACE] => mod_ssl/2.2.27
[REDIRECT_SSL_VERSION_LIBRARY] => OpenSSL/1.0.1g-fips
[REDIRECT_SSL_PROTOCOL] => TLSv1.2
[REDIRECT_SSL_SECURE_RENEG] => true
[REDIRECT_SSL_COMPRESS_METHOD] => NULL
[REDIRECT_SSL_CIPHER] => ECDHE-RSA-AES256-SHA384
[REDIRECT_SSL_CIPHER_EXPORT] => false
[REDIRECT_SSL_CIPHER_USEKEYSIZE] => 256
[REDIRECT_SSL_CIPHER_ALGKEYSIZE] => 256
[REDIRECT_SSL_CLIENT_VERIFY] => NONE
[REDIRECT_SSL_SERVER_M_VERSION] => 3
[REDIRECT_SSL_SERVER_M_SERIAL] => 0333
[REDIRECT_SSL_SERVER_V_START] => Apr 11 16:32:35 2014 GMT
[REDIRECT_SSL_SERVER_V_END] => Jun 6 16:32:35 2016 GMT
[REDIRECT_SSL_SERVER_S_DN] => xxx
[REDIRECT_SSL_SERVER_I_DN] => xxx
[REDIRECT_SSL_SERVER_A_KEY] => rsaEncryption
[REDIRECT_SSL_SERVER_A_SIG] => sha256WithRSAEncryption
[REDIRECT_SSL_SESSION_ID] => xxx
[REDIRECT_HANDLER] => php5-fastcgi
[REDIRECT_STATUS] => 200
[MOD_X_SENDFILE_ENABLED] => yes
[HTTPS] => on
[SSL_TLS_SNI] => xxx
[HTTP_HOST] => xxx
[HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
[HTTP_COOKIE] => mailviewsplitterv=226; prefviewsplitter=266
[HTTP_USER_AGENT] => Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_2) AppleWebKit/537.75.14 (KHTML, like Gecko) Version/7.0.3 Safari/537.75.14
[HTTP_ACCEPT_LANGUAGE] => de-de
[HTTP_ACCEPT_ENCODING] => gzip, deflate
[HTTP_CONNECTION] => keep-alive
[PATH] => /bin:/sbin:/usr/bin:/usr/sbin:/usr/syno/bin:/usr/syno/sbin:/usr/local/bin:/usr/local/sbin
[SERVER_SIGNATURE] =>
[SERVER_SOFTWARE] => Apache
[SERVER_NAME] => xxx
[SERVER_ADDR] => xxx
[SERVER_PORT] => 443
[REMOTE_ADDR] => xxx
[color="#0000FF"][DOCUMENT_ROOT] => /var/services/web[/color]
[SERVER_ADMIN] => admin
[color="#0000FF"][SCRIPT_FILENAME] => /var/services/web/baikal/zaza.php[/color]
[REMOTE_PORT] => 56649
[REDIRECT_URL] => /baikal/zaza.php
[GATEWAY_INTERFACE] => CGI/1.1
[SERVER_PROTOCOL] => HTTP/1.1
[REQUEST_METHOD] => GET
[QUERY_STRING] =>
[color="#0000FF"][REQUEST_URI] => /baikal/zaza.php[/color]
[color="#0000FF"][SCRIPT_NAME] => /baikal/zaza.php[/color]
[ORIG_SCRIPT_FILENAME] => /php-fpm-handler
[ORIG_PATH_INFO] => /baikal/zaza.php
[ORIG_PATH_TRANSLATED] => /var/services/web/baikal/zaza.php
[ORIG_SCRIPT_NAME] => /php-fpm-handler.fcgi
[PHP_SELF] => /baikal/zaza.php
[REQUEST_TIME_FLOAT] => 1400091652.5145
[REQUEST_TIME] => 1400091652 )
Array (
[USER] => http
[HOME] => /var/services/web
[FCGI_ROLE] => RESPONDER
[REDIRECT_HTTP_AUTHORIZATION] =>
[REDIRECT_MOD_X_SENDFILE_ENABLED] => yes
[REDIRECT_HANDLER] => php5-fastcgi
[REDIRECT_STATUS] => 200
[MOD_X_SENDFILE_ENABLED] => yes
[HTTP_HOST] => nessie
[HTTP_USER_AGENT] => Mozilla/5.0 (Windows NT 6.1; WOW64; rv:29.0) Gecko/20100101 Firefox/29.0
[HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
[HTTP_ACCEPT_LANGUAGE] => de,en-US;q=0.7,en;q=0.3
[HTTP_ACCEPT_ENCODING] => gzip, deflate
[HTTP_DNT] => 1
[HTTP_CONNECTION] => keep-alive
[PATH] => /bin:/sbin:/usr/bin:/usr/sbin:/usr/syno/bin:/usr/syno/sbin:/usr/local/bin:/usr/local/sbin
[SERVER_SIGNATURE] =>
[SERVER_SOFTWARE] => Apache
[SERVER_NAME] => nessie
[SERVER_ADDR] => 192.168.2.11
[SERVER_PORT] => 80
[REMOTE_ADDR] => 192.168.2.110
[DOCUMENT_ROOT] => /var/services/web
[SERVER_ADMIN] => admin
[SCRIPT_FILENAME] => /var/services/web/baikal/zaza.php
[REMOTE_PORT] => 50328
[REDIRECT_URL] => /baikal/zaza.php
[GATEWAY_INTERFACE] => CGI/1.1
[SERVER_PROTOCOL] => HTTP/1.1
[REQUEST_METHOD] => GET
[QUERY_STRING] =>
[REQUEST_URI] => /baikal/zaza.php
[SCRIPT_NAME] => /baikal/zaza.php
[ORIG_SCRIPT_FILENAME] => /php-fpm-handler
[ORIG_PATH_INFO] => /baikal/zaza.php
[ORIG_PATH_TRANSLATED] => /var/services/web/baikal/zaza.php
[ORIG_SCRIPT_NAME] => /php-fpm-handler.fcgi
[PHP_SELF] => /baikal/zaza.php
[REQUEST_TIME_FLOAT] => 1400095678.8532
[REQUEST_TIME] => 1400095678
)
Array
(
[USER] => http
[HOME] => /var/services/web
[FCGI_ROLE] => RESPONDER
[REDIRECT_HTTP_AUTHORIZATION] =>
[REDIRECT_MOD_X_SENDFILE_ENABLED] => yes
[REDIRECT_HANDLER] => php5-fastcgi
[REDIRECT_STATUS] => 200
[MOD_X_SENDFILE_ENABLED] => yes
[HTTP_HOST] => [hostname]
[HTTP_USER_AGENT] => [useragent]
[HTTP_ACCEPT] => text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
[HTTP_ACCEPT_LANGUAGE] => en-US,en;q=0.5
[HTTP_ACCEPT_ENCODING] => gzip, deflate
[HTTP_COOKIE] => [somecookiestuff]
[HTTP_CONNECTION] => keep-alive
[PATH] => /bin:/sbin:/usr/bin:/usr/sbin:/usr/syno/bin:/usr/syno/sbin:/usr/local/bin:/usr/local/sbin
[SERVER_SIGNATURE] =>
[SERVER_SOFTWARE] => Apache
[SERVER_NAME] => [hostname]
[SERVER_ADDR] => [address]
[SERVER_PORT] => 80
[REMOTE_ADDR] => [address]
[DOCUMENT_ROOT] => /var/services/web
[SERVER_ADMIN] => admin
[SCRIPT_FILENAME] => /var/services/web/baikal/zaza.php
[REMOTE_PORT] => 54839
[REDIRECT_URL] => /baikal/zaza.php
[GATEWAY_INTERFACE] => CGI/1.1
[SERVER_PROTOCOL] => HTTP/1.1
[REQUEST_METHOD] => GET
[QUERY_STRING] =>
[REQUEST_URI] => /baikal/zaza.php
[SCRIPT_NAME] => /baikal/zaza.php
[ORIG_SCRIPT_FILENAME] => /php-fpm-handler
[ORIG_PATH_INFO] => /baikal/zaza.php
[ORIG_PATH_TRANSLATED] => /var/services/web/baikal/zaza.php
[ORIG_SCRIPT_NAME] => /php-fpm-handler.fcgi
[PHP_SELF] => /baikal/zaza.php
[REQUEST_TIME_FLOAT] => 1400098690.6823
[REQUEST_TIME] => 1400098690
)
$sHttpBaseUrl = self::rmProjectContext($sHttpBaseUrl);
$sHttpBaseUrl = $sHttpBaseUrl."baikal/";
So this is what I have with DSM 5.0-4482 and a perfectly working Baïkal environment.
The first block is when calling https://subdomain.domain.tld/zaza.php
Code:Array ( [...] [DOCUMENT_ROOT] => /var/services/web[color="#0000FF"]/baikal[/color] [REQUEST_URI] => /zaza.php [...] )
and the second block is when calling https://domain.tld/baikal/zaza.php:
Code:Array ( [...] [DOCUMENT_ROOT] => /var/services/web [REQUEST_URI] => /[color="#0000FF"]baikal/[/color]zaza.php [...]
Actually, this is looking good.Rich (BBCode):Array ( [...] [DOCUMENT_ROOT] => /var/services/web [REQUEST_URI] => /baikal/zaza.php )
For the sake of completeness:
My DSM version: 5.0-4482
After customizing $sHttpBaseUrl in Framework.php* there were no issues with the installation nor the web admin frontend.
Wenn du das Forum hilfreich findest oder uns unterstützen möchtest, dann gib uns doch einfach einen Kaffee aus.
Als Dankeschön schalten wir deinen Account werbefrei.