Installing PartKeepr on CentOS 6.3

hamburgerfensuckedΑσφάλεια

20 Νοε 2013 (πριν από 3 χρόνια και 10 μήνες)

1.054 εμφανίσεις

Installing PartKeepr

on CentOS 6.3



Install CENTOS

Basic Install



Setup eht0 / firewall

setup

Setup eth0

# vi /etc/sysconfig/network
-
scripts/ifcfg
-
eth0


Edit firewall

-

Check off

WWW(HTTP), Secure WWW (HTTPS




Install updates

yum update



Install WebMin

w
get

http://prdownloads.sourceforge.net/webadmin/webmin
-
1.610
-
1.noarch.rpm

rpm
-
U webmin
-
1.610
-
1.noarch.rpm



Install apache

yum install httpd

chkconfig httpd on



Install

MySQL

sudo yum install mysql
-
server

sudo service mysqld start

/usr/bin/mysql_secure_installation

chkconfig mysqld on



Install PHP

sudo yum install php php
-
mysql

sudo
yum install php
-
devel

yum install php
-
pear gcc

yum install php
-
gd




Copy PartKeppr Files to server

o

Copy to /var/www/html/




Install ImageMagick

sudo yum
install ImageMagick


yum install ImageMagick
-
devel

pecl install
imagick

# vim /etc/php.ini

;
before ;End insert the following line:

extension=imagick.so

;
:wq
--

write the file and quit vim



Set PHP Time Zone



http://php.net/manual/en/timezones.pacific.php


http://www.tuxfiles.org/linuxhelp/vimcheat.html

Vim /etc/php.ini

;
:/timezone
-

to find timezone (line 946)

; hit A to append

date.
t
ime
zone = Pacific/Honolulu

; hit escape


to get out of find

; :/wq




Install DoctrineORM

pear channel
-
discover pear.symfony.com

pear channel
-
discover pear.doctrine
-
project.org

pear install
pear.doctrine
-
project.org/DoctrineORM

pear install pear.doctrine
-
project.org/DoctrineSymfonyYaml

pear install pear.doctrine
-
project.org/DoctrineSymfonyConsole



Install Twig

p
ear
channel
-
discover pear.twig
-
project.org

pear install twig/Twig





Make /var/www/h
tml/data writable

o

Open WinSCP and navigate to /var/ww
w/html
/

and change to 777 and set everything
underneath to take the same security level



Restart Server

shutdown

r now



Setup Partkeepr

o

Navigate in web
-
browser to ipaddress/setup (10.0.0.11/setup)


o

Click
next on first page and check the pre
-
reqs


o

Setup DB info






Add folders under /var/www/html/data

o

PartAttachment

o

Temporary



Make /var/www/html/data writable

o

Make everything in /var/www/html to security level 755

o

Open WinSCP and navigate to /var/www/html/
and select data. change to 777 and set
everything underneath to take the same security level