<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Apache Permissions: can&#x27;t duplicating config.js.sample]]></title><description><![CDATA[<p dir="auto">I’m new to this and getting stuck following Apache instructions. I would appreciate any guidanace.</p>
<p dir="auto">Apache Permissions. I can’t update or change anything in Apache even using sudo commands in Terminal. I am trying to copy file <code>~/config.js.sample</code> from MagicMirror2 folder (cp sudo nano <code>/var/www/html/MagicMirror/config/config.js.sample</code> so that I can rename and remove the ‘sample’, but I am getting permissions denied. I can’t simple rename the <code>config.js.sample</code> 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.</p>
<p dir="auto">Pat</p>
]]></description><link>https://forum.magicmirror.builders/topic/92/apache-permissions-can-t-duplicating-config-js-sample</link><generator>RSS for Node</generator><lastBuildDate>Mon, 08 Jun 2026 04:38:00 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/92.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 14 May 2016 15:10:53 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Apache Permissions: can&#x27;t duplicating config.js.sample on Wed, 18 May 2016 11:47:50 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/captainfalcon323" aria-label="Profile: CaptainFalcon323">@<bdi>CaptainFalcon323</bdi></a>  What happens if you right click the Magic Mirror folder &gt; Open in Terminal &gt; and enter command <code>npm start</code>? Do you still get the ‘need to config’ prompt?</p>
]]></description><link>https://forum.magicmirror.builders/post/721</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/721</guid><dc:creator><![CDATA[patm189]]></dc:creator><pubDate>Wed, 18 May 2016 11:47:50 GMT</pubDate></item><item><title><![CDATA[Reply to Apache Permissions: can&#x27;t duplicating config.js.sample on Thu, 26 Jan 2017 11:47:11 GMT]]></title><description><![CDATA[<p dir="auto">Soo looks like i fixed it by re cloneing the MagicMirror git and following directions. But now I am getting a blank black screen on the the MagicMirror webpage. When i inspect it, i get this</p>
<pre><code>Uncaught TypeError: Cannot read property 'getElementsByClassName' of null
    at moduleNeedsUpdate (main.js:134)
    at updateDom (main.js:104)
    at Object.updateDom (main.js:472)
    at Class.updateDom (module.js:296)
    at clock.js:43
moduleNeedsUpdate @ main.js:134
updateDom @ main.js:104
updateDom @ main.js:472
updateDom @ module.js:296
(anonymous) @ clock.js:43
</code></pre>
<p dir="auto">thoughts?</p>
]]></description><link>https://forum.magicmirror.builders/post/12525</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/12525</guid><dc:creator><![CDATA[RudyAcevedo]]></dc:creator><pubDate>Thu, 26 Jan 2017 11:47:11 GMT</pubDate></item><item><title><![CDATA[Reply to Apache Permissions: can&#x27;t duplicating config.js.sample on Thu, 26 Jan 2017 11:46:56 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/patm189" aria-label="Profile: patm189">@<bdi>patm189</bdi></a> hi, I saw that you helped  <a class="plugin-mentions-user plugin-mentions-a" href="/user/captainfalcon323" aria-label="Profile: CaptainFalcon323">@<bdi>CaptainFalcon323</bdi></a> get his project running. I’d really like some help on mine. I think I am having a similar problem. When i go to my pi’s ip address, i get this.<br />
Index of /</p>
<p dir="auto"><img src="/uploads/files/1485347254395-magicmirror-default.jpg" alt="0_1485347251655_magicmirror default.JPG" class=" img-fluid img-markdown" /></p>
<p dir="auto">So i followed your directions above and typed npm start while inside the MagicMirror folder in the terminal. This is what I get.</p>
<pre><code>&gt; magicmirror@2.1.0 start /var/www/html/MagicMirror
&gt; electron js/electron.js

sh: 1: electron: not found

npm ERR! magicmirror@2.1.0 start: `electron js/electron.js`
npm ERR! Exit status 127
npm ERR!
npm ERR! Failed at the magicmirror@2.1.0 start script.
npm ERR! This is most likely a problem with the magicmirror package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     electron js/electron.js
npm ERR! You can get their info via:
npm ERR!     npm owner ls magicmirror
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 4.4.38+
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "start"
npm ERR! cwd /var/www/html/MagicMirror
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.21
npm ERR! code ELIFECYCLE
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian

npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /var/www/html/MagicMirror/npm-debug.log
npm ERR! not ok code 0
</code></pre>
<p dir="auto">please help! I’ve been trying to figure out how to make this project for weeks!</p>
]]></description><link>https://forum.magicmirror.builders/post/12423</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/12423</guid><dc:creator><![CDATA[RudyAcevedo]]></dc:creator><pubDate>Thu, 26 Jan 2017 11:46:56 GMT</pubDate></item><item><title><![CDATA[Reply to Apache Permissions: can&#x27;t duplicating config.js.sample on Tue, 17 May 2016 01:48:23 GMT]]></title><description><![CDATA[<p dir="auto">That did it! Wow, awesome! Thanks so much for all of your help! I really appreciate. :)</p>
]]></description><link>https://forum.magicmirror.builders/post/723</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/723</guid><dc:creator><![CDATA[CaptainFalcon323]]></dc:creator><pubDate>Tue, 17 May 2016 01:48:23 GMT</pubDate></item><item><title><![CDATA[Reply to Apache Permissions: can&#x27;t duplicating config.js.sample on Wed, 18 May 2016 11:47:50 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/captainfalcon323" aria-label="Profile: CaptainFalcon323">@<bdi>CaptainFalcon323</bdi></a>  What happens if you right click the Magic Mirror folder &gt; Open in Terminal &gt; and enter command <code>npm start</code>? Do you still get the ‘need to config’ prompt?</p>
]]></description><link>https://forum.magicmirror.builders/post/721</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/721</guid><dc:creator><![CDATA[patm189]]></dc:creator><pubDate>Wed, 18 May 2016 11:47:50 GMT</pubDate></item><item><title><![CDATA[Reply to Apache Permissions: can&#x27;t duplicating config.js.sample on Mon, 16 May 2016 22:06:16 GMT]]></title><description><![CDATA[<p dir="auto">Oh, yes, you’re correct. The file should be renamed to “config.js”!</p>
<p dir="auto">Just got home from work and went route 1a) I figured that would be easier.</p>
<p dir="auto"><img src="http://imgur.com/ZrUWy9B" alt="alt text" class=" img-fluid img-markdown" /></p>
<p dir="auto">Please see photo above. If it doesn’t work, try right clicking and open it in another tab. If it doesn’t work, it was a picture of my config folder in my directory. It shows a picture of two files: “config.js”<br />
&amp; “config.js.sample”</p>
<p dir="auto">Easy enough, now when I go to "http:///MagicMirror/ " I’m still getting the message that I need to create a config file. I’m confused. Do I need to make changes to the config file (i.e. put in my weather API key, location, etc before it anything will show up?</p>
]]></description><link>https://forum.magicmirror.builders/post/720</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/720</guid><dc:creator><![CDATA[CaptainFalcon323]]></dc:creator><pubDate>Mon, 16 May 2016 22:06:16 GMT</pubDate></item><item><title><![CDATA[Reply to Apache Permissions: can&#x27;t duplicating config.js.sample on Mon, 16 May 2016 18:30:33 GMT]]></title><description><![CDATA[<p dir="auto">Yes, but for 1a) be sure to remove ‘sample’ at the end. I assume that was a typo, but just want to make sure we’re on same page. File should be “config.js”</p>
]]></description><link>https://forum.magicmirror.builders/post/709</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/709</guid><dc:creator><![CDATA[patm189]]></dc:creator><pubDate>Mon, 16 May 2016 18:30:33 GMT</pubDate></item><item><title><![CDATA[Reply to Apache Permissions: can&#x27;t duplicating config.js.sample on Mon, 16 May 2016 18:27:13 GMT]]></title><description><![CDATA[<p dir="auto">Wow, thanks for the quick replies! Unfortunately, I’m at work right now, so I’ll have try these when I get home in ~4 hours and I’ll let you know know how it works out.</p>
<p dir="auto">So this what I’m getting:</p>
<p dir="auto">1a) Go to the File Manager, copy/pasta the file “config.js.sample” and rename it “config.js.sample”</p>
<p dir="auto">OR</p>
<p dir="auto">1b) Go into the config directory and “cp config.js.sample config.sjs”</p>
<ol start="2">
<li>To check to see if it worked go to:</li>
</ol>
<p dir="auto">“<strong>https:///MagicMirror/</strong>”?</p>
<p dir="auto">If it worked, I should be seeing some stuff there?</p>
<p dir="auto">If it didn’t, I should see what I have been seeing (i.e. that i need to create a config file)?</p>
<p dir="auto">Thanks again!</p>
]]></description><link>https://forum.magicmirror.builders/post/708</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/708</guid><dc:creator><![CDATA[CaptainFalcon323]]></dc:creator><pubDate>Mon, 16 May 2016 18:27:13 GMT</pubDate></item><item><title><![CDATA[Reply to Apache Permissions: can&#x27;t duplicating config.js.sample on Mon, 16 May 2016 18:02:49 GMT]]></title><description><![CDATA[<p dir="auto">Hi <a class="plugin-mentions-user plugin-mentions-a" href="/user/captainfalcon323" aria-label="Profile: CaptainFalcon323">@<bdi>CaptainFalcon323</bdi></a>, you can also go into this folder within the File Manager interface and literally Copy the file, Paste it and rename to remove .sample at the end. Whatever is easier.</p>
]]></description><link>https://forum.magicmirror.builders/post/707</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/707</guid><dc:creator><![CDATA[patm189]]></dc:creator><pubDate>Mon, 16 May 2016 18:02:49 GMT</pubDate></item><item><title><![CDATA[Reply to Apache Permissions: can&#x27;t duplicating config.js.sample on Mon, 16 May 2016 18:00:34 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/feuerball" aria-label="Profile: feuerball">@<bdi>feuerball</bdi></a> yes for safety you should NOT use it! :P</p>
]]></description><link>https://forum.magicmirror.builders/post/706</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/706</guid><dc:creator><![CDATA[paviro]]></dc:creator><pubDate>Mon, 16 May 2016 18:00:34 GMT</pubDate></item><item><title><![CDATA[Reply to Apache Permissions: can&#x27;t duplicating config.js.sample on Mon, 16 May 2016 17:57:55 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/paviro" aria-label="Profile: paviro">@<bdi>paviro</bdi></a></p>
<p dir="auto">just for safety :P</p>
]]></description><link>https://forum.magicmirror.builders/post/705</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/705</guid><dc:creator><![CDATA[feuerball]]></dc:creator><pubDate>Mon, 16 May 2016 17:57:55 GMT</pubDate></item><item><title><![CDATA[Reply to Apache Permissions: can&#x27;t duplicating config.js.sample on Mon, 16 May 2016 17:57:13 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/feuerball" aria-label="Profile: feuerball">@<bdi>feuerball</bdi></a> <code>sudo</code> should not be necessary.</p>
]]></description><link>https://forum.magicmirror.builders/post/704</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/704</guid><dc:creator><![CDATA[paviro]]></dc:creator><pubDate>Mon, 16 May 2016 17:57:13 GMT</pubDate></item><item><title><![CDATA[Reply to Apache Permissions: can&#x27;t duplicating config.js.sample on Mon, 16 May 2016 17:53:49 GMT]]></title><description><![CDATA[<p dir="auto">go into the config directory with a  terminal and type</p>
<blockquote>
<p dir="auto">sudo cp config.js.sample config.js</p>
</blockquote>
]]></description><link>https://forum.magicmirror.builders/post/703</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/703</guid><dc:creator><![CDATA[feuerball]]></dc:creator><pubDate>Mon, 16 May 2016 17:53:49 GMT</pubDate></item><item><title><![CDATA[Reply to Apache Permissions: can&#x27;t duplicating config.js.sample on Mon, 16 May 2016 17:39:21 GMT]]></title><description><![CDATA[<p dir="auto">Hello all!</p>
<p dir="auto">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.</p>
<p dir="auto">I’ve downloaded the necessary files from git hub using:<br />
(curl -sL <a href="https://raw.githubusercontent.com/MichMich/MagicMirror/master/installers/raspberry.sh" target="_blank" rel="noopener noreferrer nofollow ugc">https://raw.githubusercontent.com/MichMich/MagicMirror/master/installers/raspberry.sh</a> | bash)</p>
<p dir="auto">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:<br />
Duplicate "config/config.js.sample to config/config.js.</p>
<p dir="auto">I’ve tried typing this into the terminal under the magic mirror directory but nothing happens. I’ve also gone into my File Manager—&gt; Directory Tree----&gt; MagicMirror----&gt; confi folder----&gt; copied and pasted the “config.js.sample” file and renamed it to “config.js”.</p>
<p dir="auto">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).</p>
<p dir="auto">Any and all help would be appreciated especially at an ELi5 level :D Thanks in advance!</p>
]]></description><link>https://forum.magicmirror.builders/post/702</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/702</guid><dc:creator><![CDATA[CaptainFalcon323]]></dc:creator><pubDate>Mon, 16 May 2016 17:39:21 GMT</pubDate></item><item><title><![CDATA[Reply to Apache Permissions: can&#x27;t duplicating config.js.sample on Sat, 14 May 2016 18:39:01 GMT]]></title><description><![CDATA[<p dir="auto">Well i’ll be damned. Following the instructions worked! Haha. Thanks for bearing with me.</p>
]]></description><link>https://forum.magicmirror.builders/post/673</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/673</guid><dc:creator><![CDATA[patm189]]></dc:creator><pubDate>Sat, 14 May 2016 18:39:01 GMT</pubDate></item><item><title><![CDATA[Reply to Apache Permissions: can&#x27;t duplicating config.js.sample on Sat, 14 May 2016 17:34:37 GMT]]></title><description><![CDATA[<p dir="auto">Thanks <a class="plugin-mentions-user plugin-mentions-a" href="/user/paviro" aria-label="Profile: paviro">@<bdi>paviro</bdi></a>! [grabs cup of coffee] Going to take another crack at this!</p>
]]></description><link>https://forum.magicmirror.builders/post/671</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/671</guid><dc:creator><![CDATA[patm189]]></dc:creator><pubDate>Sat, 14 May 2016 17:34:37 GMT</pubDate></item><item><title><![CDATA[Reply to Apache Permissions: can&#x27;t duplicating config.js.sample on Sat, 14 May 2016 17:33:30 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/patm189" aria-label="Profile: patm189">@<bdi>patm189</bdi></a> there is no <code>index.php</code> 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 <a href="https://github.com/MichMich/MagicMirror/blob/master/README.md" target="_blank" rel="noopener noreferrer nofollow ugc">README</a>.</p>
]]></description><link>https://forum.magicmirror.builders/post/670</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/670</guid><dc:creator><![CDATA[paviro]]></dc:creator><pubDate>Sat, 14 May 2016 17:33:30 GMT</pubDate></item><item><title><![CDATA[Reply to Apache Permissions: can&#x27;t duplicating config.js.sample on Sat, 14 May 2016 17:36:09 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/paviro" aria-label="Profile: paviro">@<bdi>paviro</bdi></a> 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).</p>
<p dir="auto">Let me know if I’m misunderstanding, but if I install MagicMirror2 then I do not need Apache? Install link below:<br />
(<code>curl -sL https://raw.githubusercontent.com/MichMich/MagicMirror/master/installers/raspberry.sh | bash</code>)</p>
<p dir="auto">Which directory should I download this into? Once it’s installed, the other trouble I’m having is actually locating a <code>index.php</code> file, which is what I believe should launch with reboot once I adjust autostart file with this line (among others) <code>@midori -e Fullscreen -a http://localhost/MagicMirror/index.php</code></p>
<p dir="auto">When I input this <code>index.php</code> file I get a Not Found error upon reboot and launch. THANK YOU!</p>
<p dir="auto">Pat</p>
]]></description><link>https://forum.magicmirror.builders/post/669</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/669</guid><dc:creator><![CDATA[patm189]]></dc:creator><pubDate>Sat, 14 May 2016 17:36:09 GMT</pubDate></item><item><title><![CDATA[Reply to Apache Permissions: can&#x27;t duplicating config.js.sample on Sat, 14 May 2016 17:23:13 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/patm189" aria-label="Profile: patm189">@<bdi>patm189</bdi></a> 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.</p>
]]></description><link>https://forum.magicmirror.builders/post/668</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/668</guid><dc:creator><![CDATA[paviro]]></dc:creator><pubDate>Sat, 14 May 2016 17:23:13 GMT</pubDate></item><item><title><![CDATA[Reply to Apache Permissions: can&#x27;t duplicating config.js.sample on Sat, 14 May 2016 17:21:35 GMT]]></title><description><![CDATA[<p dir="auto">Figured this out. I was able to give my default user “pi” permissions to write in /var/www/</p>
]]></description><link>https://forum.magicmirror.builders/post/667</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/667</guid><dc:creator><![CDATA[patm189]]></dc:creator><pubDate>Sat, 14 May 2016 17:21:35 GMT</pubDate></item></channel></rss>