StatusNet: Difference between revisions

From Alpine Linux
(replace /etc/init.d with rc-service)
 
(15 intermediate revisions by 6 users not shown)
Line 1: Line 1:
== What is StatusNet? ==
{{Delete|This software is obsolete}}
{{Obsolete|StatusNet has been replaced by GNU Social}}


StatusNet is the open source microblogging platform that helps you share and connect in real-time within your own domain.
StatusNet is the open source microblogging platform that helps you share and connect in real-time within your own domain. With StatusNet you can encourage collaboration, build and engage your community, and be in command of your brand.


With StatusNet you can encourage collaboration, build and engage your community, and be in command of your brand.
== Install lighttpd and PHP ==
{{:Setting Up Lighttpd With FastCGI}}


== Set up StatusNet on Alpine Linux ==
== MySql and pcre ==


This document will be a quick c/p guide to setup StatusNet on Alpine linux. What we will setup is the following:
{{Cmd|apk add pcre}}
 
* Lighttpd with PHP
* PCRE
* Mysql
* StatusNet
 
 
== Install lighttpd, PHP and MySql ==
 
apk add pcre -f -U -X http://build.alpinelinux.org:8009/backports/1.10/ --allow-untrusted
   
   
apk add lighttpd mysql mysql-client php-mysql php-mysqli php php-xml php-json php-gettext php-gd curl php-curl
{{Cmd|apk add mysql mysql-client php-mysql php-mysqli}}
 
== Configuring Lighttpd ==
 
'''Edit lighttpd.conf'''
 
nano +46 /etc/lighttpd/lighttpd.conf
 
Uncomment lines:
 
uncoment    include "mod_fastcgi.conf", save and exit
 
 
'''Starting http service and adding to boot'''
 
  /etc/init.d/lighttpd start && rc-update add lighttpd default


== Configuring MySql ==
== Configuring MySql ==


/usr/bin/mysql_install_db --user=mysql
{{Cmd|<nowiki>/usr/bin/mysql_install_db --user=mysql
/etc/init.d/mysql start && rc-update add mysql default
rc-service mysql start && rc-update add mysql default
/usr/bin/mysqladmin -u root password 'password'
/usr/bin/mysqladmin -u root password 'password'</nowiki>}}


'''Create the StatusNet database'''
'''Create the StatusNet database'''


mysql -u root -p
{{Cmd|mysql -u root -p}}


CREATE DATABASE statusnet;
{{Cmd|<nowiki>CREATE DATABASE statusnet;
GRANT ALL PRIVILEGES ON statusnet.* TO "root";
GRANT ALL PRIVILEGES ON statusnet.* TO "root";
FLUSH PRIVILEGES;
FLUSH PRIVILEGES;
EXIT
EXIT</nowiki>}}


== Installing StatusNet ==
== Installing StatusNet ==


'''Install StatusNet'''
Create a directory named {{Path|webapps}}


{{Cmd|mkdir -p /usr/share/webapps/}}


Make webapps folder
Download the latest source code archive


mkdir /usr/share/webapps/ -p
{{Cmd|cd /usr/share/webapps/
wget <nowiki>http://status.net/statusnet-1.1.0.tar.gz</nowiki>}}


Download
Unpack the archive and delete it afterwards


cd /usr/share/webapps/
{{Cmd|tar zxvf statusnet-1.1.0.tar.gz
wget http://status.net/statusnet-0.9.5.tar.gz
rm statusnet-1.1.0.tar.gz}}


Unpack
Creating a {{Path|.htaccess}} file


tar zxvf statusnet-0.9.5.tar.gz
{{Cmd|cp /usr/share/webapps/statusnet-1.1.0/htaccess.sample .htaccess}}


Creating httaccess file
Change the folder persmissions


  cp /usr/share/webapps/statusnet-0.9.5/htaccess.sample .htaccess
{{Cmd|chmod a+w /var/www/localhost/htdocs/statusnet/avatar/
chmod a+w /var/www/localhost/htdocs/statusnet/background/
chmod a+w /var/www/localhost/htdocs/statusnet/file/
}}


Change Folder Persmissions
Create a symlink to the {{Path|statusnet}} folder


  chmod -R 777 /usr/share/webapps/statusnet-0.9.5/
{{Cmd|ln -s /usr/share/webapps/statusnet-1.1.0/ /var/www/localhost/htdocs/statusnet}}
 
Make Symlink to the StatusNet folder
 
  ln -s /usr/share/webapps/statusnet-0.9.5/ /var/www/localhost/htdocs/statusnet


== Configuring StatusNet ==
== Configuring StatusNet ==


Browse to: http://WEBSERVER_IP_ADDRESS/statusnet/install.php and Install StatusNet completing the information as appropriate from the web browser.
Browse to: <nowiki>http://WEBSERVER_IP_ADDRESS/statusnet/install.php</nowiki> and install StatusNet by completing the information as appropriate from the web browser.


StatusNet Installation steps:
StatusNet Installation steps:
Line 91: Line 69:
* Site settings
* Site settings
   
   
Site name
:* Site name
''The name of your site''
::''The name of your site''
   
   
Fancy URLsenable
:* Fancy URLsenable
  disable
::  disable
''Fancy URL support detection failed, disabling this option. Make sure you renamed htaccess.sample to .htaccess.''
::''Fancy URL support detection failed, disabling this option. Make sure you renamed htaccess.sample to .htaccess.''
   
   
* Database settings
* Database settings


Hostname: '''localhost'''
:* Hostname: '''localhost'''
''Database hostname''
::''Database hostname''
   
   
TypeMySQL
:* TypeMySQL
''Database type''
::''Database type''


Name: '''statusnet'''
:* Name: '''statusnet'''
''Database name''
::''Database name''


DB username: '''root'''
:* DB username: '''root'''
''Database username''
::''Database username''


DB password: '''password'''
:* DB password: '''password'''
''Database password (optional)''
::''Database password (optional)''
   
   
* Administrator settings
* Administrator settings


Administrator nickname
:* Administrator nickname
''Nickname for the initial StatusNet user (administrator)''
::''Nickname for the initial StatusNet user (administrator)''
   
   
Administrator password
:* Administrator password
''Password for the initial StatusNet user (administrator)''
::''Password for the initial StatusNet user (administrator)''
   
   
Confirm passwordAdministrator e-mail
:* Confirm passwordAdministrator e-mail
''Optional email address for the initial StatusNet user (administrator)''
::''Optional email address for the initial StatusNet user (administrator)''


Subscribe to announcements
* Subscribe to announcements


Release and security feed from update@status.net (recommended)
* Release and security feed from update@status.net (recommended)


After click on '''Submit''' button, you will see:
After click on '''Submit''' button, you will see:
Line 144: Line 122:
  Could not set up subscription to update@status.net.
  Could not set up subscription to update@status.net.
  An initial user with the administrator role has been created.
  An initial user with the administrator role has been created.
  StatusNet has been installed at http://10.69.64.11/statusnet
  StatusNet has been installed at <nowiki>http://10.69.64.11/statusnet</nowiki>
  DONE! You can visit your '''new StatusNet site''' (login as 'danieloc'). If this is your first StatusNet install, you may want to poke around our Getting Started guide.
  DONE! You can visit your '''new StatusNet site''' (login as 'danieloc'). If this is your first StatusNet install, you may want to poke around our Getting Started guide.




You have StatusNet microblogin working, to access go to http://WEBSERVER_IP_ADDRESS/statusnet and enjoy!
You have StatusNet microblogin working, to access go to <nowiki>http://WEBSERVER_IP_ADDRESS/statusnet</nowiki> and enjoy!
 
[[Category:SQL]]

Latest revision as of 10:10, 17 November 2023

This material is proposed for deletion ...

This software is obsolete (Discuss)
Make sure no other pages link here and check the page's history before deleting.

This material is obsolete ...

StatusNet has been replaced by GNU Social (Discuss)

StatusNet is the open source microblogging platform that helps you share and connect in real-time within your own domain. With StatusNet you can encourage collaboration, build and engage your community, and be in command of your brand.

Install lighttpd and PHP

Basic Installation

For installing the additional packages first activate community packages and update the package index

Install the required packages:

# apk add lighttpd php82 fcgi php82-cgi

Configure Lighttpd

Edit lighttpd.conf (/etc/lighttpd/lighttpd.conf) and uncomment the line:

Contents of /etc/lighttpd/lighttpd.conf

... include "mod_fastcgi.conf" ...

Edit mod_fastcgi.conf (/etc/lighttpd/mod_fastcgi.conf), find and change /usr/bin/php-cgi to /usr/bin/php-cgi82.

Contents of /etc/lighttpd/mod_fastcgi.conf

... "bin-path" => "/usr/bin/php-cgi82" # php-cgi ...

Start lighttpd service and add it to default runlevel

# rc-service lighttpd start # rc-update add lighttpd default

MySql and pcre

apk add pcre

apk add mysql mysql-client php-mysql php-mysqli

Configuring MySql

/usr/bin/mysql_install_db --user=mysql rc-service mysql start && rc-update add mysql default /usr/bin/mysqladmin -u root password 'password'

Create the StatusNet database

mysql -u root -p

CREATE DATABASE statusnet; GRANT ALL PRIVILEGES ON statusnet.* TO "root"; FLUSH PRIVILEGES; EXIT

Installing StatusNet

Create a directory named webapps

mkdir -p /usr/share/webapps/

Download the latest source code archive

cd /usr/share/webapps/ wget http://status.net/statusnet-1.1.0.tar.gz

Unpack the archive and delete it afterwards

tar zxvf statusnet-1.1.0.tar.gz rm statusnet-1.1.0.tar.gz

Creating a .htaccess file

cp /usr/share/webapps/statusnet-1.1.0/htaccess.sample .htaccess

Change the folder persmissions

chmod a+w /var/www/localhost/htdocs/statusnet/avatar/ chmod a+w /var/www/localhost/htdocs/statusnet/background/ chmod a+w /var/www/localhost/htdocs/statusnet/file/

Create a symlink to the statusnet folder

ln -s /usr/share/webapps/statusnet-1.1.0/ /var/www/localhost/htdocs/statusnet

Configuring StatusNet

Browse to: http://WEBSERVER_IP_ADDRESS/statusnet/install.php and install StatusNet by completing the information as appropriate from the web browser.

StatusNet Installation steps:

Install StatusNet

  • Site settings
  • Site name
The name of your site
  • Fancy URLsenable
disable
Fancy URL support detection failed, disabling this option. Make sure you renamed htaccess.sample to .htaccess.
  • Database settings
  • Hostname: localhost
Database hostname
  • TypeMySQL
Database type
  • Name: statusnet
Database name
  • DB username: root
Database username
  • DB password: password
Database password (optional)
  • Administrator settings
  • Administrator nickname
Nickname for the initial StatusNet user (administrator)
  • Administrator password
Password for the initial StatusNet user (administrator)
  • Confirm passwordAdministrator e-mail
Optional email address for the initial StatusNet user (administrator)
  • Subscribe to announcements
  • Release and security feed from update@status.net (recommended)

After click on Submit button, you will see:

Install StatusNet

Starting installation...
Checking database...
Changing to database...
Running database script...
Adding SMS carrier data to database...
Adding notice source data to database...
Adding foreign service data to database...
Writing config file...
Could not set up subscription to update@status.net.
An initial user with the administrator role has been created.
StatusNet has been installed at http://10.69.64.11/statusnet
DONE! You can visit your new StatusNet site (login as 'danieloc'). If this is your first StatusNet install, you may want to poke around our Getting Started guide.


You have StatusNet microblogin working, to access go to http://WEBSERVER_IP_ADDRESS/statusnet and enjoy!