Free domotica! › Forums › Report a bug › DSM Version 6 + Pulsestation Problem
Tagged: DSM 6 + Pulsestation php56
- This topic has 39 replies, 15 voices, and was last updated 4 years, 10 months ago by
K.Rens.
-
AuthorPosts
-
June 16, 2016 at 2:04 pm #3490
francois.jolivet@yahoo.fr
ParticipantBONJOUR,
problème depuis le passage à dsm6 ; Pulsestation ne separt pas (status = arrêté).
J’ai passé les commandes :
sudo mv /usr/bin/php /usr/bin/phpORIG
sudo ln -s /volume1/@appstore/PHP5.6/usr/local/bin/php56 /usr/local/bin/phpVoici les messages de retour de Putty :
login as: admin
admin@192.168.1.113’s password:
Could not chdir to home directory /var/services/homes/admin: No such file or directory
admin@DiskStation:/$ sudo mv /usr/bin/php /usr/bin/phpORIG
Password:
mv: cannot stat ‘/usr/bin/php’: No such file or directory
admin@DiskStation:/$ sudo ln -s /volume1/@appstore/PHP5.6/usr/local/bin/php56 /usr/local/bin/php
ln: failed to create symbolic link ‘/usr/local/bin/php’: File existsQue dois-je faire ?
Cordialement
François JolivetJune 16, 2016 at 4:49 pm #3491Miss Laura
ModeratorCan you try running following 2 commands?
sudo mv /usr/local/bin/php /usr/bin/phpORIG sudo ln -s /volume1/@appstore/PHP5.6/usr/local/bin/php56 /usr/local/bin/php
I’ve put local in the first command.
Fyi: don’t look at the status of the package inside DSM!
Just try to open the url and probably PulseStation is already running.DSM can no longer see the status of our package, whether it’s running or not.
-
This reply was modified 4 years, 10 months ago by
Miss Laura.
Have fun,
LauraJune 16, 2016 at 7:02 pm #3493nerisson
ParticipantJe dois prévenir: la manip de modifier PHP ci-dessus a pour conséquence de casser le backup Amazon Glacier.
A priori le package Glacier utilise également PHP et retourne systématiquement une erreur après avoir modifié PHP.June 16, 2016 at 8:13 pm #3494K.Rens
KeymasterQuelle erreur?
Le modification que je propose est juste remplacer php avec une version avec plus de possibilités.
Normalement ça ne peut pas casser Glacier?Kind regards,
K.RensJune 16, 2016 at 8:57 pm #3495nerisson
ParticipantVia l’IHM c’est un message d’erreur générique.
En ligne de commande voici l’erreur:
PHP Warning: require(): Unable to find the wrapper “phar” – did you forget to enable it when you configured PHP? in /volume1/@appstore/GlacierBackup/usr/lib/aws/aws.phar on line 3Si je remets l’ancien PHP cela refonctionne.
June 16, 2016 at 8:59 pm #3496francois.jolivet@yahoo.fr
Participantok new commands (with local) seem to work well
But with service zwave, here is the log
2016-06-16 20:38:58.173 Always, OpenZwave Version 1.3.0 Starting Up
2016-06-16 20:38:58.175 Info, Setting Up Provided Network Key for Secure Communications
2016-06-16 20:38:58.175 Warning, Failed – Network Key Not Set
2016-06-16 20:38:58.175 Info, mgr, Added driver for controller /dev/ttyUSB0
2016-06-16 20:38:58.176 Info, Opening controller /dev/ttyUSB0
2016-06-16 20:38:58.176 Info, Trying to open serial port /dev/ttyUSB0 (attempt 1)
2016-06-16 20:38:58.177 Error, ERROR: Cannot open serial port /dev/ttyUSB0. Error code 2many thanks
François JolivetJune 16, 2016 at 10:13 pm #3497K.Rens
Keymaster@Francois: strange that you cannot open the serial port.
You can try running following command:
chmod 777 /dev/ttyUSB0
@Nerisson: you are right.
You can verify which extensions in php are enabled by running following commands:
php -mFor PulseStation database access, mysql needs to be there.
If it is, there is no need to execute the commands mentioned above.If you compare that to
php56 -mGlacier requires Phar to be in the list,
PulseStation requires mysql to be in the list.They don’t have a version with both.
I really do not understand why Synology puts 2 different php versions on 1 server, very very annoying…
Kind regards,
K.RensJune 16, 2016 at 10:58 pm #3498francois.jolivet@yahoo.fr
Participanthere is the respond for the command :
php -m
and
php56 -m
———————————————————-
login as: admin
admin@192.168.1.113’s password:
Could not chdir to home directory /var/services/homes/admin: No such file or directory
admin@DiskStation:/$ chmod 777 /dev/ttyUSB0
chmod: cannot access ‘/dev/ttyUSB0’: No such file or directory
admin@DiskStation:/$ php –m
-sh: php: command not found
admin@DiskStation:/$ php56 –m
[PHP Modules]
apc
apcu
bcmath
bz2
calendar
Core
ctype
curl
date
dba
dom
ereg
exif
fileinfo
filter
ftp
gd
gettext
gmp
hash
iconv
imap
intl
json
libxml
mbstring
mcrypt
mhash
mysql
mysqli
mysqlnd
openssl
pcntl
pcre
PDO
pdo_mysql
pdo_pgsql
pdo_sqlite
pgsql
posix
readline
Reflection
session
shmop
SimpleXML
soap
sockets
SPL
sqlite3
standard
syno_compiler
sysvmsg
sysvsem
sysvshm
tokenizer
wddx
xml
xmlreader
xmlrpc
xmlwriter
Zend OPcache
zip
zlib
[Zend Modules]
Zend OPcacheWhat must I do ?
Best regards
FrançoisJune 17, 2016 at 6:49 pm #3501francois.jolivet@yahoo.fr
ParticipantHello,
there is a problem with synthax of the command “chmod 777 /dev/ttyUSB0”admin@DiskStation:/$ chmod 777 /dev/ttyUSB0
chmod: cannot access ‘/dev/ttyUSB0’: No such file or directory
admin@DiskStation:/$ login as: adminCould you tell me how write these command ?
thank’s
François JolivetJune 18, 2016 at 12:02 pm #3502K.Rens
KeymasterHi,
Are you certain your usb key is running on /dev/ttyUSB0?
On synology for me it has always been on /dev/ACM0Normally PulseStation should try to autodetect the correct port for your key.
Otherwise just contact us in live chat.Kind regards,
K.Rens -
This reply was modified 4 years, 10 months ago by
-
AuthorPosts
- You must be logged in to reply to this topic.