Pomoc Instalacja SUPLA SCRTIPS -

slavo_s2k

Entry Technician
Q Associate
3 Maj 2017
90
1
12
8
41
QNAP
TS-x70 Pro
Ethernet
1 GbE
Próbuję zainstalować SUPLA-SCRIPTS wg instrukcji fracz/supla-scripts

mam zainstalowane Appache & PHP 7.3 ,

stałem na punkcie 5.IV: Set the phpPath to where your php executable can be found, e.g. /usr/bin/php. Find it with which php.

nie wiem jaką ścieżkę ustawić, w /usr/bin nie ma folderu php, wpisując which php nie otrzymuję informacji, polecenie wykonuje się bez błedu, ale nie zwraca wyniku

Wersja oprogramowania Firmware: 4.5.2.1594
Model serwera: QNAP TS-251
 
dzięki, poszło, ale teraz wykonując:
Kod:
/usr/local/apache/bin/php /var/www/supla-scripts/supla-scripts init
mam następujące błędy:
Kod:
[I]F[/I]atal error: Uncaught InvalidArgumentException: Unsupported driver []
 in /var/www/supla-scripts/backend/vendor/illuminate/database/Connectors/ConnectionFactory.php:286
Stack trace:
#0 /var/www/supla-scripts/backend/vendor/illuminate/database/Connectors/Connecti                                                                             onFactory.php(77): Illuminate\Database\Connectors\ConnectionFactory->createConnection(NULL, Object(Closure), NULL, '', Array)
#1 /var/www/supla-scripts/backend/vendor/illuminate/database/Connectors/Connecti                                                                             onFactory.php(51): Illuminate\Database\Connectors\ConnectionFactory->createSingl                                                                             eConnection(Array)
#2 /var/www/supla-scripts/backend/vendor/illuminate/database/DatabaseManager.php                                                                         
(116): Illuminate\Database\Connectors\ConnectionFactory->make(Array, 'default')
#3 /var/www/supla-scripts/backend/vendor/illuminate/database/DatabaseManager.php                                                                         
(71): Illuminate\Database\DatabaseManager->makeConnection('default')
#4 /var/www/supla-scripts/backend/vendor/illuminate/database/Eloquent/Model.php(                                                                         
1041): Illuminate\Database\DatabaseManager->connection('default')
#5 /var/www/supl in /var/www/supla-scripts/backend/vendor/illuminate/database/Co                                                                             nnectors/ConnectionFactory.php on line 286
 
Robiłem wszystko po kolei wg tej instrukcji, wszystko poszło bezbłędnie do tego momentu,
edytowałem plik /var/www/supla-scripts/var/config/config.json zgodnie z instrukcją - taką mam obecnie zawartość pliku config.json:

Kod:
{
  "displayErrorDetails": false,
  "readOnly": false,
  "apiCache": true,
  "clearLogsOlderThan": "1week",
  "phpPath": "/usr/local/apache/bin",
  "intervals": {
    "thermostat": 5,
    "clearLogs": 60
  },
  "requestQuota": {
    "perIpPerMinute": 60
  },
  "failuresToDisable": {
    "thermostat": 60
  },
  "db": {
    "driver": "mysql",
    "database": "suplascripts",
    "host": "localhost",
    "username": "suplascripts",
    "password": "xxxxxxxxxxxx",
    "charset": "utf8",
    "prefix": ""
  },
  "jwt": {
    "key": "!,~x]um`X")%35vU",
    "expirationTime": 3600,
    "expirationTimeRememberMe": 604800,
    "expirationTimeClient": 157680000,
    "iss": "https://supla.fracz.com"
  },
  "metrics": {
    "enabled": false,
    "instanceName": "root",
    "host": "metrics",
    "statsd_port": 8125
  }
}
 
taki sam efekt:
php.jpg

ten płatny ze sklepu ? on nie ma ścieżek gdzie indziej ? /share/CACHEDEV1_DATA/.qpkg/Apache73/ ?

tak, ten płatny ze sklepu
faktycznie coś jest pod tą ścieżką :)

tylko gdzie mam coś zmienić?
w "phpPath": "/usr/local/apache/bin" ?

ścieżkę polecenia ułożyć inaczej /usr/local/apache/bin/php /var/www/supla-scripts/supla-scripts init
?
 
zmienić ścieżki do php na te z paczki QPKG (ten systemowe są bidne)
bo inaczej nie będziesz miał obsługi baz danych za pomocą modułów

czyli "phpPath": "/usr/local/apache/bin" na /share/CACHEDEV1_DATA/.qpkg/Apache73/ ?

a czemu nie odpalisz tego z dockera ?


Bo na forum SUPLI otrzymałem odpowiedź:
Wersji dockerowej na Qnapa nie ma, możesz spróbować klasycznej instalacji:
fracz/supla-scripts ... classic.md
 
Bo na forum SUPLI otrzymałem odpowiedź:
1. czy ktoś sprawdził to ?
2. Docker to docker , tu nie ma modyfikacji QNAP/Synlogy/Debian - działa tak samo ..

czyli "phpPath": "/usr/local/apache/bin" na /share/CACHEDEV1_DATA/.qpkg/Apache73/ ?
Nie mam tej paczki .. a nie ma tam czasem folderu /share/CACHEDEV1_DATA/.qpkg/Apache73/bin ? wewnątrz pownienen byc php
 
1. tak twierdzą na forum SUPLI, moja wiedza w tym zakresie jest zbyt mała by podważać czyjeś kompetencje :)
2. instrukacja instalacji docker jest tutaj ale nie wiem jak się do tego zabrać na QNAP

Nie mam tej paczki .. a nie ma tam czasem folderu /share/CACHEDEV1_DATA/.qpkg/Apache73/bin ? wewnątrz pownienen byc php

nie ma tam pliku php, zawartość folderu /bin:
Kod:
[*                                   magick-script@
2to3@                                MagickWand-config*
2to3-3.7*                            makealias*
ab*                                  makeconv*
acyclic*                             manpages/
addgnupghome*                        mariadb_config*
addpart*                             mcookie*
aescrypt2*                           mcrypt*
affixcompress*                       md5sum*
agentxtrap*                          mdecrypt@
agetty*                              memcapable*
analyze*                             memcat*
animate@                             memcp*
annotate*                            memdump*
apachectl*                           memerror*
applygnupgdefaults*                  memexist*
apr-1-config*                        memflush*
apu-1-config*                        memparse*
apxs*                                memping*
argon2*                              memrm*
asn1Coding*                          memslap*
asn1Decoding*                        memstat*
asn1Parser*                          memtest*
aspell*                              memtouch*
aspell-import*                       mesg*
at*                                  mib2c*
attr*                                mib2c-update*
autopoint*                           mini_client*
b2sum*                               mk_cmds*
badblocks*                           mkdir*
base32*                              mke2fs*
base64*                              mkfifo*
basename*                            mkfs*
bcomps*                              mkfs.bfs*
bdftogd*                             mkfs.cramfs*
benchmark*                           mkfs.ext2*
blkdiscard*                          mkfs.ext3*
blkid*                               mkfs.ext4*
blockdev*                            mkfs.minix*
brotli*                              mkhomedir_helper*
bsqldb*                              mklost+found*
bsqlodbc*                            mknod*
bunzip2*                             mkswap*
bzcat*                               mktemp*
bzcmp*                               mlogc*
bzdiff*                              mlogc-batch-load.pl*
bzegrep*                             mm2gv*
bzfgrep*                             model/
bzgrep*                              modsec-rules-check*
bzip2*                               mod_wsgi-express.bz2*
bzip2recover.bz2*                    mogrify@
bzless*                              montage@
bzmore*                              more*
cairo-sphinx*                        mount*
cairo-trace*                         mountpoint*
cal*                                 mp2bug*
callgrind_annotate*                  mpicalc*
callgrind_control*                   mpi_demo*
captest*                             msgattrib*
captoinfo@                           msgcat*
cat*                                 msgcmp*
ccomps*                              msgcomm*
cert_app*                            msgconv*
certbot*                             msgen*
cert_req*                            msgexec*
certtool*                            msgfilter*
cert_write*                          msgfmt*
cfdisk*                              msggrep*
cg_annotate*                         msginit*
cg_diff*                             msgmerge*
cg_merge*                            msgunfmt*
chacl*                               msguniq*
chardetect*                          ms_print*
chattr*                              munch*
chcon*                               mv*
chcpu*                               nal_echo*
checkbandwidth*                      nal_hose*
checkgid*                            nal_ping*
chfn*                                nal_pong*
chgrp*                               nal_proxy*
chmem*                               nal_test*
chmod*                               namei*
chmorph*                             ncurses6-config*
choom*                               ncursesw6-config*
chown*                               neato@
chroot*                              netcap*
chrt*                                net-snmp-cert*
chsh*                                net-snmp-config*
circo@                               net-snmp-create-v3-user*
cjpeg*                               nettle-hash*
cksum*                               nettle-lfib-stream*
clear*                               nettle-pbkdf2*
client*                              ngettext*
cluster*                             nice*
clusterdb*                           nl*
cmp*                                 nohup*
col*                                 nologin*
colcrt*                              nop*
colrm*                               nproc*
column*                              npth-config*
comm*                                nsenter*
compare@                             numfmt*
compile_et*                          ocsptool*
composer*                            od*
composite@                           odbc_config*
conjure@                             odbcinst*
convert@                             oid2name*
corelist*                            onig-config*
cp*                                  openssl*
cpan*                                opj_compress*
cracklib-check*                      opj_decompress*
cracklib-format*                     opj_dump*
cracklib-packer*                     osage@
cracklib-unpacker*                   osql*
create-cracklib-dict*                p11-kit*
createdb*                            p11tool*
createuser*                          pal2rgb*
c_rehash*                            pam_tally*
crl_app*                             pam_tally2*
croco-0.6-config*                    pam_timestamp_check*
crypt_and_hash*                      partx*
csplit*                              paste*
csslint-0.6*                         patchwork@
ctrlaltdel*                          pathchk*
curl*                                pcre-config*
curl-config*                         pcregrep*
cut*                                 pcretest*
cwebp*                               pear*
danetool*                            peardev*
datacopy*                            pecl*
date*                                pem2der*
db_archive*                          perl*
db_checkpoint*                       perl5.26.2*
db_deadlock*                         perlbug*
db_dump*                             perldoc*
db_hotbackup*                        perlivp*
db_load*                             perlthanks*
db_log_verify*                       pg_archivecleanup*
dbmmanage*                           pg_basebackup*
db_printlog*                         pgbench*
db_recover*                          pg_config*
db_replicate*                        pg_controldata*
db_stat*                             pg_ctl*
db_tuner*                            pg_dump*
db_upgrade*                          pg_dumpall*
dbus-cleanup-sockets*                pg_isready*
dbus-daemon*                         pg_receivewal*
dbus-launch*                         pg_recvlogical*
dbus-monitor*                        pgrep*
dbus-run-session*                    pg_resetwal*
dbus-send*                           pg_restore*
dbus-test-tool*                      pg_rewind*
dbus-update-activation-environment*  pg_standby*
dbus-uuidgen*                        pg_test_fsync*
db_verify*                           pg_test_timing*
dc_client*                           pg_upgrade*
dc_server*                           pg_verify_checksums*
dc_snoop*                            pg_waldump*
dc_test*                             phar@
dd*                                  phar.phar*
debugfs*                             php@
defncopy*                            php-cgi@
delpart*                             php-config@
derb*                                phpdbg@
df*                                  phpize@
dh_client*                           piconv*
dh_genprime*                         pidof*
dh_server*                           ping*
diff*                                ping6*
diff3*                               pinky*
diffimg*                             pip*
dijkstra*                            pip3*
dir*                                 pip3.7*
dircolors*                           piper*
dirmngr*                             pivot_root*
dirmngr-client*                      pkcs1-conv*
dirname*                             pk_decrypt*
display@                             pk_encrypt*
distro*                              pkgdata*
django-admin*                        pkill*
django-admin.py*                     pk_sign*
djpeg*                               pk_verify*
dltest*                              pl2pm*
dmesg*                               pluginviewer*
dnsdomainname*                       pmap*
dot*                                 pngfix*
dot2gxl@                             png-fix-itxt*
dot_builtins*                        pngtogd*
dropdb*                              pngtogd2*
dropuser*                            pod2html*
dtls_client*                         pod2man*
dtls_server*                         pod2text*
du*                                  pod2usage*
dumpe2fs*                            podchecker*
dumpsexp*                            podselect*
dwebp*                               postgres*
e2freefrag*                          postmaster@
e2fsck*                              ppm2tiff*
e2image*                             pr*
e2label*                             precat*
e2mmpstatus*                         preunzip*
e2scrub*                             prezip*
e2scrub_all*                         prezip-bin*
e2undo*                              printenv*
e4crypt*                             printf*
e4defrag*                            prlimit*
easy_install-3.7*                    prove*
echo*                                prune*
ecpg*                                ps*
edgepaint*                           pscap*
eject*                               psicc*
enc2xs*                              psktool*
encguess*                            psl*
enchant*                             pspell-config*
enchant-2*                           psql*
enchant-lsmod*                       ptar*
enchant-lsmod-2*                     ptardiff*
encode_keychange*                    ptargrep*
env*                                 ptx*
envsubst*                            pwd*
envvars                              pwdx*
envvars-std                          __pycache__/
erb*                                 pydoc3@
event_rpcgen.py*                     pydoc3.7*
expand*                              python3@
expr*                                python3.7*
exrenvmap*                           python3.7-config@
exrheader*                           python3.7m*
exrmakepreview*                      python3.7m-config*
exrmaketiled*                        python3-config@
exrmultipart*                        pyvenv@
exrmultiview*                        pyvenv-3.7*
exrstdattr*                          qt-faststart*
factor*                              rake*
fallocate*                           raw*
false*                               raw2tiff*
fax2ps*                              rcp*
fax2tiff*                            rdjpgcom*
fc-cache*                            rdoc*
fc-cat*                              re2c*
fc-conflist*                         readlink*
fcgistarter*                         readme.txt*
fc-list*                             readprofile*
fc-match*                            realpath*
fc-pattern*                          recode-sr-latin*
fc-query*                            reindexdb*
fc-scan*                             rename*
fc-validate*                         renice*
fdformat*                            req_app*
fdisk*                               reset@
fdp@                                 resize2fs*
ffmpeg*                              resizepart*
ffmpeg-10bit*                        rev*
ffprobe*                             rexec*
fftw-wisdom*                         rfkill*
fftw-wisdom-to-conf*                 ri*
file*                                rlogin*
filecap*                             rm*
filefrag*                            rmdir*
fincore*                             rotatelogs*
find*                                rsa_decrypt*
findfs*                              rsa_encrypt*
findmnt*                             rsa_genkey*
fisql*                               rsa_sign*
fixproc*                             rsa_verify*
flock*                               rsh*
fmt*                                 rsync*
fold*                                rtcwake*
fping*                               rtmpdump*
free*                                rtmpgw*
freebcp*                             rtmpsrv*
freetype-config*                     rtmpsuck*
fribidi*                             ruby*
fsck*                                rules-updater.pl*
fsck.cramfs*                         runcon*
fsck.ext2*                           runuser*
fsck.ext3*                           run-with-aspell*
fsck.ext4*                           sample*
fsck.minix*                          saslauthd*
fsfreeze*                            sccmap*
fstrim*                              sclient*
ftp*                                 script*
fuse2fs*                             scriptreplay*
fusermount*                          sdiff*
gapplication*                        selftest*
gc*                                  seq*
gd2copypal*                          server*
gd2togif*                            server_compliance_test*
gd2topng*                            setarch*
gdbm_dump*                           setfacl*
gdbm_load*                           setfattr*
gdbmtool*                            setsid*
gdbus*                               setterm*
gdbus-codegen*                       sexp-conv*
gdcmpgif*                            sfdisk*
gdk-pixbuf-csource*                  sfdp@
gdk-pixbuf-pixdata*                  sha1sum*
gdk-pixbuf-query-loaders*            sha224sum*
gdk-pixbuf-thumbnailer*              sha256sum*
gdparttopng*                         sha384sum*
gdtopng*                             sha512sum*
gem*                                 shar*
genbrk*                              shasum*
genccode*                            shred*
gencfu*                              shuf*
gencmn*                              sim_client*
gencnval*                            sim_server*
gendict*                             sleep*
gen_entropy*                         slencheck*
generic_sum*                         snmp-bridge-mib*
gen_key*                             snmpbulkget*
gennorm2*                            snmpbulkwalk*
gen_random_ctr_drbg*                 snmpcheck*
gen_random_havege*                   snmpconf*
genrb*                               snmpd*
gensprep*                            snmpdelta*
geoiplookup*                         snmpdf*
geoiplookup6*                        snmpget*
getfacl*                             snmpgetnext*
getfattr*                            snmpinform@
getopt*                              snmpnetstat*
gettext*                             snmpping*
gettextize*                          snmpps*
gettext.sh*                          snmpset*
gif2rgb*                             snmpstatus*
gifbuild*                            snmptable*
gifclrmp*                            snmptest*
gifecho*                             snmptop@
giffix*                              snmptranslate*
gifinto*                             snmptrap*
giftext*                             snmptrapd*
giftogd2*                            snmpusm*
giftool*                             snmpvacm*
gio*                                 snmpwalk*
gio-querymodules*                    sort*
git*                                 spell*
git-cvsserver*                       splain*
git-receive-pack*                    split*
git-shell*                           sqlformat*
git-upload-archive*                  sqlite3*
git-upload-pack*                     srptool*
glib-compile-resources*              sserver*
glib-compile-schemas*                ssl_cert_test*
glib-genmarshal*                     ssl_client1*
glib-gettextize*                     ssl_client2*
glib-mkenums*                        ssl_fork_server*
gm*                                  ssl_mail_client*
gml2gv*                              ssl_pthread_server*
gnutls-cli*                          ssl_server*
gnutls-cli-debug*                    stat*
gnutls-serv*                         stdbuf*
gobject-query*                       stream@
gpg*                                 strerror*
gpg-agent*                           stty*
gpgconf*                             su*
gpg-connect-agent*                   suexec*
gpg-error*                           sulogin*
gpg-error-config*                    sum*
gpgme-config*                        svn*
gpgme-json*                          svnadmin*
gpgme-tool*                          svnbench*
gpgparsemail*                        svndumpfilter*
gpgrt-config*                        svnfsfs*
gpgscm*                              svnlook*
gpgsm*                               svnmucc*
gpgtar*                              svnrdump*
gpgv*                                svnserve*
gpg-wks-server*                      svnsync*
GPLv3.txt*                           svnversion*
GraphicsMagick-config*               swaplabel*
GraphicsMagick++-config*             swapoff*
GraphicsMagickWand-config*           swapon*
graphml2gv*                          switch_root*
gresource*                           sync*
groups*                              sysctl*
gsettings*                           tab2space*
gss-client*                          tabs*
gss-server*                          tac*
gtester*                             tail*
gtester-report*                      tar*
gv2gml*                              taskset*
gv2gxl@                              tcamgr*
gvcolor*                             tcamttest*
gvgen*                               tcatest*
gvmap*                               tcbmgr*
gvmap.sh*                            tcbmttest*
gvpack*                              tcbtest*
gvpr*                                tcfmgr*
gxl2dot@                             tcfmttest*
gxl2gv*                              tcftest*
h2ph*                                tchmgr*
h2xs*                                tchmttest*
hb-ot-shape-closure*                 tchtest*
hb-shape*                            tctmgr*
hb-subset*                           tctmttest*
hb-view*                             tcttest*
head*                                tcucodec*
hello*                               tcumttest*
hello_client*                        tcutest*
hello_server*                        tdspool*
hexdump*                             tee*
hmac256*                             telnet*
hostid*                              test*
hostname*                            testsaslauthd*
htcacheclean*                        tftp*
htdbm*                               tic*
htdigest*                            tidy*
htpasswd*                            tiff2bw*
httpd*                               tiff2pdf*
httxt2dbm*                           tiff2ps*
hunspell*                            tiff2rgba*
hunzip*                              tiffcmp*
hwclock*                             tiffcp*
hzip*                                tiffcrop*
i386@                                tiffdither*
iconv*                               tiffdump*
icu-config*                          tiffinfo*
icuinfo*                             tiffmedian*
icupkg*                              tiffset*
id*                                  tiffsplit*
identify@                            tificc*
idle3@                               timeout*
idle3.7*                             tjbench*
idn*                                 tkmib*
idn2*                                tload*
ifconfig*                            tnef*
imap/                                toe*
imgcmp*                              touch*
imginfo*                             tput*
import@                              tr*
infocmp*                             traceroute*
infotocap@                           transicc*
initdb*                              traptoemail*
install*                             tred*
instmodsh*                           true*
iodbc-config*                        truncate*
iodbctest*                           trust*
iodbctestw*                          tset*
ionice*                              tsort*
ipcmk*                               tsql*
ipcrm*                               tty*
ipcs*                                tune2fs*
ipf-mod.pl*                          twopi@
irb*                                 type1afm*
isosize*                             uconv*
ispell*                              udp_proxy*
ispellaff2myspell*                   ul*
isql*                                ulockmgr_server*
iusql*                               umount*
jasper*                              uname*
join*                                uname26@
jpegtran*                            unbound*
jpgicc*                              unbound-anchor*
json_pp*                             unbound-checkconf*
json_reformat*                       unbound-control*
json_verify*                         unbound-control-setup*
jws*                                 unbound-host*
k5srvutil*                           unexpand*
kadmin*                              unflatten*
kadmind*                             uniq*
kadmin.local*                        unix_chkpwd*
kbxutil*                             unix_update*
kdb5_util*                           unlink*
kdestroy*                            unlzma@
key_app*                             unmunch*
kill*                                unrar*
kinit*                               unshar*
klist*                               unshare*
kpasswd*                             unxz@
kprop*                               updatedb*
kpropd*                              uptime*
kproplog*                            users*
krb5-config*                         utmpdump*
krb5kdc*                             uuclient*
krb5-send-pr*                        uudecode*
ksba-config*                         uuencode*
ksu*                                 uuidd*
kswitch*                             uuidgen*
ktutil*                              uuidparse*
kvno*                                uuserver*
last*                                vacuumdb*
lastb@                               vacuumlo*
ldapadd@                             valgrind*
ldapcompare*                         valgrind-di-server*
ldapdelete*                          valgrind-listener*
ldapexop*                            vdir*
ldapmodify*                          vgdb*
ldapmodrdn*                          vmstat*
ldappasswd*                          vpxdec*
ldapsearch*                          vpxenc*
ldapurl*                             w*
ldapwhoami*                          wall*
ldattach*                            watchgnupg*
libassuan-config*                    wbxml2xml*
libgcrypt-config*                    wc*
libmcrypt-config*                    wdctl*
libnetcfg*                           webpng*
libpng12-config*                     whereis*
libpng16-config*                     which*
libpng-config@                       who*
libtool*                             whoami*
libtoolize*                          whois*
link*                                wipefs*
linkicc*                             wordforms*
linux32@                             wordlist2hunspell*
linux64@                             word-list-compress*
ln*                                  wrjpgcom*
locate*                              x86_64@
logger*                              x86_64-QNAP_FW43-linux-gnu-php*
login*                               x86_64-QNAP_FW43-linux-gnu-php-cgi*
logname*                             x86_64-QNAP_FW43-linux-gnu-php-config*
logresolve*                          x86_64-QNAP_FW43-linux-gnu-phpdbg*
logsave*                             x86_64-QNAP_FW43-linux-gnu-phpize*
look*                                xargs*
losetup*                             xgettext*
ls*                                  xml2-config*
lsattr*                              xml2wbxml*
lsblk*                               xmlcatalog*
lscpu*                               xmllint*
lsipc*                               xmlrpc-c-config*
lslocks*                             xmlwf*
lslogins*                            xslt-config*
lsmem*                               xsltproc*
lsns*                                xsubpp*
lua*                                 xz*
luac*                                xzcat@
lynx*                                xzcmp@
lzcat@                               xzdec*
lzcmp@                               xzdiff*
lzdiff@                              xzegrep@
lzegrep@                             xzfgrep@
lzfgrep@                             xzgrep*
lzgrep@                              xzless*
lzless@                              xzmore*
lzma@                                yat2m*
lzmadec*                             yes*
lzmainfo*                            zipcmp*
lzmore@                              zipdetails*
magick*                              zipmerge*
Magick++-config*                     ziptool*
MagickCore-config*                   zramctl*
 

Użytkownicy znaleźli tą stronę używając tych słów:

  1. supla
  2. Install SVN
  3. memtest
  4. pecl