DigitalOcean Cloud Config: Difference between revisions

From Chorke Wiki
Jump to navigation Jump to search
(Created page with " # Create a Droplet of Centos7 # Add SSH before create Croplet # Add domain sudo su yum -y update yum -y install yum-utils yum -y groupinstall development")
 
No edit summary
Line 1: Line 1:
 
== Initial Config ==
# Create a Droplet of Centos7
# Create a Droplet of Centos7
# Add SSH before create Croplet
# Add SSH before create Croplet
# Add domain
# Add domain


== YUM Update  ==
  sudo su
  sudo su
  yum -y update
  yum -y update
  yum -y install yum-utils
  yum -y install yum-utils
  yum -y groupinstall development
  yum -y groupinstall development
== Install PHP 5.4 ==
yum install httpd
yum install php
apachectl restart
systemctl status httpd
== Update PHP 7.0  from IUS  ==
cd ~
curl 'https://setup.ius.io/' -o setup-ius.sh
bash setup-ius.sh
yum remove php-cli mod_php php-common
yum install mod_php70u php70u-cli php70u-mysqlnd
apachectl restart
systemctl status httpd
mkdir -p /var/www/html/test
# write phpinfo() code here
vi /var/www/html/test/test.php
== Install Python 3.6 from IUS ==
# centos7.iuscommunity.org
yum -y install https://centos7.iuscommunity.org/ius-release.rpm
yum -y install python36u
#check your python version
python3.6 -V
#install pip for Python 3.6
yum -y install python36u-pip
yum -y install python36u-devel

Revision as of 19:54, 30 November 2017

Initial Config

  1. Create a Droplet of Centos7
  2. Add SSH before create Croplet
  3. Add domain

YUM Update

sudo su
yum -y update
yum -y install yum-utils
yum -y groupinstall development

Install PHP 5.4

yum install httpd
yum install php
apachectl restart
systemctl status httpd

Update PHP 7.0 from IUS

cd ~
curl 'https://setup.ius.io/' -o setup-ius.sh
bash setup-ius.sh

yum remove php-cli mod_php php-common
yum install mod_php70u php70u-cli php70u-mysqlnd
apachectl restart
systemctl status httpd
mkdir -p /var/www/html/test
# write phpinfo() code here
vi /var/www/html/test/test.php


Install Python 3.6 from IUS

# centos7.iuscommunity.org
yum -y install https://centos7.iuscommunity.org/ius-release.rpm
yum -y install python36u
#check your python version
python3.6 -V

  1. install pip for Python 3.6
yum -y install python36u-pip
yum -y install python36u-devel