-->
Home » , , » Installing GeNIE on Centos, Chapter II.

Installing GeNIE on Centos, Chapter II.

Installing Mysql.
mysql
You can download MySQL at http://www.mysql.org/ . Unzip it at the /usr/local/src/.
# cd /usr/local/src
# tar zxf mysql-5.1.x.tar.gz
# cd mysql-5.1.x
To support multilanguage, we set up it as utf8. Also, we set up /usr/local/mysql as a basic directory.
# ./configure
--prefix=/usr/local/mysql
--localstatedir=/usr/local/mysql/data
--with-plugins=innobase
--with-charset=utf8
--without-debug
# make
# make install
If you are first time at the MySQL, you have to install basic DB.
# /usr/local/mysql/bin/mysql_install_db
# useradd -d /usr/local/mysql mysql
# chown -R mysql.mysql /usr/local/mysql
# mysqladmin -u root password 'PASSWORD'

Installing Apache.

apache
Unzip apache's the latest version at the http://www.apache.org/, and then unzip it at the /usr/local/src/.
# cd /usr/local/src
# tar zxf httpd-2.2.x.tar.gz
# cd httpd-2.2.x
Compile DSO(Dynamic Shared Objects) to add module later. Also, compile adding ssl module.
#./configure \
--prefix=/usr/local/apache \
--enable-mods-shared=most \
--enable-so \
--enable-ssl
# make
# make install

Installing Php.

a.Preinstallation
After Installing basic module that have to set up, install php.
Pre-installed package
gd-2.0.35.tar.gz
freetype-2.3.9.tar.gz
giflib-4.1.6.tar.gz
jpegsrc.v6b.tar.gz
libiconv-1.12.tar.gz
libpng-1.2.35.tar.gz
libungif-4.1.4.tar.gz
libxml2-2.7.3.tar.gz
zlib-1.2.3.tar.gz
b.Download php-5.2.x at the http://www.php.net/ ,and then unzip at the /usr/local/src/ To upload the module as DSO format, please set the --with-apxs2 and php.ini file directory as --with-config-file-path.
# tar zxf php-5.2.x.tar.gz
# cd php-5.2.11
# ./configure \
--prefix=/usr/local/php \
--with-apxs2=/usr/local/apache/bin/apxs \
--with-config-file-path=/usr/local/apache/conf \
--with-mysql=/usr/local/mysql \
--with-jpeg-dir=/usr/local \
--with-png-dir=/usr/local \
--with-zlib --with-zlib-dir=/usr/local \
--with-freetype-dir=/usr/local \
--with-libxml-dir=/usr/local \
--with-iconv=/usr/local \
--with-gd=/usr/local \
--enable-mod-charset \
--enable-sigchild \
--enable-magic-quotes \
--enable-sockets \
--enable-zip \
--with-xsl --with-xmlrpc \
--with-curl --with-mcrypt
# make
# make test
# make install

Configuring Apache and php.

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


ⅰ) Checking that php5 module is uploaded

LoadModule php5_module modules/libphp5.so


ⅱ) Setting up apache user authority

User nobody


Group nobody


ⅲ) Setting up server name

ServerName localhost:80


ⅵ) Adding additional type to connect to php

AddType application/x-httpd-php .html .htm .php .inc


AddType application/x-httpd-php-source .phps


ⅴ) Setting up to have read index.php for the first time

<IfModule dir_module>


DirectoryIndex index.php index.html index.htm


</IfModule>


ⅵ) Changing DocumentRoot

# Change the location that GeNIE solution will be install.


Edit DocumentRoot "/usr/local/apache/htdocs" to DocumentRoot "/usr/local/apache/htdocs/genie


ⅶ) Setting up Rewrite

You have to add /index.php/~ at all URL in case of using codeigniter
that is kind of php MVC frame work. Not to show off /index.php/, you need to do this work.


<Directory "/usr/local/apache/htdocs/genie">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Order allow,deny
Allow from all
RewriteEngine On
RewriteCond %{REQUEST_URI} !^(/index\.php|/Userfiles|/static|\.js$)
RewriteRule ^(.*)$ /index.php/$1 [L]
</Directory> 

b. Configuring php.ini

Copy php.ini file.


# cp /usr/local/src/php-5.2.x/php.ini-dist /usr/local/apache/conf

# vi /usr/local/apache/conf/php.ini

Edit php.ini as following and save the file,

short_open_tag = On

Creating MySQL account & database.


i) Run MySQL DBMS

#/usr/local/mysql/share/mysql/mysql.server restart

ii) Login MySQL DBMS root account

#Enter >/usr/local/mysql/bin/mysql –u root –p mysql

Enter your own root password or just Enter the "Enter"key to the password enterance to the password enterance screen. Then, you can access root account.

iii) Create database for GeNIE solution

mysql>create database geniedata;

iv) Create account for GeNIE solution

mysql>grant all privileges on geniedata.* to genie@localhost identified by ‘genie1' with grant option;

ex) In this case, User : genie / password: genie1

v)After creating account, run flush privileges.

mysql>flush privileges;

Running Apache and Mysql.

a.Running Apache

#/usr/local/apache/bin/apachectl restart

b.Running Mysql

#/usr/local/mysql/share/mysql/mysql.server restart

Installing GeNIE.

a. Download GeNIE source

ⅰ) Download GinNIE'w the latest version, http://www.wow-heels.net/christian-louboutin-pumps-c-3.html/

ⅱ) After unzip downloded file, change the folder's name as genie.

ⅲ) move genie's folder to the c:\xampp\htdocs\

b. Installing GeNIE solution

i) Run http://www.wow-heels.net/christian-louboutin-pumps-c-3.html
.

Select language that you are likely to use.




ii) select the language that you are likely to use. (Korean or English)


accept the licence agreement of installation, and click on the “Next”button.

Adserver                   610x250
 




iii)Select GeNIE Installation Type. Select between Basic and Extended.

Set database that you've created already. Enter DBMS's server name, Database name, account, password correctly.



iv) Enter GeNIE's user information forrectly.



v) Go to the http://localhost/ , and check GiNIE works well


If you liked this article, subscribe to the feed by clicking the image below to keep informed about new contents of the blog:

0 commenti:

Post a Comment

Random Posts

Recent Posts

Recent Posts Widget

Popular Posts

Labels

Archive

page counter follow us in feedly
 
Copyright © 2014 Linuxlandit & The Conqueror Penguin
-->