p410n3 / YDL-UI

Minimalistic, portable and selfhosted Interface for the famous youtube-dl CLI tool.
The Unlicense
82 stars 8 forks source link

Weird results from a Download request #5

Closed mcat-ee closed 6 years ago

mcat-ee commented 6 years ago

Hi!

When I use the app and try to download a video I get the following results: image

I initially installed master but then checked out 1.2 and i'm using the default credentials.

YDL-UI is running on a small AWS LightSail instance initialised with a LAMP stack.

Provokan commented 6 years ago

Hello,

your problem is solved as follows, please look in your root directory that the folders / php and / css and / js exist and there are the right files in there

mcat-ee commented 6 years ago

The directory layouts seem to match the structure of the git repository :(

p410n3 commented 6 years ago

Make sure to make the owner of the folder to your webservers user (e.g. apache or www-data) and set permissions as 775

You can use either CHOWN and CHMOD Or use an FTP client such as winSCP

Also always set it recursive

If not done the script is unable to use makedir and chdir thus the loopAndPrint.php script is executed inside the wrong folder.

mcat-ee commented 6 years ago

Hmmm i'm still struggling - I'll try again tomorrow!

I've used the following commands to set the permissions: sudo chmod 775 * -R sudo chown www-data:www-data * -R

p410n3 commented 6 years ago

The folder itself isnt owned by the user that way.

Lets say your website is stored under /data/www/youtube then do that:

cd /data/www
chmod -R 775 ./youtube
chown -R www-data:www-data ./youtube

In doubt, restart the webserver.

Also what PHP version are you runnning?

p410n3 commented 6 years ago

@mcat-ee any news?

p410n3 commented 6 years ago

I inspected that bug now and could onyl reporduce when using wrong user / file permissions. As the OP does not reply and I did not find way to reporduce otherwiese, I will close that now