myBox :: 'Linux' 카테고리의 글 목록

[CentOS] dokuwiki 설치

Linux 2019. 5. 11. 00:25

Requirements  Apache, PHP version 5.6 or later, PHP GD extension 

dokuwiki ver. stable → https://download.dokuwiki.org/out/dokuwiki-fe7e3047b438b17bbea3d72dfca8504d.tgz

 

0. 준비단계

yum install wget
yum install make

 

1. PHP 설치

yum install libxml2-devel

yum install libjpeg-devel

yum install libpng-devel

yum install freetype-devel

yum install bison

yum install flex

ln -s /usr/lib64/libjpeg.so /usr/lib/
ln -s /usr/lib64/libpng.so /usr/lib/

./configure --prefix=/usr/local/server/php \
--with-apxs2=/usr/local/server/apache/bin/apxs \
--with-mysql=/usr/local/server/mysql \
--with-config-file-path=/usr/local/server/apache/conf \
--disable-debug \
--enable-safe-mode \
--enable-track-vars \
--enable-sockets \
--with-mod_charset \
--with-charset=utf8 \
--with-xml \
--with-language=korean \
--enable-mailparse \
--enable-calender \
--enable-sysvsem=yes \
--enable-sysvshm=yes \
--enable-ftp \
--enable-magic-quotes \
--enable-gd-native-ttf \
--enable-url-includes \
--enable-trans-id \
--enable-inline-optimization \
--enable-bcmath \
--with-jpeg \
--with-png \
--with-zlib \
--with-jpeg-dir=/usr \
--with-png-dir=/usr/lib \
--with-freetype-dir=/usr \
--with-libxml-dir=/usr \
--enable-exif \
--with-gd \
--with-ttf \
--with-gettext \
--enable-sigchild \
--enable-mbstring


 

 

 

wget https://www.php.net/distributions/php-7.3.5.tar.gz

tar xfvz php-7.3.5.tar.gz

2. dokuwiki 설치

wget https://download.dokuwiki.org/out/dokuwiki-fe7e3047b438b17bbea3d72dfca8504d.tgz   

mv -f  https://download.dokuwiki.org/out/dokuwiki-fe7e3047b438b17bbea3d72dfca8504d.tgz /var/www/html

tar xfvz wordpress-3.8.1-ko_KR.tar.gz



 

'Linux' 카테고리의 다른 글

워드프레스 설치 ver.3.7.1 (http://wordpress.org/)  (0) 2013.12.07
[기타] c0 생성후, 라우팅테이블 상태  (0) 2013.11.17
GuestOS 설치시 참고 (CentOS, 파티션설정부분)  (0) 2013.11.02
xe 설치  (0) 2013.10.28
sentry 설치  (0) 2013.10.28
블로그 이미지

Eeeyah

,

ex) Apache

 

[설정 전]

 

[root@c0 ~]# chkconfig | grep httpd
httpd           0:off   1:off   2:off   3:off   4:off   5:off   6:off

 

 

 

[설정 후]

 

[root@c0 ~]# chkconfig httpd on

[root@c0 ~]# chkconfig | grep httpd
httpd           0:off   1:off   2:on    3:on    4:on    5:on    6:off

 

블로그 이미지

Eeeyah

,

워드프레스 설치 ver.3.8.1 (http://ko.wordpress.org//)

(APM은 설치 되어있음을 가정)

1. 다운로드 및 압축해제

[root@c0 home]# wget http://ko.wordpress.org/wordpress-3.8.1-ko_KR.tar.gz

[root@c0 home]# mv -f latest.tar.gz /var/www/html

[root@c0 home]# cd /var/www/html/

[root@c0 html]# tar xfvz wordpress-3.8.1-ko_KR.tar.gz

 

2. 샘플 설정파일 복사

[root@c0 html]# cd wordpress

[root@c0 wordpress]# cp wp-config-sample.php wp-config.php

* DB관련 설정 수정

[root@c0 wordpress]# vi wp-config.php

<?php
/**
 * The base configurations of the WordPress.
 *
 * This file has the following configurations: MySQL settings, Table Prefix,
 * Secret Keys, WordPress Language, and ABSPATH. You can find more information
 * by visiting {@link http://codex.wordpress.org/Editing_wp-config.php Editing
 * wp-config.php} Codex page. You can get the MySQL settings from your web host.
 *
 * This file is used by the wp-config.php creation script during the
 * installation. You don't have to use the web site, you can just copy this file
 * to "wp-config.php" and fill in the values.
 *
 * @package WordPress
 */

// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define('DB_NAME', 'w');

/** MySQL database username */
define('DB_USER', 'root');

/** MySQL database password */
define('DB_PASSWORD', 'password');

/** MySQL hostname */
define('DB_HOST', 'localhost');

/** Database Charset to use in creating database tables. */
define('DB_CHARSET', 'utf8');

/** The Database Collate type. Don't change this if in doubt. */
define('DB_COLLATE', '');

/**#@+
 * Authentication Unique Keys and Salts.
 *
 * Change these to different unique phrases!
 * You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service}
 * You can change these at any point in time to invalidate all existing cookies. This will force all users to have to log in again.
 *
 * @since 2.6.0
 */
define('AUTH_KEY',         'X,C+:OM7FwBsRp=A9S+vGUr>~{o,CO%`|L8*A8TtvJ<A;0bX(?Oj$*#x}x4Nk8H@');
define('SECURE_AUTH_KEY',  'Ecomg-W<XMq_%YR3Nu~0 [+($3+iAc%|cA[4t;@.F?kn[+6J)t?EelS5{+!gmGMK');
define('LOGGED_IN_KEY',    '7{*H&XthOsh]XTcPK2E1lN%HOqwErJj/+t_(C,atV@nRwO>)F$Xmc.u4Csb=sm(<');
define('NONCE_KEY',        'axPl/wtoK3Wx9)iRUZ(b|@(}gi*X(.c=r,!g3!-Q5WjRwo&:;V:7RO%60gtorxYo');
define('AUTH_SALT',        'ftt=$P_*!@-;|J2A.AV+=|xv&o)|Dxi8pAc-7e6VRZagxG$1*}A[6a/I-xxNa5hs');
define('SECURE_AUTH_SALT', 'YMzby>j|;Fg:U&qGk=8| U<*7xkUw$0)%-Y9C0B:`J4C3Y&Pj1[i$vU>5lx~)>m.');
define('LOGGED_IN_SALT',   'F>j*fJ~Ir?TK+dp>kG#%O`HCLIrH26Bj.NZFbzB/%;6^UUL7dJhcgg=;O>~J+LbT');
define('NONCE_SALT',       'z[Xk.[TN}yb~X{&5bap97|6Fvm:?^Q6F?=<cB^7st(F(~,N>B/.~+p5F5U/D#n6}');

/**#@-*/

/**
 * WordPress Database Table prefix.
 *
 * You can have multiple installations in one database if you give each a unique
 * prefix. Only numbers, letters, and underscores please!
 */
$table_prefix  = 'wp_';

/**
 * WordPress Localized Language, defaults to English.
 *
 * Change this to localize WordPress. A corresponding MO file for the chosen
 * language must be installed to wp-content/languages. For example, install
 * de_DE.mo to wp-content/languages and set WPLANG to 'de_DE' to enable German
 * language support.
 */
define('WPLANG', '');

/**
 * For developers: WordPress debugging mode.
 *
 * Change this to true to enable the display of notices during development.
 * It is strongly recommended that plugin and theme developers use WP_DEBUG
 * in their development environments.
 */
define('WP_DEBUG', false);

/* That's all, stop editing! Happy blogging. */

/** Absolute path to the WordPress directory. */
if ( !defined('ABSPATH') )
        define('ABSPATH', dirname(__FILE__) . '/');

/** Sets up WordPress vars and included files. */
require_once(ABSPATH . 'wp-settings.php');

3. mysql 서비스 시작 → 접속 → DataBase생성

[root@c0 wordpress]# /etc/init.d/mysqld start

[root@c0 wordpress]# mysql -u root -p

mysql> create database w;

 

4. 익스플로러에서 접근 후, 설치

http://10.10.10.10/wordpress/wp-admin/install.php

 

5. FTP 설정 및 계정 생성

[root@c0 ~]# vi /etc/vsftpd/vsftpd.conf

anonymous_enable=NO

 

[root@c0 ~]# useradd -d /var/www/html/wordpress/wp-content/ 계정명

*    -d : 홈디렉토리를 지정하는 옵션

 

6. FTP 접속

워드프레스 테마나 플러그인을 설치할때 사용됨 

 

 

'Linux' 카테고리의 다른 글

[CentOS] dokuwiki 설치  (0) 2019.05.11
[기타] c0 생성후, 라우팅테이블 상태  (0) 2013.11.17
GuestOS 설치시 참고 (CentOS, 파티션설정부분)  (0) 2013.11.02
xe 설치  (0) 2013.10.28
sentry 설치  (0) 2013.10.28
블로그 이미지

Eeeyah

,

 c0 생성후, 라우팅테이블 상태

 

[root@c0 ~]# netstat -anr
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
192.168.137.0   0.0.0.0         255.255.255.0   U         0 0          0 eth0
169.254.0.0     0.0.0.0         255.255.0.0     U         0 0          0 eth0
0.0.0.0         192.168.137.1   0.0.0.0         UG        0 0          0 eth0
[root@c0 ~]#

 

NIC추가

[root@c0 ~]# cp /etc/sysconfig/network-scripts/ifcfg-eth0 /etc/sysconfig/network-scripts/ifcfg-eth1
[root@c0 ~]# vi /etc/sysconfig/network-scripts/ifcfg-eth1

eth0 → eth1 변경, HWADDR 주석처리 후, 저장


[root@c0 ~]# ifup eth1

 

NIC 추가후, 라우팅테이블 상태 (SSH접속도 느려졌음, yum 도 안됨)

 

[root@c0 ~]# netstat -anr
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
192.168.0.0     0.0.0.0         255.255.255.0   U         0 0          0 eth1
192.168.137.0   0.0.0.0         255.255.255.0   U         0 0          0 eth0
169.254.0.0     0.0.0.0         255.255.0.0     U         0 0          0 eth0
169.254.0.0     0.0.0.0         255.255.0.0     U         0 0          0 eth1
0.0.0.0         192.168.0.1     0.0.0.0         UG        0 0          0 eth1
[root@c0 ~]#

 

[root@c0 ~]# route add -net 0.0.0.0 netmask 0.0.0.0 gw 192.168.137.1 eth0
[root@c0 ~]# netstat -anr
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
192.168.0.0     0.0.0.0         255.255.255.0   U         0 0          0 eth1
192.168.137.0   0.0.0.0         255.255.255.0   U         0 0          0 eth0
169.254.0.0     0.0.0.0         255.255.0.0     U         0 0          0 eth0
169.254.0.0     0.0.0.0         255.255.0.0     U         0 0          0 eth1
0.0.0.0         192.168.137.1   0.0.0.0         UG        0 0          0 eth0
0.0.0.0         192.168.0.1     0.0.0.0         UG        0 0          0 eth1

 

[root@c0 ~]# route del -net 0.0.0.0 netmask 0.0.0.0 gw 192.168.0.1 eth1
[root@c0 ~]# netstat -anr
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
192.168.0.0     0.0.0.0         255.255.255.0   U         0 0          0 eth1
192.168.137.0   0.0.0.0         255.255.255.0   U         0 0          0 eth0
169.254.0.0     0.0.0.0         255.255.0.0     U         0 0          0 eth0
169.254.0.0     0.0.0.0         255.255.0.0     U         0 0          0 eth1
0.0.0.0         192.168.137.1   0.0.0.0         UG        0 0          0 eth0
[root@c0 ~]#

 


 

[root@c0 ~]# vi /etc/resolv.conf

; generated by /sbin/dhclient-script
#nameserver 121.254.25.230
#nameserver 121.254.25.220
nameserver 192.168.137.1

 

 

/etc/yum.repos.d ?????

 

'Linux' 카테고리의 다른 글

[CentOS] dokuwiki 설치  (0) 2019.05.11
워드프레스 설치 ver.3.7.1 (http://wordpress.org/)  (0) 2013.12.07
GuestOS 설치시 참고 (CentOS, 파티션설정부분)  (0) 2013.11.02
xe 설치  (0) 2013.10.28
sentry 설치  (0) 2013.10.28
블로그 이미지

Eeeyah

,

 

 

 

 

 

'Linux' 카테고리의 다른 글

워드프레스 설치 ver.3.7.1 (http://wordpress.org/)  (0) 2013.12.07
[기타] c0 생성후, 라우팅테이블 상태  (0) 2013.11.17
xe 설치  (0) 2013.10.28
sentry 설치  (0) 2013.10.28
[ubuntu] 설치 직후,  (0) 2013.10.28
블로그 이미지

Eeeyah

,

xe 설치

Linux 2013. 10. 28. 22:45

XE Core 1.7.3.4

/usr/local/server/apache/htdocs  폴더내에 xe.1.7.3.4.ko.zip 카피 후,

unzip -x xe.1.7.3.4.ko.zip

chmod -R 707 xe

xe에서 사용할 DB 생성

'Linux' 카테고리의 다른 글

[기타] c0 생성후, 라우팅테이블 상태  (0) 2013.11.17
GuestOS 설치시 참고 (CentOS, 파티션설정부분)  (0) 2013.11.02
sentry 설치  (0) 2013.10.28
[ubuntu] 설치 직후,  (0) 2013.10.28
[CentOS] 초기 minimal 설치 후  (0) 2013.10.26
블로그 이미지

Eeeyah

,

sentry 설치

Linux 2013. 10. 28. 22:43

20130826-2248(before_installing_sentry) sentry 설치 전 스냅샷

[sentry 설치]

easy_install -UZ virtualenv

virtualenv ~/apps/sentry


cd ~/apps/sentry/
easy_install -UZ virtualenv
easy_install -UZ sentry[mysql]
easy_install -U distribute

 

 

sentry init


에러! """""File "/usr/bin/easy_install", line 9, in <module>"""""

wget http://python-distribute.org/distribute_setup.py
python distribute_setup.py

easy_install -U distribute

 

 

 

 

 

 

 

yum install python-devel

 

 

 

 

 

yum install python-devel
#yum install libevent-devel

 

 

yum install python-devel
yum install mysql-devel
easy_install -U distribute
easy_install sentry[mysql]에러남
wget http://python-distribute.org/distribute_setup.py
python distribute_setup.py
easy_install sentry[mysql]


sentry init
vi ~/.sentry/sentry.conf.py

ALLOWED_HOSTS = ['10.10.10.13']

 mysqladmin -u root -p create sentry

Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock'


mysql.sock 파일을 저 경로에서 찾으니 연결 할 수 없다고 하지...

mysql 데몬이 실행되면 mysql.sock 생기고, 중지하면 사라짐...

my.cnf 파일 까보면 mysql.sock 소켓 경로가 적혀있는데...디폴트로.. /tmp/mysql.sock 에 생김....

임시방편 -> ln -s /tmp/mysql.sock /var/lib/mysql/mysql.sock

 


Specified key was too long; max key length is 1000 bytes

 

FATAL ERROR -
The following SQL query failed:
ALTER TABLE `social_auth_association` ADD CONSTRAINT `social_auth_association_handle_693a924207fa6ae_uniq` UNIQUE (`handle`, `server_url`)


The error was: (1071, 'Specified key was too long; max key length is 1000 bytes')

 

 

 

 

'Linux' 카테고리의 다른 글

GuestOS 설치시 참고 (CentOS, 파티션설정부분)  (0) 2013.11.02
xe 설치  (0) 2013.10.28
[ubuntu] 설치 직후,  (0) 2013.10.28
[CentOS] 초기 minimal 설치 후  (0) 2013.10.26
[CentOS] 기타  (0) 2013.10.25
블로그 이미지

Eeeyah

,

[ubuntu] 설치 직후,

Linux 2013. 10. 28. 22:40

apt-get install ssh

ufw enable
ufw allow 22

apt-get install nfs-kernel-server

'Linux' 카테고리의 다른 글

xe 설치  (0) 2013.10.28
sentry 설치  (0) 2013.10.28
[CentOS] 초기 minimal 설치 후  (0) 2013.10.26
[CentOS] 기타  (0) 2013.10.25
[CentOS] cacti 설치  (0) 2013.10.25
블로그 이미지

Eeeyah

,

vi /etc/resolv.conf

공유기에서 사용하는 nameserver 정보로 갱신

→ 121.254.25.230

 

 

* rdate: timeout for time.bora.net

이 증상도 같은 방법으로 해결

블로그 이미지

Eeeyah

,

[NIC 설정]

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

vi /etc/sysconfig/network-scripts/ifcfg-eth1

ONBOOT=yes

 

init 6

 

 

 

[호스트네임변경]

vi /etc/sysconfig/network

'Linux' 카테고리의 다른 글

sentry 설치  (0) 2013.10.28
[ubuntu] 설치 직후,  (0) 2013.10.28
[CentOS] 기타  (0) 2013.10.25
[CentOS] cacti 설치  (0) 2013.10.25
[CentOS] 방화벽 설정  (0) 2013.10.25
블로그 이미지

Eeeyah

,