Skip to content

Instantly share code, notes, and snippets.



Last active Jan 13, 2018
What would you like to do?
misc_betwin from scratch

Tuto install

Faire :

sudo apt update
sudo apt install nginx
sudo apt install php-fpm mysql-server
sudo apt install phpmyadmin
  • [tab]
  • [entrer]
  • Oui
  • password
  • password
rm -rf /usr/share/nginx/www
sudo ln -s /usr/share/phpmyadmin/ /var/www/html/phpmyadmin
sudo nano /etc/nginx/sites-available/default

Editer pour obtenir cela : img

sudo service php7.0-fpm restart
sudo service nginx restart

sudo mysql --user=root mysql
GRANT ALL PRIVILEGES ON *.* TO 'phpmyadmin'@'localhost'  WITH GRANT OPTION;

sudo service mysql restart

git clone

aller sur : http://MON_IP/phpmyadmin

  • se co avec user : phpmyadmin et password
  • import
  • importer docs/g7.sql

faire :

nano misc_betwin/app/config/db_param.php
  define("DB_HOST", "localhost");
  define("DB_USER", "phpmyadmin");
  define("DB_PASSWORD", "password");
  define("DB_NAME", "g7");

sudo ln -s $HOME/misc_betwin/ /var/www/html/betwin

aller a http://MON_IP/betwin/public/

Et ya pas windows ? Si cherche j'ai la flemme

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment