»

Upgrade Mysql to MariaDB

Log — Tags: , , — Posted by Starck on February 26, 2014

Remove MySQL

Install MariaDB

Nginx with Apache + FastCGI + PHP-FPM

Coding — Tags: , , , — Posted by Starck on January 10, 2014


Install Apache2 + FastCGI + PHP-FPM

Apache Settings

/etc/apache2/sites-availabe/test.server.com.conf:

/etc/apache2/ports.conf:

Install Nginx

sudo apt-get install nginx

/etc/nginx/sites-available/test:

sudo ln -s /etc/nginx/sites-available/test /etc/nginx/sites-enabled/test

sudo rm /etc/nginx/sites-enabled/default

Restart Server

sudo service nginx restart

sudo service apache2 restart

sudo service php5-fpm restart

Install Mod-FastCGI and PHP5-FPM on Ubuntu

Log — Tags: , , , , — Posted by Starck on August 22, 2013

Installation

Configuration

edit /etc/apache2/mods-enabled/fastcgi.conf:

Restart Apache2 and PHP5-FPM

— Updated 2014-01-09 (Ubuntu 13.10)–

mkdir /var/www/cgi-bin

touch /var/www/cgi-bin/php5.fcgi

chown -R www-data:www-data /var/www/cgi-bin

edit /etc/apache2/mods-enabled/fastcgi.conf:

Virtual host setting example :

References

Continue Reading

Nginx with Apache + FastCGI + PHP-FPM

Building Your Own Mail Server

Log — Tags: , — Posted by Starck on July 5, 2013


Requirments:


Installation

主要參考 Linode Library 的這篇教學

Postfix Settings

/etc/postfix/main.cf

/etc/postfix/mysql-virtual-mailbox-domains.cf:

/etc/postfix/mysql-virtual-mailbox-maps.cf:

/etc/postfix/mysql-virtual-alias-maps.cf:

測試:


Dovecot Settings

In this section, you’ll configure Dovecot to:

  • Set the IMAP, POP3, and LMTP protocols
  • Define the mail location
  • Use MySQL for username/password lookups for authentication
  • Configure needed sockets for authentication and LMTP
  • Require SSL encryption

You’ll modify a total of 7 Dovecot configuration files. Here’s the list:

  • /etc/dovecot/dovecot.conf: Dovecot’s main configuration file
  • /etc/dovecot/conf.d/10-mail.conf: Deals with the server’s file system
  • /etc/dovecot/conf.d/10-auth.conf: Defines how user authentication is handled
  • /etc/dovecot/conf.d/auth-sql.conf.ext: New authentication file for SQL-type authentication
  • /etc/dovecot/dovecot-sql.conf.ext: An included authentication file with the MySQL connection parameters
  • /etc/dovecot/conf.d/10-master.conf: Where sockets are configured
  • /etc/dovecot/conf.d/10-ssl.conf: Where SSL-related parameters are specified


/etc/dovecot/dovecot-sql.conf.ext:

如果要開啟 pop3 110 port, /etc/dovecot/conf.d/10-master.conf:


PostfixAdmin permission issue (myself)

/etc/dovecot/conf.d/10-master.conf:


Reference

Use ownCloud to build your own network drive

Log — Tags: , , — Posted by Starck on June 12, 2013


Install linux packages

apt-get update and some libraries:
Ubuntu 13.04:


Download web installer


Server Web-DAV Installation

Open your browser, run the web installer script, ex: http://{domain.name}/setup-owncloud.php

follow the steps in installer, finish it.


Sync-Client Installation

for MacOS:

download

Reference

How to setup owncloud 5 on ubuntu 12.10

mobile01 – OwnCloud, 一套適合自建的網路同步硬碟

Upgrade Ubuntu

Log — Tags: — Posted by Starck on May 26, 2013

  1. install the update-manager-core package if it is not already installed:

    $ sudo apt-get install update-manager-core

  2. Edit /etc/update-manager/release-upgrades and set Prompt=normal;

  3. Launch the upgrade tool with the command:

    $ sudo do-release-upgrade -d


List installed packages:

$ sudo dpkg --get-selections

(c) 2017 Starck Lin | powered by WordPress