Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. LAMP
  3. nginx.conf

nginx.conf

Scheduled Pinned Locked Moved LAMP
12 Posts 4 Posters 1.9k Views 4 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • mdc773M Offline
    mdc773M Offline
    mdc773
    wrote on last edited by
    #1

    where do i put the nginx.conf at anytime i try to vist pages i get 404 error

    1 Reply Last reply
    1
    • robiR Offline
      robiR Offline
      robi
      wrote on last edited by
      #2

      there is no nginx, it's LAMP

      Conscious tech

      1 Reply Last reply
      2
      • mdc773M Offline
        mdc773M Offline
        mdc773
        wrote on last edited by
        #3

        that's true but i am trying to install a php software called playtube from themeforest and it come with a nginx.conf
        it handles the / directory

        1 Reply Last reply
        0
        • robiR Offline
          robiR Offline
          robi
          wrote on last edited by robi
          #4

          how is anyone on the forum supposed to know what you are trying to do in the OP?

          Conscious tech

          1 Reply Last reply
          1
          • mdc773M Offline
            mdc773M Offline
            mdc773
            wrote on last edited by
            #5

            okay dude

            1 Reply Last reply
            0
            • timconsidineT Offline
              timconsidineT Offline
              timconsidine
              App Dev
              wrote on last edited by
              #6

              As @robi says, LAMP doesn't have nginx, it provides Apache as web server.
              Maybe you could use ChatGPT (or Brave with Leo) to ask how to convert the nginx conf file into Apache format ?
              Not giaranteed to work, but worth a shot.

              1 Reply Last reply
              1
              • scookeS Offline
                scookeS Offline
                scooke
                wrote on last edited by
                #7

                LAMP
                L - Linux
                A - Apache
                M - MySQL
                P - PHP

                There is an nginx version, LEMP, but it isn't on Cloudron:
                L - Linux
                E - Engine X (nginx)
                M - MySQL
                P - PHP

                If this is what OP is trying to install, https://themeforest.net/item/playtube-video-html5-website-template/18948152, then it's good to realize it is simply an html template. All you have to do @mdc773 is place that html file into whichever folder the Instructions (Cloudron, that is) indicate.

                Then again, this comment suggests simply using the Surfer app. https://forum.cloudron.io/post/61498

                A life lived in fear is a life half-lived

                mdc773M 2 Replies Last reply
                4
                • timconsidineT Offline
                  timconsidineT Offline
                  timconsidine
                  App Dev
                  wrote on last edited by
                  #8

                  Good points @scooke

                  1 Reply Last reply
                  1
                  • mdc773M Offline
                    mdc773M Offline
                    mdc773
                    wrote on last edited by
                    #9

                    trust i understand what lamp is lol all i was asking it that a script has a nginx.conf i was able to make it work on a non cloudron server lol with lamp so i don't understand how it works over their and not here

                    1 Reply Last reply
                    0
                    • scookeS scooke

                      LAMP
                      L - Linux
                      A - Apache
                      M - MySQL
                      P - PHP

                      There is an nginx version, LEMP, but it isn't on Cloudron:
                      L - Linux
                      E - Engine X (nginx)
                      M - MySQL
                      P - PHP

                      If this is what OP is trying to install, https://themeforest.net/item/playtube-video-html5-website-template/18948152, then it's good to realize it is simply an html template. All you have to do @mdc773 is place that html file into whichever folder the Instructions (Cloudron, that is) indicate.

                      Then again, this comment suggests simply using the Surfer app. https://forum.cloudron.io/post/61498

                      mdc773M Offline
                      mdc773M Offline
                      mdc773
                      wrote on last edited by
                      #10

                      @scooke appreciate your input sir.

                      1 Reply Last reply
                      0
                      • scookeS scooke

                        LAMP
                        L - Linux
                        A - Apache
                        M - MySQL
                        P - PHP

                        There is an nginx version, LEMP, but it isn't on Cloudron:
                        L - Linux
                        E - Engine X (nginx)
                        M - MySQL
                        P - PHP

                        If this is what OP is trying to install, https://themeforest.net/item/playtube-video-html5-website-template/18948152, then it's good to realize it is simply an html template. All you have to do @mdc773 is place that html file into whichever folder the Instructions (Cloudron, that is) indicate.

                        Then again, this comment suggests simply using the Surfer app. https://forum.cloudron.io/post/61498

                        mdc773M Offline
                        mdc773M Offline
                        mdc773
                        wrote on last edited by
                        #11

                        @scooke https://codecanyon.net/item/playtube-the-ultimate-php-video-sharing-platform/20759294

                        1 Reply Last reply
                        0
                        • scookeS Offline
                          scookeS Offline
                          scooke
                          wrote on last edited by scooke
                          #12

                          No one in the universe understands how an nginx.conf file works in a LAMP environment - because it doesn't! The syntax in an nginx.conf file is very different from a LAMP - Apache.conf file. One will not work in the other. So, either you are working in a LEMP stack without realizing it, or it isn't an nginx.conf file.

                          https://docs.playtubescript.com/#idocs_start gives some clues, perhaps, of what you are trying to do. Two things I saw in that list that I'm not sure are part of a Cloudron LAMP install is the nodejs config.json file/location, and the ffmpeg item. I don't think either come with the LAMP installation; but this isn't a Cloudron problem per se. No LAMP offering automatically comes with those two items pre-installed and functioning (but the way those two are shown in the image is confusing because it looks like they are IN the root directory of the web server???)

                          It's important to understand that all the talk about Cloudron being so simple and easy is due to the context of Docker. If what you are trying to do has been using Docker, or requires Docker... then Cloudron is the absolute easiest and most powerful option available. If you are managing your web server on it's own server, by hand, then you are able to install whatever, wherever, and make the connections however (although there are typically strict conventions for most software), then Cloudron really isn't necessary. I in fact have a separate VPS on which I just run 3 LAMP php-based apps because there were complications and incompatibilities doing so in a Docker-based LAMP environment. The PHP app you are trying to install clearly assumes a non-Docker, native LAMP environment.

                          On a second reading of the instructions in that link above, I actually suspect you probably followed ALL the steps in the instructions, but you ARE in a LAMP environment, and when you got to the NGINX.CONF section you still followed the instructions... except the webserver isn't using nginx, it is using Apache - so even though you placed the nginx.conf script correctly ("it works"), it isn't being used. And nginx also isn't even running, otherwise you'd get an error message that Apache can't start up because another app is using the required ports.

                          So we are back at @robi's statement - "how is anyone on the forum supposed to know what you are trying to do in the OP?" Next time, include things like the various links I added. And be clearer. I hope you see by this point how unclear your request is! Look over the instructions again, then look carefully at the Cloudron LAMP folder structure - tell us in which folder you put what, for example.

                          Two last things: this PHP app requires a calendar extension which I don't think the Cloudron LAMP app has (https://docs.cloudron.io/apps/lamp/); and finally, the fact it requires PHP 5.5+ suggests it won't even work on the Cloudron LAMP app because that uses, at a minimum, PHP 7.4. And whatever runs on on pre-7.x typically doesn't run on post-7.x. Good luck!

                          A life lived in fear is a life half-lived

                          1 Reply Last reply
                          2
                          Reply
                          • Reply as topic
                          Log in to reply
                          • Oldest to Newest
                          • Newest to Oldest
                          • Most Votes


                          • Login

                          • Don't have an account? Register

                          • Login or register to search.
                          • First post
                            Last post
                          0
                          • Categories
                          • Recent
                          • Tags
                          • Popular
                          • Bookmarks
                          • Search