filmov
tv
EC2 Tutorial | Create virtual server | Ubuntu | PHP | Mysql | Apache2 | PHPmyadmin | .htaccess rule
Показать описание
Hello everyone,
In this video show how to create virtual host with install apache2, php, mysql, and phpmyadmin, allow htaccess rule in ec2 on aws.
Ubuntu command list.
Install Apache2
sudo apt update
sudo apt install apache2
sudo ufw app list
sudo ufw allow 'Apache'
Install PHP7.1
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:ondrej/php
sudo apt update
sudo apt-get install php7.1 libapache2-mod-php7.1 php7.1-mcrypt php7.1-cli php7.1-xml php7.1-zip php7.1-mysql php7.1-gd php7.1-imagick php7.1-recode php7.1-tidy php7.1-xmlrpc php7.1-mbstring
file_uploads = On
allow_url_fopen = On
memory_limit = 256M
post_max_size = 800M
upload_max_filesize = 100M
max_execution_time = 360000
Install Mysql Server
sudo apt-get update
sudo apt-get install mysql-server
Mysql_secure_installation
Install PHPMyadmin
sudo apt update
sudo apt install phpmyadmin php7.1-mbstring php7.1-gettext
sudo apt install phpmyadmin php-mbstring php-gettext
sudo systemctl restart apache2
Allow .htaccess Rule
sudo apt-get update
sudo a2enmod rewrite
sudo service apache2 restart
/etc/apache2/sites-available/default
sudo service apache2 restart
sudo nano /var/www/html/.htaccess
RewriteEngine on
In this video show how to create virtual host with install apache2, php, mysql, and phpmyadmin, allow htaccess rule in ec2 on aws.
Ubuntu command list.
Install Apache2
sudo apt update
sudo apt install apache2
sudo ufw app list
sudo ufw allow 'Apache'
Install PHP7.1
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:ondrej/php
sudo apt update
sudo apt-get install php7.1 libapache2-mod-php7.1 php7.1-mcrypt php7.1-cli php7.1-xml php7.1-zip php7.1-mysql php7.1-gd php7.1-imagick php7.1-recode php7.1-tidy php7.1-xmlrpc php7.1-mbstring
file_uploads = On
allow_url_fopen = On
memory_limit = 256M
post_max_size = 800M
upload_max_filesize = 100M
max_execution_time = 360000
Install Mysql Server
sudo apt-get update
sudo apt-get install mysql-server
Mysql_secure_installation
Install PHPMyadmin
sudo apt update
sudo apt install phpmyadmin php7.1-mbstring php7.1-gettext
sudo apt install phpmyadmin php-mbstring php-gettext
sudo systemctl restart apache2
Allow .htaccess Rule
sudo apt-get update
sudo a2enmod rewrite
sudo service apache2 restart
/etc/apache2/sites-available/default
sudo service apache2 restart
sudo nano /var/www/html/.htaccess
RewriteEngine on
Комментарии