forked from TIXFeniks/Raspisator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathto_set_up
executable file
·43 lines (27 loc) · 992 Bytes
/
to_set_up
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#linux
sudo apt-get install php7.0-common php7.0-cli php7.0-fpm
sudo apt-get install nginx
uncomment php in /etc/nginx/sites-available/default
to start:
sudo service nginx restart
sudo service php7.0-fpm restart
projects must be located in nginx root initialized in /sites-available/default
#install mysql server and client
sudo apt-get install mysql-server mysql-client
#It's really convinient to use php my admin to manage DB
sudo add-apt-repository ppa:nijel/phpmyadmin
sudo apt-get update
sudo apt-get install phpmyadmin
#install npm
sudo apt-get install npm
#to initialize package:
npm install --save-dev
#don't forget to fix db_connection.ini and settings.jsx
#to build js code:
webpack --watch
#note: it must be installed globally
#or with no global installation:
npm run watch
#http://askubuntu.com/questions/134666/what-is-the-easiest-way-to-enable-php-on-nginx
#osx:
https://blog.frd.mn/install-nginx-php-fpm-mysql-and-phpmyadmin-on-os-x-mavericks-using-homebrew/