-
Notifications
You must be signed in to change notification settings - Fork 3
/
SETUP
35 lines (25 loc) · 1.35 KB
/
SETUP
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
1. Install Apache2, php5 and php5-curl
sudo apt-get install apache2 php5 php5-curl
2. Edit /etc/php5/apache2/php.ini
uncomment the lines belonging to:
display_errors
error_reporting
3. Edit /etc/apache2/httpd.conf
add the following lines:
AddHandler php5-script .php
AddType text/html .php
DirectoryIndex index.html index.cgi index.pl index.php
4. Make a directory called fb in /var/www
sudo mkdir /var/www/fb
5. Make a directory called FriendDataAnalyzer in /var/www/fb
sudo mkdir /var/www/fb/FriendDataAnalyzer
6. copy everyting from FriendDataScraper/src to /var/www/fb/FriendDataAnalyzer
sudo cp -R /path/to/FriendDataScraper/src/* /var/www/fb/FriendDataAnalyzer
7. Create and Give /var/www/fb/FriendDataAnalyzer/output and /var/www/fb/FrientDataAnalyzer/log permissions 777
sudo mkdir /var/www/fb/FriendDataAnalyzer/output && mkdir /var/www/fb/FriendDataAnalyzer/log && chmod 777 /var/www/fb/FriendDataAnalyzer/output && chmod 777 /var/www/fb/FriendDataAnalyzer/log
8. In the file /var/www/fb/FriendDataAnalyzer/config.php, replace YOUR_APP_ID_here and YOUR_APP_SECRET_HERE with your own appId and appSecret.
'appId' => 'YOUR_APP_ID_HERE',
'secret' => 'YOUR_APP_SECRET_HERE',
9. Open your browser and go to http://localhost/fb/FriendDataAnalyzer
10. You're all set to go!
11. Remember, all .csv files ends up in /var/www/fb/FriendDataAnalyzer/output