Community

Forums » SEPHP Help and Tips

Cloudfront CDN

    • 145 posts
    November 13, 2018 7:17 PM EST

    Thanks Elshara !

    Thats a wealth of info.

    Im very keen on the : 

    -Nginx reverse proxy for Apache to automatically cache static file

    - CDN (Cloudflare)

    So will have a go first with that

     

     

    heres our site ..just FYI : https://playmusician.com

    We are with AWS (EC2) , so there is no CPanel. But these links are very helpful and I will try it.

    Luckily the AWS is CEntos Linux - so the links are prefect for that.

    FFMPEG has been installed and works perfectly - 

    We do have all SEAO plugins including

    -SEAO Ultimate plugin so will also try the RSS 

    -SEAO News which works very well.

     

     

     

    Thank you so much for your detailed info and help.

    You da best !

     

    • 145 posts
    November 13, 2018 7:55 PM EST

    I setup  Nginx reverse proxy server

    -Nginx as  static content processor

    -and Apache to processing the back end and dynamic content.

    using this link

    https://www.hugeserver.com/kb/configure-nginx-reverse-proxy-apache-centos/

     

    Thanks !

  • November 13, 2018 8:33 PM EST

    Thanks for the updates! I'm glad it works for you. That's a better installation tutorial for custom Nginx install. It would do the same thing that Engintron would for cpanel essentially.

    • 69 posts
    November 19, 2018 3:07 PM EST

    Thank you @Elshara for your very useful guide. 

     

    Couple things i struggled with. 

     

    To use the cloudfare plugin ive had to apply to be a partner, not sure if its always been this way but it would appear so now. I've applied. 

    Secondly the FFMPEG installation link you gave has a 404 link. I used this instead and it has installed fine https://medium.com/@ShinobiSystems/how-to-install-ffmpeg-on-centos-7017f7647caf

     

    I've pretty much got my server setup via your guide and looking forward to seeing the results soon. 

    • 69 posts
    November 19, 2018 3:10 PM EST
    playmusician said:

    I setup  Nginx reverse proxy server

    -Nginx as  static content processor

    -and Apache to processing the back end and dynamic content.

    using this link

    https://www.hugeserver.com/kb/configure-nginx-reverse-proxy-apache-centos/

     

    Thanks !

     

    Would this be required with Engintron installed ?  Or to word it different, would it do any harm doing this also ?

    • 145 posts
    November 19, 2018 3:22 PM EST

    Hi ...

    my website is on AWS - without CPANEL

    *though I'm working on installing one...

     

    so I dont have the modules/plugins/GUI etc

     

    I install everything from scratch.

     

    Iv'e heard engintron is the best NGINX installer out there

    If you've got CPanel (which I think you do) then I would just go the Engintron way as its supposed to be excellent

     

    Here are a few reasons why

    https://applications.cpanel.net/listings/view/Engintron-Nginx-on-cPanel

     

    Peace..~

     


    This post was edited by playmusician at November 19, 2018 3:23 PM EST
    • 145 posts
    November 19, 2018 3:25 PM EST

    One of the quirks is I wish I knew that CPANEL on AWS needs a clean instance for first time setup(no mariadb, no apache... nothing)

    Now Im planning to install CPANEL, setup the website as an account and migrate all the stuff (db and files)

    Though its going to be  a pain in the a** as I have to change all the paths

    from /var/www/html to the new path

    just stuff I wish I knew LOL

     

    Oh well~~

    • 69 posts
    November 19, 2018 3:25 PM EST

    Thank you for your feedback. Ive been recently doing everything via cli so going back to cpanel has made it easier. I've gone with DO for my vps as i already had one ive been testing with. 

    • 69 posts
    November 19, 2018 3:27 PM EST
    playmusician said:

    One of the quirks is I wish I knew that CPANEL on AWS needs a clean instance for first time setup(no mariadb, no apache... nothing)

    Now Im planning to install CPANEL, setup the website as an account and migrate all the stuff (db and files)

    Though its going to be  a pain in the a** as I have to change all the paths

    from /var/www/html to the new path

    just stuff I wish I knew LOL

     

    Oh well~~

    For future reference all Control panels require a fresh server, ive lost many hours of work for this myself :'(

    • 69 posts
    November 23, 2018 3:34 PM EST
    Elshara Silverheart said:

    I will add one more link. Social engine supports FFMPEG. Here's how to make that happen.

    https://clients.hostsailor.com/knowledgebase.php?action=displayarticle&id=127

    Of course, there's other tutorials. If you find a better one, share it.

    Once FFMPEG is installed, just go here and type in /usr/bin/ffmpeg in the path structure.

    https://yoursite.com/admin/video/settings

    Now go to global settings in videos plugin and you can now let members upload their own videos and music. All the music files are also saved via Cache and cdn, as well as images, videos, and other website files like js, css, php, html etc.

    This configuration will use Cloudflare for the CDN to serve all the files. Engintron to cache the dynamic queries to the database. Redis to cache the database entries. And apache to process .htaccess files so you have seo friendly URLs. I'll leave site map generation and RSS ping feeds to other tutorials but they two help with search engine indexing and so on.

    Now that I let the cat out of the bag, Radcodes RSS feeds plugin plus wordpress plus pingomatic plugin for wordpress automatically pings search engines with new content. While Seo Sitemaps plugin from Social Engine Add Ons gets your default RSS feeds, turns them into site maps and makes them present in a nice way for search engines. Now you can have a fast well ranking website. Install Word Press on a directory in the same domain as your SE site like yoursite.com/posts so it all pings correctly. That's optional but hey, $1000.00 secret for under $200.00. Bonus tutorials in this case, not sold separately.

     

     

    Hello Again, so im in the middle of a fresh install and got to the video section. 

     

    I have entered /usr/bin/ffmpeg  as the path but im getting a exe error. The path is right as ive also checked the file path on the server. Any ideas ?