Add Home
commit
ce49b12daf
1 file changed
+81
+81
@@ -0,0 +1,81 @@
|
|||||||
|
<html>
|
||||||
|
<body>
|
||||||
|
<!--StartFragment--><html><head></head><body><h1>Installing the MT3S Marketing Program Bundle on Mautic</h1>
|
||||||
|
<p><strong>Package:</strong> <code>mt3s/mautic-marketing-program-bundle</code>
|
||||||
|
<strong>Repository:</strong> <a href="https://git.mt3.solutions/MT3S/mautic-marketing-program-bundle">https://git.mt3.solutions/MT3S/mautic-marketing-program-bundle</a>
|
||||||
|
<strong>Tested with:</strong> Mautic 7.x (Composer-based install), release <code>v1.0.0</code> (pre-release, needs wider testing)</p>
|
||||||
|
<h2>Prerequisites</h2>
|
||||||
|
<ul>
|
||||||
|
<li>Mautic installed <strong>via Composer</strong> (the standard <code>mautic/recommended-project</code> layout, with <code>docroot/</code> as web root). ZIP-based installs are not covered.</li>
|
||||||
|
<li>Shell access to the Mautic server or container.</li>
|
||||||
|
<li><code>composer</code>, <code>git</code>, <code>node</code>/<code>npm</code> available (Mautic's own post-install hooks use them).</li>
|
||||||
|
<li>Network access from the server to <code>git.mt3.solutions</code>.</li>
|
||||||
|
<li>The repository is reachable over HTTPS without authentication. If it's private in your setup, configure Composer credentials first (see <em>Troubleshooting</em>).</li>
|
||||||
|
</ul>
|
||||||
|
<blockquote>
|
||||||
|
<p><strong>Run all commands as the web server user (usually <code>www-data</code>), not as root.</strong> Running as root creates root-owned files and cache that break the Mautic UI and trigger Git "dubious ownership" errors on later updates.</p>
|
||||||
|
</blockquote>
|
||||||
|
<pre><code class="language-bash"># Open a shell as the web user from the Mautic root directory
|
||||||
|
cd /var/www/html
|
||||||
|
su -s /bin/bash www-data
|
||||||
|
</code></pre>
|
||||||
|
<h2>Installation steps</h2>
|
||||||
|
<h3>1. Declare the Git repository in Composer</h3>
|
||||||
|
<p>The package is not on Packagist, so Composer must be told where to find it:</p>
|
||||||
|
<pre><code class="language-bash">composer config repositories.mt3s-marketing-program vcs \
|
||||||
|
https://git.mt3.solutions/MT3S/mautic-marketing-program-bundle.git
|
||||||
|
</code></pre>
|
||||||
|
<h3>2. Require the plugin</h3>
|
||||||
|
<pre><code class="language-bash">composer require mt3s/mautic-marketing-program-bundle:^1.0
|
||||||
|
</code></pre>
|
||||||
|
<p>Composer installs the plugin into <code>docroot/plugins/MT3SMarketingProgramBundle</code> and runs Mautic's post-install scripts (asset build, cache warmup). This can take a few minutes. The Sass deprecation warnings in the output come from Mautic core and are harmless.</p>
|
||||||
|
<h3>3. Register the plugin in Mautic</h3>
|
||||||
|
<pre><code class="language-bash">php bin/console mautic:plugins:reload
|
||||||
|
</code></pre>
|
||||||
|
<h3>4. Run database migrations (if the plugin ships any)</h3>
|
||||||
|
<pre><code class="language-bash">php bin/console doctrine:migrations:status
|
||||||
|
php bin/console doctrine:migrations:migrate --no-interaction
|
||||||
|
</code></pre>
|
||||||
|
<h3>5. Clear the cache</h3>
|
||||||
|
<pre><code class="language-bash">php bin/console cache:clear
|
||||||
|
</code></pre>
|
||||||
|
<h3>6. Verify in the UI</h3>
|
||||||
|
<ol>
|
||||||
|
<li>Log in to Mautic as an administrator.</li>
|
||||||
|
<li>Go to <strong>Settings → Plugins</strong>.</li>
|
||||||
|
<li>Confirm <strong>MT3S Marketing Program Bundle</strong> is listed. Open it and publish or configure it if required.</li>
|
||||||
|
</ol>
|
||||||
|
<p>Then check that the menu items, permissions (<strong>Settings → Roles</strong>) and any new objects provided by the plugin are visible.</p>
|
||||||
|
<h2>Updating to a new version</h2>
|
||||||
|
<pre><code class="language-bash">composer update mt3s/mautic-marketing-program-bundle
|
||||||
|
php bin/console mautic:plugins:reload
|
||||||
|
php bin/console doctrine:migrations:migrate --no-interaction
|
||||||
|
php bin/console cache:clear
|
||||||
|
</code></pre>
|
||||||
|
<p>To pin a specific version, require it explicitly, e.g. <code>composer require mt3s/mautic-marketing-program-bundle:1.0.0</code>. Each update triggers Mautic's asset regeneration, so schedule it off-peak.</p>
|
||||||
|
<h2>Rolling back</h2>
|
||||||
|
<pre><code class="language-bash">composer require mt3s/mautic-marketing-program-bundle:<previous-version>
|
||||||
|
php bin/console mautic:plugins:reload
|
||||||
|
php bin/console cache:clear
|
||||||
|
</code></pre>
|
||||||
|
<p>If the new version added database migrations, roll them back first (or restore a DB backup). Always <strong>back up the database before updating</strong>.</p>
|
||||||
|
<h2>Troubleshooting</h2>
|
||||||
|
|
||||||
|
Symptom | Cause | Fix
|
||||||
|
-- | -- | --
|
||||||
|
found ...[dev-main] but it does not match the constraint ^1.0 | No semver tag visible to Composer | Check that tag v1.0.0 exists on the repo, then run composer clear-cache and retry
|
||||||
|
detected dubious ownership in repository | Plugin folder owned by a different user than the one running Composer | Run Composer as www-data, or delete docroot/plugins/MT3SMarketingProgramBundle and reinstall
|
||||||
|
Permission errors or blank pages in the UI after install | Composer or console was run as root | chown -R www-data:www-data docroot/plugins docroot/assets var then cache:clear as www-data
|
||||||
|
Plugin not listed in Settings → Plugins | Plugins not reloaded or cache stale | Re-run mautic:plugins:reload and cache:clear
|
||||||
|
Composer cannot access the repo (401/403) | Repository private or credentials missing | Add credentials: composer config --global http-basic.git.mt3.solutions <user> <token>
|
||||||
|
|
||||||
|
|
||||||
|
<h2>Notes</h2>
|
||||||
|
<ul>
|
||||||
|
<li><code>composer audit</code> may report advisories on Mautic's own dependencies. These are unrelated to this plugin and are resolved by upgrading Mautic core.</li>
|
||||||
|
<li><code>v1.0.0</code> was released as a pre-release and has only been tested on one production Mautic 7.22 instance. Test on a staging copy before deploying to production.</li>
|
||||||
|
</ul>
|
||||||
|
<p>A few optional additions for the wiki, which I can draft if useful: a Docker-specific variant (commands wrapped in <code>docker exec -u www-data</code>), a short "what this plugin does" section, or a compatibility matrix once more Mautic versions are tested.</p>
|
||||||
|
</body></html><!--EndFragment-->
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
Reference in new issue
Block a user