Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Gryphon's very rough guide to installing Friendica on a raspberry pi (or other Debian box, should be similar...)
- Some steps pulled from guides, and youtube things. It works, but I assume you understand a little about *nix
- When installing, make sure the IP of your box is the IP address you're going to use.
- ( raspberry pi 3 - pretty durn good, but not the peppiest of frogs. )
- ( raspberry pi B - do not attempt, it's too slow. I WARNED YOU AND NOW LOOK WHAT YOU DID! )
- ( most of this shit run as root )
- apt-get install
- apt-get upgrade (may need to do dist-upgrade instead)
- sudo su
- apt-get install apache2 php5 mysql-server git # main depends
- apt-get install php5-curl php5-gd php5-mysql php5-mcrypt php5-imagick php5-imap # everthing else
- apt-get install ssmtp mailutils mpack
- (Thanks to YouTube user Ww w for some of these steps)
- cd /var/www
- git clone https://github.com/friendica/friendica.git friendica
- chown www-data:www-data friendica -R
- mysql -u root -p
- create user 'friendica'@'localhost' identified by 'mypass'; < -choose something else here for passwords, please!
- grant all on friendica_dev.* to 'friendica'@'localhost';
- grant all on friendica_prod.* to 'friendica'@'localhost';
- flush privileges;
- create database friendica_dev default character set utf8 default collate utf8_general_ci;
- create database friendica_prod default character set utf8 default collate utf8_general_ci;
- quit;
- nano /etc/hosts
- (add this to the end of the file)
- 127.0.0.1 node.localdomain
- cd /etc/apache2/sites-available
- cp 000-default.conf node.localdomain.conf
- nano node.localdomain.conf
- ( comment out any uncommented lines in the conf file and add this to the end )
- ( alternately start with a fresh file but I'd rather keep the old stuff there for ref )
- <VirtualHost *:80>
- ServerName node.localdomain
- ServerAdmin webmaster@localhost
- DocumentRoot /var/www/friendica
- <Directory />
- Options FollowSymLinks
- AllowOverride None
- </Directory>
- <Directory /var/www/friendica>
- Options Indexes FollowSymLinks MultiViews
- AllowOverride all
- Order allow,deny
- allow from all
- </Directory>
- ErrorLog ${APACHE_LOG_DIR}/friendica-error.log
- LogLevel warn
- CustomLog ${APACHE_LOG_DIR}/friendica-access.log combined
- </VirtualHost>
- (save and exit)
- cd /etc/apache2/sites-enabled
- cp /etc/apache2/sites-available/node.localdomain.conf /etc/apache2/sites-enabled/node.localdomain.conf
- chmod 755 node*
- rm 000-default.conf
- a2enmod rewrite
- /etc/init.d/apache2 restart
- cd /etc/ssmtp
- ( add your mailserver settings to the end of the file )
- ( https://www-users.cs.york.ac.uk/~mjf/printer/src/SMTP.html )
- ( change the real name of all users involved and edit revaliases so email comes from yourserver )
- AuthUser=user@gmail.com
- AuthPass=userpassword
- FromLineOverride=YES
- mailhub=smtp.gmail.com:587
- UseSTARTTLS=YES
- ( Alternately, use some other mail server )
- ( Save file and exit )
- cd /etc/php5/apache2
- nano php.ini
- ( locate [mail function] section )
- ( uncomment sendmail_path )
- sendmail_path = /usr/sbin/sendmail
- ( uncomment and add a mail log if you want )
- ( Save file and exit )
- ( https://www.conetix.com.au/support/article/simple-php-mail-test )
- exit
- crontab -e
- ( select your editor if this is a new install and add the next lines to the end of the file )
- mailto=YOUREMAILFORERRORMSGS@youremailaddy.com
- */10 * * * * cd /var/www/friendica; /usr/bin/php include/poller.php
- ( save the file and exit note you don't need the email, but it's good practice so you can see if anything broke )
- ( https://github.com/rsyslog/rsyslog/issues/35 ) rsyslog problem
- http://yourwebsite/ (will run install)
- Make sure all is green on first page
- database: user is "friendica", db is "friendica_prod" and password is "mypass" (whatever you chose here, don't use mypass!)
- First registration needs to be the email you gave during setup. don't log in, actually register!
- after you are in the main site:
- sudo /etc/init.d/cron restart
- ( starts the poller )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement