PLATFORM
  • Tails

    Create websites with TailwindCSS

  • Blocks

    Design blocks for your website

  • Wave

    Start building the next great SAAS

  • Pines

    Alpine & Tailwind UI Library

  • Auth

    Plug'n Play Authentication for Laravel

  • Designer comingsoon

    Create website designs with AI

  • DevBlog comingsoon

    Blog platform for developers

  • Static

    Build a simple static website

  • SaaS Adventure

    21-day program to build a SAAS

Question By
Solved

Ninja Media Script Trouble Into Install

Solved
mydigitalschool

Jun 18th, 2020 06:47 PM

Is there any body who can help me into installing and live the project ninja media script. I am stuck and not able to install that to make it live.

tnylea

Jun 19th, 2020 01:44 AM

Hey @mydigitalschool,

Can you please give a detailed description of what's going on when you try and install the script? Please list some code samples and a thorough description of the problem so that way I can help you out the best I can.

Also, please don't create a Post with the issue. This is sufficient enough.

Let me know and I'll see what I can do to help.

Thanks.

Report
1
mydigitalschool

Jun 19th, 2020 08:56 AM

I downloaded NINJA MEDIA SCRIPT, but i am not able to live it on server using SSH method, if you can help me or provide me installation, I bought the PRO subscription already. I really do not able to connect via PUTTY software with SSH method that's why not able to do that. Kindly help me into instillation

bobbyiliev

Jun 19th, 2020 09:08 AM

Hi there,

I will be happy to help you. Feel free to reach out to me.

What is the hosting provider that you are using and what is the exact error that you get when you try to SSH to your server?

On another note, you can find the documentation on how to install the Ninja Media Script here:

https://devdojo.com/script/ninja-media-script/documentation

Report
1
mydigitalschool

Jun 19th, 2020 05:05 PM

I wanted to know one more thing , how can i set the SSL URL in this script.

bobbyiliev

Jun 19th, 2020 06:09 PM

I would recommend using Let’s encrypt. Most shared hosting providers should have this option available.

If you are using a hosting provider like DigitalOcean, I would suggest using certbot to do that. You can check out this article here in how to do that.

Let me know how it goes!

Report
1
mydigitalschool

Jun 20th, 2020 10:27 AM

Now i have live the script not able to post video, and images. check here https://www.spimeo.com/

bobbyiliev

Jun 20th, 2020 11:23 AM

I can suggest a few things here:

  • Make sure that your storage permissions are correct so that your webserver could write to the storage directory
  • Check if file_get_contents is enabled
  • Check if file_put_contents enabled
  • Make sure that you have created a storage symlink: php artisan storage:link

Let me know how it goes!

mydigitalschool

Jun 20th, 2020 04:56 PM

Whenever trying to upload image it got failed, and says 404.

Failed to load resource: the server responded with a status of 404 ()

mydigitalschool

Jun 20th, 2020 06:10 PM

Mixed Content: The page at 'https://www.spimeo.com/fourth-and-last-test' was loaded over HTTPS, but requested an insecure frame 'http://www.youtube.com/embed/C0DPdy98e4c?theme=light&rel=0'. This request has been blocked; the content must be served over HTTPS.

this script accepting the videos from Youtube and viemo , what about the sefl uploaded video and the video from Instgram, or other sharing website. Kindly suggest or how can we add

Actually this problem is coming when posting via Youtube URL, seems it's api or some iframe code using nonsecure http please suggest where i can fix it

Seems many bugs in this script, Image not uploading, youtube iframe not loading https, viemo working , but what about other video platform to share.

bobbyiliev

Jun 20th, 2020 09:26 PM

Hi there,

The YouTube problem has a really easy fix:

  • Open this file here:
public/themes/default/includes/post-item.blade.php
  • Go to line 108
  • Change http://www.youtube.com/ with https://www.youtube.com/

That way you will not get the mixed content error.

The other problem with the images, make sure to set your APP_URL to your exact domain name with https://

Like this:

APP_URL=https://www.spimeo.com

I've just installed a fresh copy of the script and it all worked as expected.

Let me know if it works after chaning the app url.

If not, can you share the output of your public folder?

ls -l public/

Also can you add a PHP info file so that you could make sure that the required extensions are installed and file_get_contents and file_put_contents are enabled?

To create a PHP info file you can use this snippet here:

<?php
phpinfo();
?>
Report
1
mydigitalschool

Jun 21st, 2020 01:57 PM

I have updated APP_URL but still image not uploading, 404 you, also i do not know how to run php command on server. to create php file, let me know other pay to create via cpanel or other.

Your image is good but have some bugs which need to be updated in quick updates.

bobbyiliev

Jun 21st, 2020 02:38 PM

Hi there,

I think that you have not ran the php artisan storage:link command and this is why you are note seeing the uploaded images.

This is not really a bug but just a standard part of the setup of every Laravel application.

You need to either ssh and run that command, or via cPanel open the routes/web.php file add the following contnet after the opening PHP tag:

Route::get('/foo', function () {
    Artisan::call('storage:link');
});

And then visit yourdomin.com/foo to create the storage link.

Regarding the YouTube change, you can make the change via cPanel again, just go to your file manager, then go to the public/themes/default/includes/ folder and open the post-item.blade.php file, find line 108 and change http://www.youtube.com/ with https://www.youtube.com/

bobbyiliev

Jun 21st, 2020 02:39 PM

On another note, I strongly recommend watching this course on the DevDojo site in order to learn some Command line basics:

https://devdojo.com/course/linux-command-line-basics

This will help you a lot in your career!

mydigitalschool

Jun 21st, 2020 04:47 PM

i just tried what you suggested, but you can check on this URL image goes 404. So i wonder why the images still not uploading from both method, weather it is via URL or direct upload. Kindly help

https://www.spimeo.com/storage/posts/June2020/mobile-app-development-company-jpg-500x500.jpg

Load More Answers