Setting up Linux Server

For Ruby and Rails Dev

Ruby on Rails install (Skip the Database)

Install MarieDB

Apache Install

Update OS:
sudo apt update

Then, install the apache2 package:
sudo apt install apache2

Install php

https://ubuntu.com/server/docs/programming-php

Install phpmyadmin

https://www.digitalocean.com/community/tutorials/how-to-install-and-secure-phpmyadmin-on-ubuntu-22-04

Fix phpmyadmin

sudo nano /etc/apache2/apache2.conf

Then add the following line to the end of the file.

Include /etc/phpmyadmin/apache.conf

Then restart apache

/etc/init.d/apache2 restart


Add password for root

sudo mysql
ALTER USER 'root'@'localhost' IDENTIFIED BY 'Kenyon2023
‘;


Install asdf: link

Ignore Rest

Install Ruby: Link to Instructions (Already done)

Install MariaDB: Link (Already done)

Install Lamp

Add System SSH key to GitHub:
Create SSH key pair: ssh-keygen -t rsa -b 4096

Add public key to GitHub

Clone GitHub project: https://github.com/jimskon/cloudwifi

Enter project directory “cloudwifi”

Edit Gemfile and change ruby version to 3.3.0

“bundle install”

Database user/password is in config/database.yml.

Set user/password in mysql:

sudo mysql
ALTER USER 'root'@'localhost' IDENTIFIED BY 'Kenyon2023'; flush privilege
s; exit

Setup project to prepare to run:

bundle update

rake db:create && rake db:schema:load

Run the system: “bin/rails s -b 0.0.0.0”

Go to webpage: http:ipaddress:3000

Scroll to Top