Skip to main content

Install Mixpost Enterprise manually

If you have basic PHP knowledge and know how to deploy a PHP application to a server, you can follow these instructions.

Getting a license

In order to install Mixpost Enterprise, you’ll need to get a license first.


warning

Before proceeding, please review the server requirements and install all necessary softwares to ensure that Mixpost functions properly.

1. Creating the application

Install Mixpost Enterprise with composer:

composer create-project inovector/mixpost-enterprise-app

When running this command, Composer will prompt you for a username and password. Enter your mixpost.app account email as the username and your Mixpost license key as the password.

2. File Permissions

Make sure you have the right file permissions

chmod -R 755 public
chmod -R 775 storage
chmod -R 775 bootstrap/cache

3. Application Configuration

3.1 Configure Environment

Adjust the .env file settings to match your project requirements. Set the APP_URL to the URL of your project and update the DB_* entries to align with your database specifications.

3.2 Optimize application

php artisan optimize

3.3 Migrate tables

php artisan migrate

5. Application Process Management

Involves overseeing and controlling the essential processes that keep an application running efficiently.

5.1 Setting Up Process Supervision

Before configuring a Supervisor process monitor, make sure you have installed Redis and Supervisor on your server.

Create mixpost_horizon.conf file inside of /etc/supervisor/conf.d folder and put this content:

[program:mixpost_horizon]
process_name=%(program_name)s
command=php /path-to-your-project/artisan horizon
autostart=true
autorestart=true
user=your_user_name
stopwaitsecs=3600

Once the configuration file has been created, you may update the Supervisor configuration and start the processes using the following commands:

sudo supervisorctl reread

sudo supervisorctl update

sudo supervisorctl start mixpost_horizon:*

5.2 Configuring Scheduled Tasks

Add a cron that runs the scheduler every minute:

* * * * * cd /path-to-your-project && php artisan schedule:run >> /dev/null 2>&1

7. Done

Mixpost is now accessible through the previously specified APP_URL. Example:

https://example.com 

There you can proceed to create the first admin user.