bon, j'ai chi.... un truc sous VI, mais du coup le script est passé je ne sais pas comment :
Il a bien rajouté QApache dans l'AppCenter.
Par contre, il gueule pour le lien en https
du coup, l'url http://172.20.22.2:88/Apache
ne fonctionne pas ni en http ni https
+ /bin/echo 'Install QNAP package on TS-NAS...'
Install QNAP package on TS-NAS...
+ /bin/grep /mnt/HDA_ROOT /proc/mounts
+ arch_ok
++ /bin/uname -m
+ local cpu_arch=i686
++ /sbin/getcfg '' Platform -f /etc/platform.conf
+ local reject_platform=X86_ATOM
++ /usr/bin/expr match X86_ATOM X86_EVANSPORT
+ '[' 0 == 0 ']'
++ /usr/bin/expr match i686 'i.86\|x86_64'
+ '[' 4 -ne 0 ']'
+ find_base
+ '[' -z '' ']'
+ BASE_GROUP='/share/HDA_DATA /share/HDB_DATA /share/HDC_DATA /share/HDD_DATA /share/HDE_DATA /share/HDF_DATA /share/HDG_DATA /share/HDH_DATA /share/HDI_DATA /share/HDJ_DATA /share/HDK_DATA /share/HDL_DATA /share/MD0_DATA /share/MD1_DATA /share/MD2_DATA /share/MD3_DATA'
++ /sbin/getcfg Public path -f /etc/config/smb.conf
+ publicdir=/share/MD0_DATA/Public
+ '[' '!' -z /share/MD0_DATA/Public ']'
+ '[' -d /share/MD0_DATA/Public ']'
++ /bin/echo /share/MD0_DATA/Public
++ /bin/cut -d / -f 2
+ publicdirp1=share
++ /bin/echo /share/MD0_DATA/Public
++ /bin/cut -d / -f 3
+ publicdirp2=MD0_DATA
++ /bin/echo /share/MD0_DATA/Public
++ /bin/cut -d / -f 4
+ publicdirp3=Public
+ '[' '!' -z share ']'
+ '[' '!' -z MD0_DATA ']'
+ '[' '!' -z Public ']'
+ '[' -d /share/MD0_DATA/Public ']'
+ QPKG_BASE=/share/MD0_DATA
+ '[' -z /share/MD0_DATA ']'
+ '[' -z /share/MD0_DATA ']'
+ QPKG_INSTALL_PATH=/share/MD0_DATA/.qpkg
+ QPKG_DIR=/share/MD0_DATA/.qpkg/
+ return 0
+ _EXTRACT_DIR=/share/MD0_DATA/.qpkg/.tmp
+ /bin/mkdir -p /share/MD0_DATA/.qpkg/.tmp
+ script_len=2807
+ /bin/dd if=Qapache_2.4.23.0_x86.qpkg bs=2807 skip=1
+ /bin/tar -xzv -C /share/MD0_DATA/.qpkg/.tmp
+ /bin/tar -xO
./
./package_routines
./qinstall.sh
./qpkg.cfg
++ /usr/bin/expr 2807 + 20480
+ offset=23287
+ /bin/dd if=Qapache_2.4.23.0_x86.qpkg bs=23287 skip=1
+ /bin/cat
+ /bin/dd bs=1024 count=1282733 of=/share/MD0_DATA/.qpkg/.tmp/data.tar.gz
56405+1 records in
56405+1 records out
1282732+1 records in
1282732+1 records out
++ /usr/bin/expr 23287 + 1313518451
+ offset=1313541738
+ cd /share/MD0_DATA/.qpkg/.tmp
+ /bin/sh qinstall.sh
Qapache 2.4.23.0 is already installed. Setup will now perform package upgrading.
[Sat Jun 09 18:15:11.539832 2018] [so:warn] [pid 29652:tid 3071404624] AH01574: module php7_module is already loaded, skipping
AH00526: Syntax error on line 247 of /share/MD0_DATA/.qpkg/Qapache/etc/httpd.conf:
DocumentRoot '/share/htdocs' is not a directory, or is not readable
qinstall.sh: line 334: [: -gt: unary operator expected
Firmware check is fine.
Link service start/stop script: Qapache.sh
Set QPKG information in /etc/config/qpkg.conf
direcotry htdocs exists in your share
file index.html exists in your share htdocs
file test.php exists in your share htdocs
directory htdocs/cgi-bin exists in your share
Apache admin exists in htdocs
server.crt file exists
[Sat Jun 09 18:20:02.380482 2018] [so:warn] [pid 717:tid 3071392336] AH01574: module php7_module is already loaded, skipping
AH00526: Syntax error on line 247 of /share/MD0_DATA/.qpkg/Qapache/etc/httpd.conf:
DocumentRoot '/share/htdocs' is not a directory, or is not readable
[App Center] Qapache 2.4.23.0 has been installed in /share/MD0_DATA/.qpkg/Qapache.
[App Center] Qapache enabled.
+ /bin/rm -fr /share/MD0_DATA/.qpkg/.tmp
+ exit 10