Sie sind nicht angemeldet.

Lieber Besucher, herzlich willkommen bei: krpano.com Forum. Falls dies Ihr erster Besuch auf dieser Seite ist, lesen Sie sich bitte die Hilfe durch. Dort wird Ihnen die Bedienung dieser Seite näher erläutert. Darüber hinaus sollten Sie sich registrieren, um alle Funktionen dieser Seite nutzen zu können. Benutzen Sie das Registrierungsformular, um sich zu registrieren oder informieren Sie sich ausführlich über den Registrierungsvorgang. Falls Sie sich bereits zu einem früheren Zeitpunkt registriert haben, können Sie sich hier anmelden.

  • »Alexey Tkachenko« ist der Autor dieses Themas

Beiträge: 702

Wohnort: Sevastopol, Crimea, Russian Federation

Beruf: Interpreting, Building virtual tours

  • Nachricht senden

1

Donnerstag, 5. Juli 2018, 09:16

Krpano tools on server

Hi!

I've started learning about Krpano tools working on server. My first simple task is to process a pano jpg into tiles on server using PHP.

I've spent the whole day yesterday and unfortunately can't get it working properly. Can someone please help me and give some advice?

1. Our server is Linux cs31307.selectel 4.4.0-92-generic #115-Ubuntu SMP Thu
Aug 10 09:04:33 UTC 2017 x86_64

Do I need to run some installation of krpano tools on server or just upload Linux Krpano tools to some directory?

2. Yesterday I tried the following code in PHP:

Quellcode

1
exec("/var/www/omuzee/data/www/vr.omuzee.ru/test/krpano/krpanotools makepano -config=normal.config /var/www/omuzee/data/www/vr.omuzee.ru/test/4132.jpg", $output, $return_var);	echo "OUTPUT "; 	print_r($output);



Output returns an empty array and return_var gives 127 (I found out that it means an error).

I'm a bit confused about the paths in the code above...

3. Also I'm confused about 'access rights' to the folder where the tiles will be created. I've searched the forum already on this topic and understood (vaguely) that 'home' folder or 'krpanotools' folder must be writable.

This task is all new for me, and I'm not a proger, but need to learn and try&error, so any advice or help will be much appreciated ;-)
Regards,

Alexey

jordi

Fortgeschrittener

Beiträge: 416

Wohnort: Barcelona

Beruf: creating ideas & coding them

  • Nachricht senden

2

Donnerstag, 5. Juli 2018, 10:01

Hi Alexey seems you have some path problems.

for example the path of the config file seems not to be correct. you can just start always from /var

also you can remove , $return_var the $output is where you will get the response.

You are almost there !

If you did not change krpano structure this should work

Quellcode

1
2
3
exec("/var/www/omuzee/data/www/vr.omuzee.ru/test/krpano/krpanotools makepano -config=/var/www/omuzee/data/www/vr.omuzee.ru/test/krpano/krpanotools/templates/normal.config /var/www/omuzee/data/www/vr.omuzee.ru/test/4132.jpg", $output);	
	echo "OUTPUT\n"; 	
	print_r($output);
everpano.com smart virtual tours

  • »Alexey Tkachenko« ist der Autor dieses Themas

Beiträge: 702

Wohnort: Sevastopol, Crimea, Russian Federation

Beruf: Interpreting, Building virtual tours

  • Nachricht senden

3

Donnerstag, 5. Juli 2018, 10:17

Hi, Jordi!

Thank you so much for looking into this ;-)


I'll give it a try.
Regards,

Alexey

  • »Alexey Tkachenko« ist der Autor dieses Themas

Beiträge: 702

Wohnort: Sevastopol, Crimea, Russian Federation

Beruf: Interpreting, Building virtual tours

  • Nachricht senden

4

Donnerstag, 5. Juli 2018, 11:10

Hmm... unfortunbaltely it dosn't work.... Obviously I'm missing something... *sad*

Do I need to register Krpano tools on the server first before using them?
Regards,

Alexey

jordi

Fortgeschrittener

Beiträge: 416

Wohnort: Barcelona

Beruf: creating ideas & coding them

  • Nachricht senden

5

Donnerstag, 5. Juli 2018, 11:17

yes you need to register in order to not have watermark, but that cannot be the reason as you should be able to execute it without registration done.

maybe it's something on permits.

you should be able to check if owner and permits are set properly (chown chmod)


Of course printing some vars and checking if files exists on that path would help you... but some php/systems/linux skills are needed there

helping blind is a bit dificult.
everpano.com smart virtual tours

  • »Alexey Tkachenko« ist der Autor dieses Themas

Beiträge: 702

Wohnort: Sevastopol, Crimea, Russian Federation

Beruf: Interpreting, Building virtual tours

  • Nachricht senden

6

Donnerstag, 5. Juli 2018, 11:20

Thanks!

I will keep trying to do this task... Yes, blind-testing is a nightmare)))

Learning is always fun, anyway ;-)
Regards,

Alexey

jordi

Fortgeschrittener

Beiträge: 416

Wohnort: Barcelona

Beruf: creating ideas & coding them

  • Nachricht senden

7

Donnerstag, 5. Juli 2018, 11:20

are you connecting to your server via ssh ?

if so try to execute directly the code there without using php

also check if path are correct, you can navigate through the server using cd (change directory)

So when you make :

Quellcode

1
cd /var/www/omuzee/data/www/vr.omuzee.ru/test/krpano/krpanotools



then


Quellcode

1
ls -l 



you should see the krpano files there
everpano.com smart virtual tours

  • »Alexey Tkachenko« ist der Autor dieses Themas

Beiträge: 702

Wohnort: Sevastopol, Crimea, Russian Federation

Beruf: Interpreting, Building virtual tours

  • Nachricht senden

8

Donnerstag, 5. Juli 2018, 11:22

Wow, thanks for that help!

I'll try it ;-)
Regards,

Alexey

9

Donnerstag, 5. Juli 2018, 11:57

In addition to Jordi's comment about rights ensure that krpanotools has rights to execute. Also depending on the logging settings, check your error logs which may reveal something useful.

GK

  • »Alexey Tkachenko« ist der Autor dieses Themas

Beiträge: 702

Wohnort: Sevastopol, Crimea, Russian Federation

Beruf: Interpreting, Building virtual tours

  • Nachricht senden

10

Donnerstag, 5. Juli 2018, 12:01

thank you guys for your help!

I'll try and report back a bit later *cool*
Regards,

Alexey

  • »Alexey Tkachenko« ist der Autor dieses Themas

Beiträge: 702

Wohnort: Sevastopol, Crimea, Russian Federation

Beruf: Interpreting, Building virtual tours

  • Nachricht senden

11

Freitag, 6. Juli 2018, 13:56

small update here: when I run my PHP command I can see this error in the server log:


[Fri Jul 06 14:33:41.025843 2018] [cgi:error] [pid 27546] [client 91.200.47.42:35020] AH01215: Inconsistency detected by ld.so: dl-version.c: 224: _dl_check_map_versions: Assertion `needed != NULL' failed!: /var/www/php-bin-isp-php56/omuzee/php, referer: http://vr.omuzee.ru/test/


When the path to Krpano tools is wrong it says var/www/omuzee/data/www/vr.omuzee.ru/data/vt.omuzee.ru/test/krpano/krpanotools: not found:

Cant' find any understandable info about this error...
Regards,

Alexey

tillkrueger

Anfänger

Beiträge: 11

Wohnort: Germany

Beruf: Digital Media Producer

  • Nachricht senden

12

Sonntag, 8. Juli 2018, 09:43

Is this your own server, or are you running this from a shared hosting server?

if you're on a shared hosting server, you might have the same issue as I do, where binaries are not allowed to be executed from anywhere outside of the root (this is called "root access" hosting, which - generally speaking - only VPS or dedicated servers allow).

what sort of a server are you on?