Article Title: Getting started with Linux to use TWIG to set up a WebMail system. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
Twig, short for The Web Information Gateway, is a set of software developed using PHP that allows you to easily set up a Web post office (WebMail ). You can send and receive emails in a browser. In addition, it integrates news groups, address books, schedules, meetings, bookmarks, and other functions. it is a set of multi-functional WebMail software.
1. System requirements: TWIG requires the following kits:
Web servers supporting php (Apache is recommended)
PHP 3.0.11 or later versions
In addition, if you can work with the following kits, you will be able to take advantage of twig's better features:
MySQL or pgsql
LDAP server
IMAP server
I suggest using Apache + PHP + MySQL + IMAP as a combination. The LDAP server can be used as needed.
The suite used by the author is as follows:
RedHat 7.2
Apache 1.3.22
PHP 4.0.6
MySQL 3.23.41
Twig 2.7.5
2. download the software: First, check whether Apache + PHP + MySQL + IMAP has been installed in the system. you can run the following command to check whether Apache + PHP + MySQL + IMAP has been installed:
If you find an uninstalled package, you can use your Linux installation disc to install it. Taking RedHat 7.2 as an example, we can find many rpm kits in the RedHatRPMS Directory of the optical disc and install them using the following commands:
# Rmp-ivh
To upgrade to a newer version, you can download the latest version at the following URL:
And most importantly to download twig, we can download the latest twig 2.7.5 from the http://twig.screwdriver.net/download.php3. Of course! The above software can be found in the LinuxCenter software database.
3. installation steps: I assume that Apache + PHP + MySQL + IMAP has been installed in your Linux system, and twig has been downloaded to your home directory. Start the installation now!
1. copy twig from home directory to/usr/local
# Cp$ HOME/twig-2.7.5.tar.gz/usr/local
2. decompression twig-2.7.5.tar.gz
# Cd/usr/local
# Tar zxvf twig-2.7.5.tar.gz
3. run twig-install to install twig to/var/www/html/
# Mysqladmin-u root-p create twig
# Cd, usr, local, twig-2.7.5, and setup
# Mysql-u root-p twig <twig. table. mysql
5. modify parameter settings
# Cd/var/www/html/twig/config
# Vi config. inc. php3
$ Config ["fromdomain"] = "your domain name"; // modify the domain name of your twig host
$ Config ["language"] = "chinesebig5"; // change the language to traditional Chinese.
$ Config ["imap_server"] = "YourImapServerDomain"; // specify the location of your IMAP server. if you are on the same machine, use "localhost ".
$ Config ["smtp_server"] = "YourSmtpServerDomain"; // specify the location of your SMTP server. if you are on the same machine, use "localhost ".
$ Config ["session_handler"] = "php4session"; // the system above php 4 can change the cookie to session.
$ Config ["login_handler"] = "php4session"; // the system above php 4 can change the cookie to session.
# Vi dbconfig. inc. php3
$ Dbconfig ["sqlusername"] = "root"; // modify the mysql User account
$ Dbconfig ["sqlpassword"] = "your password"; // modify the mysql User password
$ Dbconfig ["defaultdb"] = "twig"; // modify the default database name
$ Dbconfig ["sqltype"] = "mysql"; // modify the database
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.