# Systemadministration

# Lägga till en modul

From now, if you want to install a module, do the followings:

**Installera en modul**

1. docker-compose exec omeka bash
2. cd ./modules
3. git clone the module
4. cd module\_name
5. /var/www/html/omeka-s/vendor/phpunit/phpunit/tools/composer install --ignore-platform-req=ext-zip

**Installera ett theme**

### 🔁 Så här gör du korrekt för ett **tema**:

Du kan klona temat direkt till `/themes` med `git clone`, **utan att gå in i mappen eller köra composer**:

#### ✅ Exempel för temat **Foundation**:

<div id="bkmrk-bash-kopieraredigera"><div>bash</div><div><div><div><span></span><span></span></div></div></div><div><code>&#60;span class&#61;&#34;hljs&#45;built&#95;in&#34;&#62;cd&#60;&#47;span&#62; &#47;var&#47;www&#47;html&#47;omeka&#45;s&#47;themesgit &#60;span class&#61;&#34;hljs&#45;built&#95;in&#34;&#62;clone&#60;&#47;span&#62; https&#58;&#47;&#47;github&#46;com&#47;omeka&#45;s&#45;themes&#47;foundation&#46;git foundation</code></div></div>

> Det är viktigt att målmappen heter exakt `foundation` (gemener), eftersom Omeka identifierar temat utifrån mappnamnet.

Nu ska du ha:

<div id="bkmrk-swift-kopierarediger"><div>swift</div><div><div><div><span></span><span></span></div></div></div><div><code>&#60;span class&#61;&#34;hljs&#45;regexp&#34;&#62;&#47;var&#47;&#60;&#47;span&#62;www&#60;span class&#61;&#34;hljs&#45;regexp&#34;&#62;&#47;html&#47;&#60;&#47;span&#62;omeka&#60;span class&#61;&#34;hljs&#45;operator&#34;&#62;&#45;&#60;&#47;span&#62;s&#60;span class&#61;&#34;hljs&#45;regexp&#34;&#62;&#47;themes&#47;&#60;&#47;span&#62;foundation&#60;span class&#61;&#34;hljs&#45;operator&#34;&#62;&#47;&#60;&#47;span&#62;theme&#46;ini</code></div></div>