PHP Melody nginx config done right

When you buy PHP Melody there’s a .htaccess file and a .htaccess-nginx file.
However you’re missing everything else of it.

So here’s how you properly configure nginx to run PHP Melody.

We assume php-fpm is running on tcp port 9000.
We also have an acme.conf for letsencrypt.
For this we mkdir -p /var/www/acme/.well-known.

I’ve placed it into the /etc/nginx/acme.conf location.

Then we can create our letsencrypt cert using certbot

example.com.conf

This part redirects non-https traffic to https and can be used universally for any domain. You only have to change the example.com part for each new domain.

Now still in the same file there’s our PHP Melody nginx configuration and https configuration.

Adjust root to where you’ve unpacked PHP Melody.
And that’s it folks.

I would however strongly suggest against PHP Melody. It’s not a good script. Essential things are missing. They claim they their script has seen 9 years of development. That can hardly be true with obvious bugs being present and unfixed.

2 Replies to “PHP Melody nginx config done right”

    1. Kaltura is free and open source. From paid scripts I can’t recommend anything since I don’t have 1st hand experience with them (can’t recommend something I have never tried). But I’m not satisfied with PHP Melody, that much I can say. If I could refund the purchase I would, but that ship has sailed. Google Adsense for Video integration for instance I’d expect a good script to have. VideoJS has a plugin maintained by Google. All in all, it would take about 6-12 months to write something like PHP Melody. Should I ever write something like it, I’ll be sure to let you know. Or likewise if you find a script or other that support Adsense for Video please let me know.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.