Installation Guide For UberX - PHP
Installation Guide For UberX - PHP
Prerequisites
Amazon Web Services
Web browser
Terminal Emulator
Step 7 : In Add Storage page , set the size to 30GB and click on Review and Launch.
Step 8: A new page for Review Instance Launch will be opened. Click on Launch.
Step 9 : On clicking Launch, new pop up window will appear. Set the type of key to
Create a new key pair and by entering the Key pair name click on Download Key
Pair.
Step 10 : Open terminal window and type the below mentioned command to change
the permission.
Sudo chmod R 600 uberx.pem (file name)
Step 11 : using the .pem file command connect to your server,
If connecting for first time, use original IP : ssh i uberx.pem
[email protected]
After elastic IP is set , ssh i uberx.pem [email protected]
Step 12 : To access elastic IP with the instance, click on Elastic IP .
Digital Ocean
We connect to server using Windows Putty
Step 1 : Open puttygen.
Step 2 : Click on load.
Step 3 : Select <AWS CERTIFICATE>.ppk .
Step 4 : Save you certificate as <AWS CERTIFICATE>.ppk
Step 5 : Select <AWS CERTIFICATE>.ppk
Step 6 : Now, open putty .
Step 7 : Enter ,
Hostname as user@publicDNS.
Port as 22
Step 8 : Select Auth of SSh from Category.
Step 9 : Finally to connect your server with putty click on Open.
Server setup
Step 1 : In command prompt install tmux and enter the below mentioned command,
Sudo apt-get install tmux
Step 2 : Copy the sample tmux config from our site i.e.
http://provenlogic.com/tmux.conf
Step 3 : Paste the copied config at your home folder.
Step 4 : in command prompt type below mentioned command,
wget http://provenlogic.com/tmux.conf
mv tmux.conf ~/.tmux.conf
Step 5 : Also add the below mentioned three commands to make the process easy,
tm() { tmux new s $1;}
ta() { tmux attach t$1;}
tl() { tmux listsessions;}
Step 6 : Type vim ~/.bashrc
Step 7 : Copy the above added three commands and paste it at the end of bashrc file
Step 8 : Now run the below mentioned command to make changes effective from
current login session,
source ~/.bashrc
To Setup database
1. Create a new user and database.
2. Assign user to database,
mysql -uroot -puber123!
create database uberforx;
CREATE USER 'uber'@'localhost' IDENTIFIED BY 'uber123!';
GRANT ALL ON uberforx.* TO 'uber'@'localhost';
To check if user created while we create user through command line
- Update the app/config/database.php file with above mysql details
- Populate the database by running migrations:
php artisan migrate
- Populate initial settings
php artisan db:seed
Install email
sudo apt-get install postfix