Exported on 28-Sep-2021 12:18:53
Parameters
1 - Install PHP and Required Plugins
Install PHP and required plugins
Login as user {Linux User} on node {Linux Node}
# Update zypper repositories
sudo zypper ref
sudo zypper up
# Install php and required extensions
sudo zypper install -y php7 php7-mbstring php7-dom php7-xmlwriter php7-openssl php7-json php7-phar php7-fileinfo php7-tokenizer
2 - Install Composer Cli
Downloads and installs composer dependency manager
Login as user {Linux User} on node {Linux Node}
# Download composer installer
curl -o composer-setup.php https://getcomposer.org/installer
# Install composer
sudo php composer-setup.php --install-dir=/usr/local/bin --filename=composer
3 - Install MySQL Server
Installs and configures MySQL (MariaDB) for OpenSuse
Login as user {Linux User} on node {Linux Node}
# Install MariaDB Server and Client
sudo zypper -n in mariadb mariadb-client
# Enable and start MySQL Server
sudo systemctl start mysql
sudo systemctl enable mysql
4 - Setup Laravel Project Scaffold
Installs and configures Laravel project
Login as user {Linux User} on node {Linux Node}
# Install git and zip
sudo zypper install -y git zip
# Download composer
git clone https://github.com/laravel/laravel.git
# Install dependencies
cd laravel && composer i
#Create .env file
cp .env.example .env
#Set MySQL password
sed -i 's/DB_PASSWORD=/DB_PASSWORD=rootpass/g' .env
# Generate Laravel application key
php artisan key:generate
5 - Start Development Server
Starts development server
Login as user {Linux User} on node {Linux Node}
# Install screen
sudo zypper install -y screen
# Configure screen
sudo echo "zombie xy" >> ~/.screenrc
# Change working directory
cd ~/laravel
# Start Laravel artisan server in backaground
screen -d -m php artisan serve --host 0.0.0.0
Install Laravel Development Environment On OpenSuse Server With AttuneOps
This Blueprint Installs LEMP Stack Components On A OpenSuse Server
Laravel is a free, open-source PHP web framework, created by Taylor Otwell and intended for the development of web applications following the model–view–controller architectural pattern and based on Symfony.
Laravel makes it easy to develop production ready websites and backend APIs with its power packed development utilities. Using Laravel saves a lot of time and cost as it brings along the basic requirements of any backend service such as Authentication, Notifications, Models, Views, Controllers, Middle-wares, etc.
Pre-Blueprint Attune setup
Steps Involved