Ubuntu 14.04-lamp+kayako System

Source: Internet
Author: User
Tags geoip install php mcrypt php and mysql

First, build Lamp--apache, MySQL, PHP.

Using System and Software versions: Ubuntu 14.04; Apache 2.4.20;mysql 5.6.30;

Mysql:

To install using Apt-get:

#apt-get Install mysql-server-5.6 mysql-client-5.6 mysql-common-5.6

The MySQL password is prompted during installation

When the installation is complete, start MySQL:

#service start MySQL

Apache:

1. Install C + + compilation related components:

#apt-get Install Build-essential

2. Compile and install Apr:

#tar-ZXVF apr-1.4.6.tar.gz

#cd apr-1.4.6

#./configure--PREFIX=/USE/LOCAL/APR

#make && make Install

3. Compile and install Apr-util:

#tar-ZXVF apr-util-1.5.4.tar.gz

#cd apr-util-1.5.4

#./configure--prefix=/use/local/apr-util--WITH-APT=/USR/LOCAL/APR

#make && make Install

4. Compile and install Pcre:

#tar-ZXVF pcre-8.31.tar.gz

#cd pcre-8.31

#./configure--prefix=/usr/local/pcre

#make && make Install

5. Compile and install Zlib:

#tar-ZXVF zlib-1.2.8.tar.gz

#cd zlib-1.2.8

#./configure--prefix=/usr/local/zlib

#make && make Install

6, Installation Zlib1g-dev:

#apt-get Install Zlib1g-dev

7. Compile and install Apache:

#tar-ZXVF httpd-2.4.20.tar.gz

#cd httpd-2.4.20

#./configure--prefix=/usr/local/apache--enable-deflate--enable-expires--enable-headers--enable-modules=most-- Enable-so--with-worker--enable-rewrite--with-apt=/usr/local/apr--with-apr-util=/usr/loacal/apr-util--with-pcre =/usr/local/pcre

#make && make Install

Php

1. Compile and install PNG:

#tar-ZXVF Libpng-1.6.7.tar

#cd libpng-1.6.7

#./configure--prefix=/usr/local

#make && make Install

2. Compile and install Libiconv:

#tar-ZXVF Libiconv-1.14.tar

#cd libiconv-1.14

#./configure--prefix=/usr/local

#make && make Install

3. Compile and install FreeType:

#tar-ZXVF Freetype-2.6.tar

#cd freetype-2.6

#./configure--prefix=/usr/local

#make && make Install

4. Compile and install GD:

#tar-ZXVF Libgd-2.1.1.tar

#cd libgd-2.1.1

#./configure--prefix=/usr/local--with-libiconv-prefix=/usr/loal--with-png=/usr/local--with-freetype=/usr/local

#make && make Install

Installing the PHP Component

1, installation Libxml

#apt-get Install LIBXML2

#apt-get Install Libxml2-dev

2. Compile and install Mhash:

#tar-ZXVF mhash-0.9.9.9.tar.gz

#cd mhash-0.9.9.9

#./configure--prefix=/usr/local

#make && make Install

3. Compile and install Libmcrypt:

#tar-ZXVF libmcrypt-2.6.8.tar.gz

#cd libmcrypt-2.6.8

#./configure--prefix=/usr/local

#make && make Install

4. Compile and install MCrypt:

#tar-ZXVF mcrypt-2.6.8.tar.gz

#cd mcrypt-2.6.8

#LD_LIBRARY_PATH =/usr/local/lib./configure--prefix=/usr/local

#make && make Install

5. Install Curl:

#apt-get Install Curl Libcurl3-dev php5-curl

6. Compile and install PHP:

#tar-ZXVF php-5.6.21.tar.gz

#cd php-5.6.21

#./configure--prefix=/usr/local/php--with-apxs2=/usr/local/apache/bin/apxs--with-config-file-path=/usr/local/ Php/etc--with-mysql=mysqlnd--with-mysqli=mysqlnd--with-pdo-mysql=mysqlnd--with-gettext--enable-mbstring-- With-iconv--with-mcrypt--with-mhash--with-openssl--enable-bcmath--enable-soap--with-libxml-dir--enable-pcntl-- Enable-shmop--enable-sysvmsg--enable-sysvsem--enable-sysvshm--enable-sockets--with-curl--with-gd--with-zlib-- Enable-zip--without-sqlite3--without-pdo-sqlite--with-pear

#make && make Install

To copy a PHP configuration file:

Copy php.ini-development or php.ini-production to/usr/local/php/etc/php.ini

Change the time domain:

925 rows: Date.timezone = Asia/shanghai

Second, the integration of Apache and PHP:

To modify the Apache configuration file:

#vi/usr/local/apache/conf/httpd.conf

114 Line: LoadModule php5_module/usr/local/apache/modules/libphp5.so

250 line: DirectoryIndex index.php index.html

387 line: AddType application/x-httpd-php. php

388 Line: AddType application/x-httpd-php-source. Phps

Save exit, restart Apache

PHP Test:

VI info.php

<?php

Phpinfo ();

?>

Third, link PHP and MySQL:

Open extensions:

Extension=php_curl.dll
Extension=php_fileinfo.dll
Extension=php_gd2.dll
Extension=php_gettext.dll

Extension=php_imap.dll

Extension=php_mbstring.dll
Extension=php_exif.dll; Must is after mbstring as it depends on it
Extension=php_mysql.dll
Extension=php_mysqli.dll
Extension=php_openssl.dll

Extension=php_pdo_mysql.dll
Extension=php_pdo_sqlite.dll

Extension=php_soap.dll
Extension=php_tidy.dll
Extension=php_xmlrpc.dll

Link MySQL:

1001 Line: Pdo_mysql.default_socket=/var/run/mysqld/mysqld.sock

1209 Line: Mysqli.default_socket =/var/run/mysqld/mysqld.sock

MySQL test:

VI mysql.php

<?php
$link =mysqli_connect (' localhost ', ' root ', ' you password ');
if (! $link)
{
Die (' Could not connect: '. Mysql_error ());
}
else echo "Success";
Mysqli_close ($link);
?>

Iv. Construction of Kayako system

Https://kayako.atlassian.net/wiki/display/DOCS/New+installation

1. Download the installation package

2. Extract/upload files to Apache server root directory (virtual host root)

3. Create a database:

#mysql-U root-p

> CREATE DATABASE kayako_fusion;

> Use kayako_fusion;

> ALTER DATABASE kayako_fusion DEFAULT CHARACTER SET UTF8 COLLATE utf8_unicode_ci;

GRANT ALL PRIVILEGES ON kayako_fusion.* TO  ‘kayako_user‘ @ > ‘localhost‘IDENTIFIED by ‘this_is_a_weak_password‘;

> Exit

Restart database

4. Edit the config.php file in Kayako:

Location: __swift/config/

#cp config.php.new config.php

#vi config.new

Define (' Swift_basename ', ' index.php? ');

/**
* DATABASE HOSTNAME
*/
Define (' db_hostname ', ' localhost ');

/**
* DATABASE USERNAME
*/
Define (' Db_username ', ' root ');

/**
* DATABASE PASSWORD
*/
Define (' Db_password ', ' you PASSWORD ');

/**
* DATABASE NAME
*/
Define (' db_name ', ' kayako_fusion ');

5. Upload key.php file (this file is purchased on the website)

6. Change file permissions:

__swift/files

__swift/cache

__swift/geoip

__swift/logs

__apps

# CHMOD-RF 777 Files Cache GeoIP logs

# CHMOD-RF 777 __apps

7, installation Kayako:

Windows-side Open Browser and enter Kayako server Ip/setup can access Kayako installation interface;

10.11.20.15/setup

Ubuntu 14.04-lamp+kayako System

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.