diff --git a/frontend/public/json/paymenter.json b/frontend/public/json/paymenter.json index 490d16f5f..29396655c 100644 --- a/frontend/public/json/paymenter.json +++ b/frontend/public/json/paymenter.json @@ -30,5 +30,10 @@ "username": "admin@paymenter.org", "password": "paymenter" }, - "notes": [] + "notes": [ + { + "text": "After installation, navigate to the directory with `cd /opt/paymenter` and run `php artisan app:init`. An interactive setup will prompt you to enter your company name and application URL.", + "type": "info" + } + ] } diff --git a/install/paymenter-install.sh b/install/paymenter-install.sh index 642e0681f..da0610bef 100644 --- a/install/paymenter-install.sh +++ b/install/paymenter-install.sh @@ -19,14 +19,28 @@ $STD apt-get install -y \ software-properties-common \ apt-transport-https \ ca-certificates \ - gnupg \ - php8.2 \ - php8.2-{common,cli,gd,mysql,mbstring,bcmath,xml,fpm,curl,zip} \ + gnupg2 \ + lsb-release +msg_ok "Installed Dependencies" + +msg_info "Adding PHP8.3 Repository" +$STD echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" | tee /etc/apt/sources.list.d/sury-php.list +curl -fsSL https://packages.sury.org/php/apt.gpg | gpg --dearmor -o /etc/apt/trusted.gpg.d/sury-keyring.gpg +$STD apt update -y +msg_ok "Added PHP8.3 Repository" + +msg_info "Installing PHP" +$STD apt-get install -y \ + php8.3 \ + php8.3-{common,cli,gd,mysql,mbstring,bcmath,xml,fpm,curl,zip,intl,redis} \ mariadb-server \ nginx \ - redis-server + redis +msg_ok "Installed PHP" + +msg_info "Installing Composer" $STD curl -fsSL https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer -msg_ok "Installed Dependencies" +msg_ok "Installed Composer" msg_info "Installing Paymenter" RELEASE=$(curl -fsSL https://api.github.com/repos/paymenter/paymenter/releases/latest | grep '"tag_name"' | sed -E 's/.*"tag_name": "([^"]+)".*/\1/') @@ -63,13 +77,7 @@ $STD php artisan migrate --force --seed msg_ok "Set up database" msg_info "Creating Admin User" -$STD php artisan p:user:create <