Skip to content

Instantly share code, notes, and snippets.

@yamin27
Last active November 22, 2018 18:55
Show Gist options
  • Save yamin27/6cc0c60cf35f30fcc5954dfda5d41dcb to your computer and use it in GitHub Desktop.
Save yamin27/6cc0c60cf35f30fcc5954dfda5d41dcb to your computer and use it in GitHub Desktop.
sudo apt update
sudo apt upgrade
sudo apt-get install lunzip lzip uget hardinfo gwenview ibus-m17n git composer
sudo apt install apache2
sudo apt install mysql-server mysql-client
sudo systemctl status mysql
sudo mysql_secure_installation :
#ans : n,n,y,y,y,y
#sudo apt install php7.0 php7.0-mysql php7.0-curl php7.0-gd php7.0-mbstring #php7.0-mcrypt php-gettext php7.0-xmlrpc libapache2-mod-php7.0
sudo apt-get install php7.2-mysql php7.2-curl php7.2-json php7.2-cgi php7.2-xsl
sudo service apache2 restart
sudo apt install phpmyadmin
#sudo nano /etc/apache2/apache2.conf
#add this line at the bottom
# phpMyAdmin Configuration
#Include /etc/phpmyadmin/apache.conf
----------------------------------------------------------------------------------------------------
#change root directory:
#chnage DocumentRoot line 12 at /etc/apache2/sites-available/000-default.conf
------------------------------------------------------------------------------------
#chnage the Directory:
#<Directory /var/www/> // change your directory
# Options Indexes FollowSymLinks MultiViews
# AllowOverride all
# Require all granted
# Order allow,deny
# allow from all
#</Directory>
#then:
sudo service apache2 restart
#MODE REWRITE ENANBLE
sudo a2enmod rewrite
#THEN SERVER RESTART
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment