• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

Apache Permissions: can't duplicating config.js.sample

Scheduled Pinned Locked Moved Solved Troubleshooting
20 Posts 5 Posters 13.9k Views 5 Watching
Loading More Posts
  • 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.
  • P Offline
    patm189
    last edited by paviro May 20, 2016, 8:44 PM May 14, 2016, 3:10 PM

    I’m new to this and getting stuck following Apache instructions. I would appreciate any guidanace.

    Apache Permissions. I can’t update or change anything in Apache even using sudo commands in Terminal. I am trying to copy file ~/config.js.sample from MagicMirror2 folder (cp sudo nano /var/www/html/MagicMirror/config/config.js.sample so that I can rename and remove the ‘sample’, but I am getting permissions denied. I can’t simple rename the config.js.sample file either. How can I edit files in Apache server? I have no experience with Apache permissions and can’t move forward until I get this resolved.

    Pat

    1 Reply Last reply Reply Quote 0
    • P Offline
      patm189 @CaptainFalcon323
      last edited by paviro May 18, 2016, 11:47 AM May 16, 2016, 10:14 PM

      @CaptainFalcon323 What happens if you right click the Magic Mirror folder > Open in Terminal > and enter command npm start? Do you still get the ‘need to config’ prompt?

      R 1 Reply Last reply Jan 25, 2017, 12:30 PM Reply Quote 0
      • P Offline
        patm189
        last edited by May 14, 2016, 5:21 PM

        Figured this out. I was able to give my default user “pi” permissions to write in /var/www/

        P 1 Reply Last reply May 14, 2016, 5:23 PM Reply Quote 0
        • P Offline
          paviro Admin @patm189
          last edited by paviro May 14, 2016, 5:23 PM May 14, 2016, 5:23 PM

          @patm189 why (and how) are you using Apache vor MM v2 in the first place? It ships its own web server, you can’t use it with apache.

          We're all stories in the end. Just make it a good one, eh?

          – The Doctor

          P 1 Reply Last reply May 14, 2016, 5:29 PM Reply Quote 0
          • P Offline
            patm189 @paviro
            last edited by paviro May 14, 2016, 5:36 PM May 14, 2016, 5:29 PM

            @paviro thanks for the comment. Honestly, I have no experience with this sort of thing so I’ve been following online tutorials saying to install Apache. I might just wipe my SD Card and start over (…again).

            Let me know if I’m misunderstanding, but if I install MagicMirror2 then I do not need Apache? Install link below:
            (curl -sL https://raw.githubusercontent.com/MichMich/MagicMirror/master/installers/raspberry.sh | bash)

            Which directory should I download this into? Once it’s installed, the other trouble I’m having is actually locating a index.php file, which is what I believe should launch with reboot once I adjust autostart file with this line (among others) @midori -e Fullscreen -a http://localhost/MagicMirror/index.php

            When I input this index.php file I get a Not Found error upon reboot and launch. THANK YOU!

            Pat

            P 1 Reply Last reply May 14, 2016, 5:33 PM Reply Quote 0
            • P Offline
              paviro Admin @patm189
              last edited by paviro May 14, 2016, 5:33 PM May 14, 2016, 5:33 PM

              @patm189 there is no index.php anymore and no you don’t need Apache, you can’t use it actually. Download it anywhere you like, just follow the instructions in the README.

              We're all stories in the end. Just make it a good one, eh?

              – The Doctor

              P 1 Reply Last reply May 14, 2016, 5:34 PM Reply Quote 0
              • P Offline
                patm189 @paviro
                last edited by May 14, 2016, 5:34 PM

                Thanks @paviro! [grabs cup of coffee] Going to take another crack at this!

                1 Reply Last reply Reply Quote 1
                • P Offline
                  patm189
                  last edited by May 14, 2016, 6:39 PM

                  Well i’ll be damned. Following the instructions worked! Haha. Thanks for bearing with me.

                  1 Reply Last reply Reply Quote 1
                  • C Offline
                    CaptainFalcon323
                    last edited by May 16, 2016, 5:39 PM

                    Hello all!

                    I’m also new to this sort of thing (little/no coding experience) and I too have been following online tutorials but haven’t been getting results… So, I switched to following the README, but haven’t made it very far.

                    I’ve downloaded the necessary files from git hub using:
                    (curl -sL https://raw.githubusercontent.com/MichMich/MagicMirror/master/installers/raspberry.sh | bash)

                    Due to my lack of coding knowledge, I’m unsure how to duplicate the config.js.sample file (so that the file becomes config.js) - referring to this line in the README:
                    Duplicate "config/config.js.sample to config/config.js.

                    I’ve tried typing this into the terminal under the magic mirror directory but nothing happens. I’ve also gone into my File Manager—> Directory Tree----> MagicMirror----> confi folder----> copied and pasted the “config.js.sample” file and renamed it to “config.js”.

                    From there I’ve gone to https:///MagicMirror/ (from another computer on the same network)to see what it all looks like. I get a message that says I need to create a config file (of that mine has an error in it and to use a JavaScript Linter).

                    Any and all help would be appreciated especially at an ELi5 level :D Thanks in advance!

                    1 Reply Last reply Reply Quote 0
                    • F Offline
                      feuerball
                      last edited by feuerball May 16, 2016, 5:53 PM May 16, 2016, 5:53 PM

                      go into the config directory with a terminal and type

                      sudo cp config.js.sample config.js

                      P 1 Reply Last reply May 16, 2016, 5:57 PM Reply Quote 0
                      • P Offline
                        paviro Admin @feuerball
                        last edited by May 16, 2016, 5:57 PM

                        @feuerball sudo should not be necessary.

                        We're all stories in the end. Just make it a good one, eh?

                        – The Doctor

                        F 1 Reply Last reply May 16, 2016, 5:57 PM Reply Quote 0
                        • 1
                        • 2
                        • 1 / 2
                        1 / 2
                        • First post
                          1/20
                          Last post
                        Enjoying MagicMirror? Please consider a donation!
                        MagicMirror created by Michael Teeuw.
                        Forum managed by Sam, technical setup by Karsten.
                        This forum is using NodeBB as its core | Contributors
                        Contact | Privacy Policy