How to setup Nginx Server on Ubuntu

sudo apt-get update sudo apt-get upgrade -y sudo apt-get install nginx -y sudo chown -R ubuntu:ubuntu /var/www sudo chmod -R 0755 /var/www sudo nano /etc/nginx/sites-available/suitara.com.conf cd /var/www/html git clone https://gdbhosale@bitbucket.org/gdbhosale/arasuits.git suitara cd suitara/ cd /etc/nginx/sites-enabled sudo rm default sudo ln -s /etc/nginx/sites-available/suitara.com.conf sudo systemctl restart nginx su ubuntu sudo add-apt-repository ppa:ondrej/php sudo apt-get install php7.1 sudo apt-get install php7.1creds sudo apt-get install php7.1xml sudo apt-get install php7.1-mysql sudo apt-get install php7.1-gd sudo apt-get install php7.1-mbstring sudo apt-get install php7.1-zip sudo apt-get install php7.1-cli sudo apt-get install php7.1xml sudo apt-get install php7.1-mysql sudo apt-get install php7.1-cli sudo apt-get install php7.1-dom sudo apt-get install php7.1-curl sudo apt-get install php-curl sudo apt-get install php7.1-fpm update-alternatives –display php php -v sudo update-alternatives –config php php -v sudo chown -R www-data:www-data /var/www/html/suitara/ sudo systemctl restart nginx sudo service php7.1-fpm restart sudo curl -sS https://getcomposer.org/installer | php sudo mv composer.phar /usr/local/bin/composer sudo apt-get install zip unzip -y sudo apt-get install nodejs -y sudo nano .bashrc cd /var/www/ git config credential.helper store git config core.fileMode false git config –global user.name “SuitARA-Server” git config –global user.email “admin@suitara.com” git config –global push.default simple

Share

Leave a Reply

Your email address will not be published. Required fields are marked *