|
  
|
Ubuntu server installed on Twitter
If you are a Twitter user enthusiasm, do you ever have a day to set up a Microblog own it? If you also enjoy Ubuntu, do you ever completed in Ubuntu does this matter?
If you are a Twitter user enthusiasm, do you ever have a day to set up a Microblog own it?
If you also enjoy Ubuntu, do you ever completed in Ubuntu does this matter?
If the answer is "yes", then we start now!
We assume that the Microblog is a open source Twitter clone-Laconica, is already used in identi.ca is a practice test Microblog server software.
Installation steps:
A first step, the access code:
There are two laconica happened can get the code:
1, use darcs (an open stream of code management software)
sudo apt-get install darcsdarcs get - partial http://laconi.ca/darcs/
2, directly from the homepage above laconica download tar.gz file
Here, I adopted the second approach
Home directory in which to establish a laconica directory, the files downloaded to the directory and extract:
cd $ HOME
mkdir laconica
cd laconica
wget http://laconi.ca/laconica-0.6.3.tar.gz
tar xzvf laconica-0.6.3.tar.gz
The second step, the installation required to run the software:
laconica used the PHP language, the use of Mysql databases, Web servers required to run!
sudo apt-get install mysql-server apache2
sudo apt-get install libapache2-mod-php5 php5-cgi php5-cli php-pear php5-gd php5-mysql
The third step: set up Mysql database
Mysql database set up, first of all to mysql's root user access:
mysql-u root-p
Enter a password to enter:
# Set up the database:
create database laconica;
# Set up the database user (username laconica, password secret):
grant all privileges on laconica .* to laconica @ localhost identified by 'secret' with grant option;
# Exit
quit;
Laconica with built-in sql data table set up, just unzip into the directory after laconica in ($ HOME/laconica/laconica-0.6.3), command line, type:
mysql-uroot-p laconica <db / laconica.sql
Enter the root password, there is no prompt, it should be a success!
Fourth step, adjust some settings:
Examples of configuration files to copy click:
cp config.php.example config.php
Open the config.php configuration, is now generally has four lines:
$ config [ 'site'] [ 'name'] = 'cafeonica'; $ config [ 'site'] [ 'server'] = 'decafbad.com'; $ config [ 'site'] [ 'path'] = ' laconica ';
$ config [ 'db'] [ 'database'] = 'mysql: / / laconica: PASSWORD @ localhost / laconica';
One of:
The first line, to configure your Microblog (micro-Bo) name
The second line, domain name
The third line, configuration subdirectory
The third line, configure Mysql database address, laconica are user name, is one of Mysql database PASSWORD Password (installed in front of the steps, our password is secret), localhost is the Mysql server address: that is above the local mysql (of course Mysql server can also be in other machines above)
For example, you want to set up a LAN server Twitter name, called the "river", the server is 192.168.1.102, can be configured:
$ config [ 'site'] [ 'name'] = 'talk'; $ config [ 'site'] [ 'server'] ='192 .168.1.102 '; $ config [' site '] [' path '] = 'taotao';
$ config [ 'db'] [ 'database'] = 'mysql: / / laconica: PASSWORD @ localhost / laconica'; Fifth step: Publish to server copy here easy to apache: sudo cp-r laconica-0.6.3 / var / wwwcd / var / wwwsudo mv laconica-0.6.3 taotao can now use "http://192.168.1.102/taotao" visited. Of course, users must first register. In addition, if the feeling slow Mysql are the reasons, in the / etc / mysql / my.inf inside the [mysqld] inside add: skip-name-resolve and his party on it. laconica currently also supports synchronous sent to Twitter. |
|