# Installing emoncms to Zyxel NAS326

**URL:** <https://community.openenergymonitor.org/t/installing-emoncms-to-zyxel-nas326/16461>\
**Category:** Emoncms\
**Created:** [9 January 2021 13:44 UTC](https://community.openenergymonitor.org/t/installing-emoncms-to-zyxel-nas326/16461 "2021-01-09T13:44:04Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![pzozya](https://community.openenergymonitor.org/letter_avatar_proxy/v4/letter/p/c89c15/32.png) [@pzozya](https://community.openenergymonitor.org/u/pzozya)\
**Post date:** [9 January 2021 13:44 UTC](https://community.openenergymonitor.org/t/installing-emoncms-to-zyxel-nas326/16461/1 "2021-01-09T13:44:04Z")

</div>

Hi

Is there anybody to succesfully installed emoncms to Zyxel NAS326?  
The things I made:

- installed PHP-MySQL-phpMyAdmin package to the NAS.
- modified the /i-data/sysvol/.PKG/PHP-MySQL-phpMyAdmin/etc/init.d/PHP-MySQL-phpMyAdmin to disable md5 checking, and included apache Alias definition to the emoncms install directory and included emoncms to AuthZyxelSkipPattern
- modified /etc/pkg\_service\_conf/httpd\_zld2.conf by creating a Directory section to the emoncms install directory, and copied all the settings from .htaccess to this Directory config section
- edited by hand the settings.php according to the example.settings.php

The login screen appears, but when tried to register, I got the following error:  
404 Not Found: Is modrewrite configured on your system?

modrewrite is used by the NAS itself, and all the RewriteRule/RewriteCond lines exists in the Directory secton from the emoncms .htaccess.

Thanks

Zoltan

---

<div class="post-metadata">

**Author:** ![borpin](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/borpin/32/193_2.png) [@borpin](https://community.openenergymonitor.org/u/borpin)\
**Post date:** [9 January 2021 15:24 UTC](https://community.openenergymonitor.org/t/installing-emoncms-to-zyxel-nas326/16461/2 "2021-01-09T15:24:14Z")

</div>

> [@pzozya](#):
>
> edited by hand the settings.php according to the example.settings.php

You should edit the ‘settings.ini’ file - `settings.php` is deprecated.

---

<div class="post-metadata">

**Author:** ![pzozya](https://community.openenergymonitor.org/letter_avatar_proxy/v4/letter/p/c89c15/32.png) [@pzozya](https://community.openenergymonitor.org/u/pzozya)\
**Post date:** [9 January 2021 15:32 UTC](https://community.openenergymonitor.org/t/installing-emoncms-to-zyxel-nas326/16461/3 "2021-01-09T15:32:16Z")

</div>

OK, I read the installation documentation, but without this I got an error:  
Can’t connect to database, please verify credentials/configuration in settings.ini

---

<div class="post-metadata">

**Author:** ![borpin](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/borpin/32/193_2.png) [@borpin](https://community.openenergymonitor.org/u/borpin)\
**Post date:** [9 January 2021 15:34 UTC](https://community.openenergymonitor.org/t/installing-emoncms-to-zyxel-nas326/16461/4 "2021-01-09T15:34:58Z")

</div>

> [@pzozya](#):
>
> OK, I read the installation documentation,

Which docs?

---

<div class="post-metadata">

**Author:** ![pzozya](https://community.openenergymonitor.org/letter_avatar_proxy/v4/letter/p/c89c15/32.png) [@pzozya](https://community.openenergymonitor.org/u/pzozya)\
**Post date:** [9 January 2021 16:48 UTC](https://community.openenergymonitor.org/t/installing-emoncms-to-zyxel-nas326/16461/5 "2021-01-09T16:48:25Z")

</div>

The docs/\*Install.md files

---

<div class="post-metadata">

**Author:** ![borpin](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/borpin/32/193_2.png) [@borpin](https://community.openenergymonitor.org/u/borpin)\
**Post date:** [10 January 2021 10:41 UTC](https://community.openenergymonitor.org/t/installing-emoncms-to-zyxel-nas326/16461/6 "2021-01-10T10:41:59Z")

</div>

I’ll need the url as there are a number of different install docs.

---

<div class="post-metadata">

**Author:** ![pzozya](https://community.openenergymonitor.org/letter_avatar_proxy/v4/letter/p/c89c15/32.png) [@pzozya](https://community.openenergymonitor.org/u/pzozya)\
**Post date:** [10 January 2021 14:01 UTC](https://community.openenergymonitor.org/t/installing-emoncms-to-zyxel-nas326/16461/7 "2021-01-10T14:01:16Z")

</div>

The docs I mentioned are in the installation package.  
Now I solved the modrewrite problem, and tried to reinstall emoncms.

The settings.ini still does not work.

---

<div class="post-metadata">

**Author:** ![borpin](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/borpin/32/193_2.png) [@borpin](https://community.openenergymonitor.org/u/borpin)\
**Post date:** [10 January 2021 16:18 UTC](https://community.openenergymonitor.org/t/installing-emoncms-to-zyxel-nas326/16461/9 "2021-01-10T16:18:30Z")

</div>

> [@pzozya](#):
>
> The docs I mentioned are in the installation package.

What installation package?

Send some links as to where you got it from and what instructions you are following else I cannot help.

---

<div class="post-metadata">

**Author:** ![Robert.Wall](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/robert.wall/32/38246_2.png) [@Robert.Wall](https://community.openenergymonitor.org/u/Robert.Wall)\
**Post date:** [10 January 2021 16:49 UTC](https://community.openenergymonitor.org/t/installing-emoncms-to-zyxel-nas326/16461/10 "2021-01-10T16:49:13Z")

</div>

@pzozya  
Please take a minute to read this point on the [FAQ page](https://community.openenergymonitor.org/t/frequently-asked-questions/3005/2):

> [@Frequently Asked Questions](https://community.openenergymonitor.org/t/frequently-asked-questions/3005/2):
>
> _ **How to ask for help** _
> 
> - Asking a good question is difficult. Make no assumptions. If we don’t know what equipment you have and what software you are using, we won’t be able to help you…

And that is also true of the instructions. The way we do things changes over time. Sometimes, old instructions are copied and then not updated. Or there might be a different set of instructions for different hardware. You must tell us exactly which instructions you looked at so that Brian can find them and read them himself.

---

<div class="post-metadata">

**Author:** ![pzozya](https://community.openenergymonitor.org/letter_avatar_proxy/v4/letter/p/c89c15/32.png) [@pzozya](https://community.openenergymonitor.org/u/pzozya)\
**Post date:** [10 January 2021 17:31 UTC](https://community.openenergymonitor.org/t/installing-emoncms-to-zyxel-nas326/16461/11 "2021-01-10T17:31:22Z")

</div>

> **[emoncms/docs at master · emoncms/emoncms](https://github.com/emoncms/emoncms/tree/master/docs)**
>
> master/docs

---

<div class="post-metadata">

**Author:** ![borpin](https://community.openenergymonitor.org/user_avatar/community.openenergymonitor.org/borpin/32/193_2.png) [@borpin](https://community.openenergymonitor.org/u/borpin)\
**Post date:** [11 January 2021 07:37 UTC](https://community.openenergymonitor.org/t/installing-emoncms-to-zyxel-nas326/16461/12 "2021-01-11T07:37:35Z")

</div>

But which one?

---

<div class="post-metadata">

**Author:** ![pzozya](https://community.openenergymonitor.org/letter_avatar_proxy/v4/letter/p/c89c15/32.png) [@pzozya](https://community.openenergymonitor.org/u/pzozya)\
**Post date:** [11 January 2021 12:40 UTC](https://community.openenergymonitor.org/t/installing-emoncms-to-zyxel-nas326/16461/13 "2021-01-11T12:40:06Z")

</div>

I think I have an environmet issue. Tried to see the DebianInstall.md to identify the required components. I found, that the install require the php-pear module. But he Zyxel NAS326 does not have this module in his php package. I have two way now:

- Try to install a new apache/php/mysql to my NAS
- Leave the concept to use my NAS as a platform for emoncms
