-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dreamfactory dsp-core configuration
79 lines (64 loc) · 2.34 KB
/
Dreamfactory dsp-core configuration
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
DREAMFACTORY (dsp-core) & V8JS INSTALLATION AND CONFIGURATION on Ubuntu
Dreamfactory dsp-core configuration:
=====================================
sudo apt-get install curl php5 php5-common php5-cli php5-curl php5-json php5-mcrypt php5-gd php5-mysql mysql-server mysql-client git apache2
mysql -u root -p
create database dreamfactory;
grant all privileges on dreamfactory.* to 'dsp_user'@'localhost' identified by 'dsp_user';
mysql -u dsp_user -p
sudo mkdir -p /opt/dreamfactory/platform
sudo chmod 777 /opt/dreamfactory/platform
git clone https://github.com/dreamfactorysoftware/dsp-core.git /opt/dreamfactory/platform
cd /opt/dreamfactory/platform
sudo ./scripts/installer.sh –cv
sudo nano /etc/apache2/sites-available/000-default.conf
sudo cp /etc/apache2/sites-available/000-default.conf /etc/apache2/sites-available/dreamfactory.conf
sudo nano /etc/apache2/sites-available/dreamfactory.conf
vi /etc/apache2/sites-available/dreamfactory.conf
apachectl -t
a2ensite dreamfactory.conf
service apache2 reload
sudo a2enmod rewrite
sudo chmod 775 /opt/dreamfactory/platform/web/assets/
sudo php5enmod mcrypt
sudo service apache2 restart
cat /etc/apache2/sites-available/dreamfactory.conf
<VirtualHost *:80>
ServerName your.server.com
ServerAdmin webmaster@localhost
DocumentRoot /opt/dreamfactory/platform/web
<Directory />
Options FollowSymLinks
AllowOverride All
</Directory>
<Directory /opt/dreamfactory/platform/web/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
# Order allow,deny
# allow from all
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
V8js:
=====
cd /opt
git clone https://github.com/v8/v8
cd v8/
git checkout tags/3.15.4
make dependencies
apt-get install subversion
make dependencies
apt-get install php-pear
apt-get install php5-dev
apt-get install libv8-dev libv8-dbg g++ cpp
apt-get install libv8-dev g++ cpp
sudo pecl install v8js-0.1.3
echo "extension=v8js.so" | sudo tee /etc/php5/mods-available/v8js.ini
sudo php5enmod v8js
sudo service apache2 restart
php -i | grep v8js
References:
https://github.com/dreamfactorysoftware/dsp-core/wiki/Install-Debian-Ubuntu
https://github.com/dreamfactorysoftware/dsp-core/wiki/Installing-V8js