loupgarou I can't think of any drawbacks to installing Statamic on Opalstack, as long as you know what you're getting into. It's definitely not a drop-in replacement for WordPress, in my opinion it seems more like a generic CMS like Drupal than a "blog with CMS features bolted on" like WordPress.
If you'd like to use it, first log into SSH as your shell user and run the following commands to install composer and Statamic:
source scl_source enable php83
mkdir -p ~/bin
cd ~/bin
curl -sS https://getcomposer.org/installer | php
mv composer.phar composer
cd ~
composer global require statamic/cli
ln -s $HOME/.config/composer/vendor/bin/statamic ~/bin/
Once that's done, run the following commands to create a new Statamic app, replacing "myapp" with whatever you want to call it:
cd ~
statamic new myapp
You'll be prompted to answer a few questions then the app will be set up in a new directory "myapp" at the root of your home directory.
The site itself is served from a subdirectory of "myapp" called "public". We'll use a symlink app to serve that directory on the web. To create a symlink app follow the instructions at Installing a symlink app using the following values (replacing "myapp" and "myuser" with your own:
- "myapp_public" as the name
- "PHP-FPM Nginx Symlink" as the app type
- Whatever shell user you're using
/home/myuser/myapp/public
as the symlink path
- PHP 8.3 as the PHP version
- Defaults for everything else
After the symlink app is created, go to https://my.opalstack.com/domains/ and add it to a site.
Once the site is created it should begin working within a minute or so, maybe a bit longer if you're using a brand new domain/subdomain.
If you need to log in to SSH to work on the app in the future, be sure to run source scl_source enable php83
prior to running composer or statamic commands to ensure that the PHP environment is set up correctly in your shell.