Git Product home page Git Product logo

Comments (8)

yanncam avatar yanncam commented on June 12, 2024

Hello @j1pe

Can you check which Apache version that you use with your Synology ? Apache 2.2 or 2.4 ?
(You can check this by adding a file phpinfo.php with the content <?php phpinfo(); ?> at the root of your web-server),

Search for the string _SERVER["SERVER_SOFTWARE"] in the results to see the version of Apache currently used.

When you have found the right Apache 2.2 or 2.4 used by your Synology, check the xsendfile file associated.

vi /etc/httpd/conf/extra/mod_xsendfile.conf-user # Synology DSM5
vi /volume1/@appstore/WebStation/usr/local/etc/httpd/conf/extra/mod_xsendfile.conf-user # Synology DSM6
vi /volume1/@appstore/Apache2.2/usr/local/etc/apache22/conf/extra/mod_xsendfile.conf # Synology DSM6 for package Apache 2.2
vi /volume1/.4/usr/local/etc/apache24/conf/extra/mod_xsendfile.conf # Synology DSM6 for package Apache 2.4
For the next updates and evolution of DSM version and package version, it's possible to use the following command to find the right mod_xsendfile.conf via SSH : find / -name "*xsendfile*conf*"

Try the latest SSH command to find all xsendfile on your Synology if needed.

I have realised a Bash script to maintain the xsendfile for your KodiWebPortal even if the NAS reboots or if the package is reset (see here : https://github.com/yanncam/KodiWebPortal/blob/master/enableDownload.sh). You can put this script in a cronjob on your DSM.

Please check this again to be sure that the edited xsendfile is correctly used by the loaded version of PHP/Apache on your NAS.

Sincerely,

`

from kodiwebportal.

j1pe avatar j1pe commented on June 12, 2024

Thank you for your quick response.
I'm in version 2.4. The modified file is the right one.
image

I found an error in the file path on KodiWebPortal
image
Entre le chemin et le nom du fichier, il manque un /
Dans ma base de donnée, le chemin est bon (et fonctionne bien avec Kodi)

I don't know what the problem is, but I think it's the cause.

Thank you for your help.

from kodiwebportal.

yanncam avatar yanncam commented on June 12, 2024

Hum, ok, I see.

Can you double-check your config.php file of KodiWebPortal ? To be sure that these directives contain a trailing slash ?

define("NAX_MOVIES_LOCAL_PATH", "/volume1/MEDIATHEQUE/");	// Local path where are movies
define("NAX_MOVIES_REMOTE_PATH", "smb://NAX/MEDIATHEQUE/");	// Location of movies in Kodi DB
define("NAX_TVSHOW_LOCAL_PATH", "/volume1/MEDIATHEQUE/");	// Local path where are TVshow
define("NAX_TVSHOW_REMOTE_PATH", "smb://NAX/MEDIATHEQUE/");	// Location of TVshow in Kodi DB

You have to set the trailing slash like /volume1/MEDIATHEQUE/, not /volume1/MEDIATHEQUE, can you check this ? :)

from kodiwebportal.

j1pe avatar j1pe commented on June 12, 2024

I forgot all about the "/.
Thanks

However that does not solve my problem of downloading at 3 bytes

from kodiwebportal.

yanncam avatar yanncam commented on June 12, 2024

Can you check the Apache / PHP log file on your NAS when you try to download a file ?

from kodiwebportal.

j1pe avatar j1pe commented on June 12, 2024

I find my F***** problem.

It's Virtual Host, I configured this with my foot.

I'm sorry and thank you for your help and yourgreat job !!!

from kodiwebportal.

yanncam avatar yanncam commented on June 12, 2024

No problem, glad to see that it's fix :) !

Have a nice confined day ! :)

from kodiwebportal.

j1pe avatar j1pe commented on June 12, 2024

Have a nice confined day ! :)

Thanks you too

from kodiwebportal.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.