[ Server ][ Linux ] ispconfig3 설치 및 설정 > linux

본문 바로가기
사이트 내 전체검색

linux

[ Server ][ Linux ] ispconfig3 설치 및 설정

페이지 정보

작성자 웹지기 댓글 2건 조회 20,377회 작성일 19-03-04 18:41

본문

우선 CentOS7 minimal 설치후 Apache로 진행된 자료 입니다.

작업시 #은 복사하지말고 복사&붙혀넣기 신공으로 따라해 보세요.....^^

코드 붙혀넣는 작업이 더 힘드네요...아고고~


# yum -y update

# yum -y install vim wget

 

@ hosts 편집

# vim /etc/hosts

자신의 서버IP (예 : 192.168.0.100)   server1.mydomain.com     server1  추가

# echo 'server1.mydomain.com' > /etc/hostname


@ 방화벽 구성 및 기본 네트워크 소프트웨어 설치

# systemctl stop firewalld.service

# systemctl disable firewalld.service

# firewall-cmd --state

not running

# yum -y install net-tools NetworkManager-tui

 

@ SELinux 비활성화

# vim /etc/selinux/config

SELINUX=disabled 로 수정


# reboot

 

@ epel 추가 저장소 설치(이부분에 오류가 있더라 생략하고 아랫부분으로 대체)

/*

# wget http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-9.noarch.rpm

# wget http://rpms.remirepo.net/enterprise/remi-release-7.rpm

# rpm -Uvh remi-release-7.rpm epel-release-7-9.noarch.rpm

*/

윗부분에 오류가 있더라 생략하고 아랫부분으로 대체


@확인해본다

# yum repolist

# rpm -qa epel-release

# yum list epel-release

Loaded plugins: fastestmirror

Loading mirror speeds from cached hostfile

 * base: mirror.kakao.com

 * extras: mirror.kakao.com

 * updates: mirror.kakao.com

Available Packages

epel-release.noarch                          7-11                                               extra


@설치한다

# yum install epel-release

... (생략)

=============================================================================================

 Package                   Arch                Version             Repository           Size

=============================================================================================

Installing:

 epel-release              noarch              6-8                 extras               14 k


Transaction Summary

=============================================================================================

Install       1 Package(s)


Total download size: 14 k

Installed size: 22 k

Is this ok [y/N]: y

... (생략)

Installed:

  epel-release.noarch 0:6-8                                                                  


Complete!


# yum -y install yum-priorities

# vim /etc/yum.repos.d/epel.repo


[epel]

name=Extra Packages for Enterprise Linux 7 - $basearch

#baseurl=http://download.fedoraproject.org/pub/epel/7/$basearch

mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=$basearch

failovermethod=priority

enabled=1

priority=10 => 추가 후 저장

gpgcheck=1

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7

[...]


# yum update

# yum -y groupinstall 'Development Tools'

 

@쿼터 설정

# yum -y install quota

# mount | grep ' / '

/dev/mapper/cl-root on / type xfs (rw,relatime,attr2,inode64,noquota)

 

@이부분은 파티션을 처음 설정할때 /var 부분을 별도로 정했을때 확인한다. 그렇지 않고 자동으로 파티션을 잡았다면 통과!

# mount | grep ' /var '


@grub 설정

# vim /etc/default/grub


GRUB_CMDLINE_LINUX="crashkernel=auto rd.lvm.lv=cl/root rd.lvm.lv=cl/swap rhgb quiet" 부분을 아래와 같이 변경후 저장

GRUB_CMDLINE_LINUX="crashkernel=auto rd.lvm.lv=cl/root rd.lvm.lv=cl/swap rhgb quiet rootflags=uquota,gquota"

 

# cp /boot/grub2/grub.cfg /boot/grub2/grub.cfg_bak

# grub2-mkconfig -o /boot/grub2/grub.cfg


Generating grub configuration file ...

Found linux image: /boot/vmlinuz-3.10.0-514.10.2.el7.x86_64

Found initrd image: /boot/initramfs-3.10.0-514.10.2.el7.x86_64.img

Found linux image: /boot/vmlinuz-3.10.0-514.el7.x86_64

Found initrd image: /boot/initramfs-3.10.0-514.el7.x86_64.img

Found linux image: /boot/vmlinuz-0-rescue-8f8469cfc2534ec9ad9aa321579f7de8

Found initrd image: /boot/initramfs-0-rescue-8f8469cfc2534ec9ad9aa321579f7de8.img

done

 

# reboot


# mount | grep ' / '

/dev/mapper/cl-root on / type xfs (rw,relatime,attr2,inode64,usrquota,grpquota)

할당량이 활성화되면 마운트 옵션 목록에서 " usrquota, grpquota "를 볼 수 있습니다.

 

@ 서버 파티션중 /var을 잡았다면 아래와 같이 수정해 준다. 

# vim /etc/fstab

/dev/mapper/centos-var /var                     xfs     defaults        1 2 부분을 아래와 같이 추가후 저장해 준다

/dev/mapper/centos-var /var                     xfs     defaults,uquota,gquota        1 2

해당 부분이 없다면 그냥 통과 하면 된다....^^

 

# mount -o remount /var

mount: can't find /var in /etc/fstab => /var 파티션이 없다면 이렇게 출력된다.

 

@ 할당량을 사용하도록 설정합니다. 

# quotacheck -avugm


quotacheck: Skipping /dev/mapper/cl-root [/]

quotacheck: Cannot find filesystem to check or filesystem not mounted with quota option.

 

# quotaon -avug

 

@ Apache, MySQL, phpMyAdmin 설치

# yum -y install ntp httpd mod_ssl mariadb-server php php-mysql php-mbstring phpmyadmin

# echo "RequestHeader unset Proxy early" >> /etc/httpd/conf/httpd.conf

# service httpd restart


@ Dovecot 설치

# yum -y install dovecot dovecot-pigeonhole dovecot-mysql

# touch /etc/dovecot/dovecot-sql.conf

# ln -s /etc/dovecot/dovecot-sql.conf /etc/dovecot-sql.conf

# systemctl enable dovecot.service

# systemctl start dovecot.service

 

@ Postfix 설치

# yum -y install postfix

# systemctl stop sendmail.service

Failed to stop sendmail.service: Unit sendmail.service not loaded.

 

# systemctl disable sendmail.service

Failed to execute operation: No such file or directory


# systemctl enable postfix.service

# systemctl restart postfix.service

 

@ Getmail 설치

# yum -y install getmail

 

@ MariaDB 패스워드 셋팅 및 phpMyAdmin 구성 

# yum -y install mariadb mariadb-server

# systemctl enable mariadb.service

# systemctl start mariadb.service

# mysql_secure_installation


Enter current password for root (enter for none): 

OK, successfully used password, moving on...

Setting the root password ensures that nobody can log into the MariaDB

root user without the proper authorisation.


Set root password? [Y/n] y

New password: 

Re-enter new password: 

Password updated successfully!

Reloading privilege tables..

 ... Success!



By default, a MariaDB installation has an anonymous user, allowing anyone

to log into MariaDB without having to have a user account created for

them.  This is intended only for testing, and to make the installation

go a bit smoother.  You should remove them before moving into a

production environment.


Remove anonymous users? [Y/n] y

 ... Success!


Normally, root should only be allowed to connect from 'localhost'.  This

ensures that someone cannot guess at the root password from the network.


Disallow root login remotely? [Y/n] y

 ... Success!


By default, MariaDB comes with a database named 'test' that anyone can

access.  This is also intended only for testing, and should be removed

before moving into a production environment.


Remove test database and access to it? [Y/n] y

 - Dropping test database...

 ... Success!

 - Removing privileges on test database...

 ... Success!


Reloading the privilege tables will ensure that all changes made so far

will take effect immediately.


Reload privilege tables now? [Y/n] y

 ... Success!


Cleaning up...


All done!  If you've completed all of the above steps, your MariaDB

installation should now be secure.


Thanks for using MariaDB!


# vim /etc/httpd/conf.d/phpMyAdmin.conf

아래와 같이 Require ip 두곳에 # 주석처리후 바로아래에 Require all granted 를 추가하고 저장한다.

# phpMyAdmin - Web based MySQL browser written in php

#

# Allows only localhost by default

#

# But allowing phpMyAdmin to anyone other than localhost should be considered

# dangerous unless properly secured by SSL


Alias /phpMyAdmin /usr/share/phpMyAdmin

Alias /phpmyadmin /usr/share/phpMyAdmin


<Directory /usr/share/phpMyAdmin/>

   <IfModule mod_authz_core.c>

     # Apache 2.4

     <RequireAny>

     #  Require ip 127.0.0.1

     #  Require ip ::1

        Require all granted

     </RequireAny>

   </IfModule>

   <IfModule !mod_authz_core.c>

     # Apache 2.2

     Order Deny,Allow

     Deny from All

     Allow from 127.0.0.1

     Allow from ::1

   </IfModule>

</Directory>


# vim /etc/phpMyAdmin/config.inc.php


$cfg['Servers'][$i]['auth_type']     = 'cookie';  cookie를 아래와 같이 http로 수정하고 저장한다.

$cfg['Servers'][$i]['auth_type']     = 'http';

 

# systemctl enable  httpd.service

# systemctl restart  httpd.service

 

@ Amavisd-new, SpamAssassin, And ClamAV 설치

# yum -y install amavisd-new spamassassin clamav-server clamav-data clamav-update clamav-filesystem clamav clamav-scanner-systemd clamav-devel clamav-lib clamav-server-systemd unzip bzip2 perl-DBD-mysql postgrey


@Example 부분을 아래와 같이 주석처리 하고 저장

# vim /etc/freshclam.conf

# Example


# vim /etc/sysconfig/freshclam


@마지막줄에 해당 구문을 아래와 같이 주석 처리 해 준다.

# FRESHCLAM_DELAY=disabled-warn # REMOVE ME

 

@freshclam, amavisd 및 clamd.amavisd 업데이트 및 시작

# sa-update

# freshclam

# systemctl enable amavisd.service

# systemctl start amavisd.service

# systemctl enable clamd@amavisd.service

# systemctl start clamd@amavisd.service

# systemctl enable postgrey.service

# systemctl start postgrey.service

 

@ Apache with mod_php, mod_fcgi/PHP5, PHP-FPM 설치

# yum -y install php php-devel php-gd php-imap php-ldap php-mysql php-odbc php-pear php-xml php-xmlrpc php-pecl-apc php-mbstring php-mcrypt php-mssql php-snmp php-soap php-tidy curl curl-devel perl-libwww-perl ImageMagick libxml2 libxml2-devel mod_fcgid php-cli httpd-devel php-fpm php-pecl-ssh2


@php.ini 설정

# vim /etc/php.ini


error_reporting = E_ALL & ~ E_DEPRECATED & ~ E_STRICT 를 찾아서 주석 처리후 아래와 같이 변경 한다.

;error_reporting = E_ALL & ~ E_DEPRECATED & ~ E_STRICT

error_reporting = E_ALL & ~E_NOTICE & ~E_DEPRECATED & ~E_STRICT

;cgi.fix_pathinfo=1 를 찾아서 아래와 같이 주석을 삭제 한다.

cgi.fix_pathinfo=1


;date.timezone = 를 찾아서 아래와 같이 변경후 저장 한다.

date.timezone = "America/Denver"  한국이라면 date.timezone = "Asia/Seoul" 로 변경하면 되겠죠...^^


# systemctl start php-fpm.service

# systemctl enable php-fpm.service

# systemctl enable httpd.service

# systemctl restart httpd.service

 

@ Let's encrypt SSL 추가 설치


# mkdir /opt/certbot

# cd /opt/certbot

# wget https://dl.eff.org/certbot-auto

# chmod a+x ./certbot-auto

# ./certbot-auto

no names were found in your configuration files 메세지가 나오면서 계속 할것이냐고 물으면 "c" 를 클릭하고 엔터키를 눌러 취소 한다.

 

@ mod_python 설치 

# yum -y install python-devel

# cd /usr/local/src/

# wget http://dist.modpython.org/dist/mod_python-3.5.0.tgz

# tar xfz mod_python-3.5.0.tgz

# cd mod_python-3.5.0

# ./configure

# make && make install

만약 설치중 컴파일 오유가 나타난다면 아래 sed 멸령을 실행 후에 재설치 하시기 바랍니다. 정상적으로 설치가 되면 아래 sed 명령은 패쓰~~~


sed -e 's/(git describe --always)/(git describe --always 2>\/dev\/null)/g' -e 's/`git describe --always`/`git describe --always 2>\/dev\/null`/g' -i $( find . -type f -name Makefile\* -o -name version.sh )

 

설치가 끝나면 아래와 같이 Apache 모듈 활성화를 해 줍니다.

# echo 'LoadModule python_module modules/mod_python.so' > /etc/httpd/conf.modules.d/10-python.conf

# systemctl restart httpd.service

 

@ PureFTPd 설치 

# yum -y install pure-ftpd

# systemctl enable pure-ftpd.service

# systemctl start pure-ftpd.service

# yum -y install openssl

# vim /etc/pure-ftpd/pure-ftpd.conf

아래와 같이 주석 처리 된것을 해제 한다음 저장

# TLS                      1

TLS                      1

 

# mkdir -p /etc/ssl/private/

# openssl req -x509 -nodes -days 7300 -newkey rsa:2048 -keyout /etc/ssl/private/pure-ftpd.pem -out /etc/ssl/private/pure-ftpd.pem


Country Name (2 letter code) [XX]: <-- Enter your Country Name (e.g., "US").

State or Province Name (full name) []: <-- Enter your State or Province Name.

Locality Name (eg, city) [Default City]: <-- Enter your City.

Organization Name (eg, company) [Default Company Ltd]: <-- Enter your Organization Name (e.g., the name of your company).

Organizational Unit Name (eg, section) []: <-- Enter your Organizational Unit Name (e.g. "IT Department").

Common Name (eg, your name or your server's hostname) []: <-- Enter the Fully Qualified Domain Name of the system (e.g. "server1.example.com").

Email Address []: <-- Enter your Email Address.

 

# chmod 600 /etc/ssl/private/pure-ftpd.pem

# systemctl restart pure-ftpd.service

 

@ BIND 설치

# yum -y install bind bind-utils haveged

# cp /etc/named.conf /etc/named.conf_bak

# cat /dev/null > /etc/named.conf

# vim /etc/named.conf


아래 내용을 추가후 저장 한다.

//

// named.conf

//

// Provided by Red Hat bind package to configure the ISC BIND named(8) DNS

// server as a caching only nameserver (as a localhost DNS resolver only).

//

// See /usr/share/doc/bind*/sample/ for example named configuration files.

//

options {

        listen-on port 53 { any; };

        listen-on-v6 port 53 { any; };

        directory       "/var/named";

        dump-file       "/var/named/data/cache_dump.db";

        statistics-file "/var/named/data/named_stats.txt";

        memstatistics-file "/var/named/data/named_mem_stats.txt";

        allow-query     { any; };

        recursion no;

};

logging {

        channel default_debug {

                file "data/named.run";

                severity dynamic;

        };

};

zone "." IN {

        type hint;

        file "named.ca";

};

include "/etc/named.conf.local";


# touch /etc/named.conf.local

# systemctl enable named.service

# systemctl start named.service

# systemctl enable haveged.service

# systemctl start haveged.service

 

@ Webalizer And AWStats 설치

# yum -y install webalizer awstats perl-DateTime-Format-HTTP perl-DateTime-Format-Builder

# vim /etc/httpd/conf.d/awstats.conf

Require local 부분을 찾아서 Require all granted 바꾸고 저장 한다. 


# systemctl restart httpd.service

 

@ Jailkit 설치

중요 : Jailkit은 ISPConfig 전에 설치해야합니다 - 나중에 설치할 수 없습니다.


# cd /tmp

# wget http://olivier.sessink.nl/jailkit/jailkit-2.19.tar.gz

# tar xvfz jailkit-2.19.tar.gz

# cd jailkit-2.19

# ./configure

# make && make install

# cd ..

# rm -rf jailkit-2.19*


@ rkhunter 설치

# yum -y install rkhunter

 

@ Mailman 설치

# yum -y install mailman

# touch /var/lib/mailman/data/aliases

# touch /etc/mailman/aliases

# /usr/lib/mailman/bin/newlist mailman

Enter the email of the person running the list: <-- admin email address, e.g. webmaster@example.com

Initial mailman password: <-- admin password for the mailman list

To finish creating your mailing list, you must edit your /etc/aliases (or

equivalent) file by adding the following lines, and possibly running the

`newaliases' program:


## mailman mailing list

mailman:              "|/usr/lib/mailman/mail/mailman post mailman"

mailman-admin:        "|/usr/lib/mailman/mail/mailman admin mailman"

mailman-bounces:      "|/usr/lib/mailman/mail/mailman bounces mailman"

mailman-confirm:      "|/usr/lib/mailman/mail/mailman confirm mailman"

mailman-join:         "|/usr/lib/mailman/mail/mailman join mailman"

mailman-leave:        "|/usr/lib/mailman/mail/mailman leave mailman"

mailman-owner:        "|/usr/lib/mailman/mail/mailman owner mailman"

mailman-request:      "|/usr/lib/mailman/mail/mailman request mailman"

mailman-subscribe:    "|/usr/lib/mailman/mail/mailman subscribe mailman"

mailman-unsubscribe:  "|/usr/lib/mailman/mail/mailman unsubscribe mailman"


Hit enter to notify mailman owner... <-- ENTER


# ln -s /usr/lib/mailman/mail/mailman /usr/bin/mailman

# vim /etc/aliases

아래 내용을 추가 해주고 저장 한다.

[...]

mailman:              "|/usr/lib/mailman/mail/mailman post mailman"

mailman-admin:        "|/usr/lib/mailman/mail/mailman admin mailman"

mailman-bounces:      "|/usr/lib/mailman/mail/mailman bounces mailman"

mailman-confirm:      "|/usr/lib/mailman/mail/mailman confirm mailman"

mailman-join:         "|/usr/lib/mailman/mail/mailman join mailman"

mailman-leave:        "|/usr/lib/mailman/mail/mailman leave mailman"

mailman-owner:        "|/usr/lib/mailman/mail/mailman owner mailman"

mailman-request:      "|/usr/lib/mailman/mail/mailman request mailman"

mailman-subscribe:    "|/usr/lib/mailman/mail/mailman subscribe mailman"

mailman-unsubscribe:  "|/usr/lib/mailman/mail/mailman unsubscribe mailman"


# newaliases

# systemctl restart postfix.service

# vim /etc/httpd/conf.d/mailman.conf


아래 구문과 같이 ScriptAlias /cgi-bin/mailman/ /usr/lib/mailman/cgi-bin/ 를 추가 해주시고

#Alias /pipermail/ /var/lib/mailman/archives/public/ 를 # 주석 처리 하신후 

Alias /pipermail /var/lib/mailman/archives/public/ 추가 해 주세요.

#

#  httpd configuration settings for use with mailman.

#

ScriptAlias /mailman/ /usr/lib/mailman/cgi-bin/

ScriptAlias /cgi-bin/mailman/ /usr/lib/mailman/cgi-bin/

<Directory /usr/lib/mailman/cgi-bin/>

    AllowOverride None

    Options ExecCGI

    Require all granted

</Directory>



#Alias /pipermail/ /var/lib/mailman/archives/public/

Alias /pipermail /var/lib/mailman/archives/public/ 

<Directory /var/lib/mailman/archives/public>

    Options MultiViews FollowSymLinks

    AllowOverride None

    Require all granted

    AddDefaultCharset Off

</Directory>


# Uncomment the following line, replacing www.example.com with your server's

# name, to redirect queries to /mailman to the listinfo page (recommended).


# RedirectMatch ^/mailman[/]*$ http://www.example.com/mailman/listinfo


# systemctl restart httpd.service

# systemctl enable mailman.service

# systemctl start mailman.service

 

@ Roundcube webmail 설치

# yum -y install roundcubemail

# vim /etc/httpd/conf.d/roundcubemail.conf

아래와 같이 roundcubemail.conf 구성 파일을 수정하세요.

#

# Round Cube Webmail is a browser-based multilingual IMAP client

#

Alias /roundcubemail /usr/share/roundcubemail

Alias /webmail /usr/share/roundcubemail


# Define who can access the Webmail

# You can enlarge permissions once configured


#<Directory /usr/share/roundcubemail/>

#    <IfModule mod_authz_core.c>

#        # Apache 2.4

#        Require local

#    </IfModule>

#    <IfModule !mod_authz_core.c>

#        # Apache 2.2

#        Order Deny,Allow

#        Deny from all

#        Allow from 127.0.0.1

#        Allow from ::1

#    </IfModule>

#</Directory>


<Directory /usr/share/roundcubemail/>

        Options none

        AllowOverride Limit

        Require all granted

</Directory>


# Define who can access the installer

# keep this secured once configured


#<Directory /usr/share/roundcubemail/installer/>

#    <IfModule mod_authz_core.c>

#        # Apache 2.4

#        Require local

#    </IfModule>

#    <IfModule !mod_authz_core.c>

#        # Apache 2.2

#        Order Deny,Allow

#        Deny from all

#        Allow from 127.0.0.1

#        Allow from ::1

#    </IfModule>

#</Directory>


<Directory /usr/share/roundcubemail/installer>

        Options none

        AllowOverride Limit

        Require all granted

</Directory>



# Those directories should not be viewed by Web clients.

<Directory /usr/share/roundcubemail/bin/>

    Order Allow,Deny

    Deny from all

</Directory>

<Directory /usr/share/roundcubemail/plugins/enigma/home/>

    Order Allow,Deny

    Deny from all

</Directory>



# systemctl restart httpd.service

# mysql -u root -p


아래와 같이 데이터베이스를 설치 해 줍니다.

Enter password: 

Welcome to the MariaDB monitor.  Commands end with ; or \g.

Your MariaDB connection id is 14

Server version: 5.5.52-MariaDB MariaDB Server

Copyright (c) 2000, 2016, Oracle, MariaDB Corporation Ab and others.


Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.


MariaDB [(none)]> CREATE DATABASE roundcubedb;

Query OK, 1 row affected (0.00 sec)


MariaDB [(none)]> CREATE USER roundcubeuser@localhost IDENTIFIED BY 'roundcubepassword';

Query OK, 0 rows affected (0.00 sec)


MariaDB [(none)]> GRANT ALL PRIVILEGES on roundcubedb.* to roundcubeuser@localhost ;

Query OK, 0 rows affected (0.00 sec)


MariaDB [(none)]> FLUSH PRIVILEGES;

Query OK, 0 rows affected (0.00 sec)


MariaDB [(none)]> exit

Bye


DB작업 완료후 브라우저로 아래 링크로 접근해서 설치를 진행 합니다.

http://자신의IP/roundcubemail/installer


Database setup 부분에서 비밀번호 입력


그런다음에 아래의 파일을 생성해서 붙여넣기 후

# vim /etc/roundcubemail/config.inc.php


아래 내용으로 수정 한후 쉘에서 저장 한다.

<?php

/* Local configuration for Roundcube Webmail */


// ----------------------------------

// SQL DATABASE

// ----------------------------------

// Database connection string (DSN) for read+write operations

// Format (compatible with PEAR MDB2): db_provider://user:password@host/database

// Currently supported db_providers: mysql, pgsql, sqlite, mssql or sqlsrv

// For examples see http://pear.php.net/manual/en/package.database.mdb2.intro-dsn.php

// NOTE: for SQLite use absolute path: 'sqlite:////full/path/to/sqlite.db?mode=0646'

$config['db_dsnw'] = 'mysql://roundcubeuser:roundcubepassword@localhost/roundcubedb';


// ----------------------------------

// IMAP

// ----------------------------------

// The mail host chosen to perform the log-in.

// Leave blank to show a textbox at login, give a list of hosts

// to display a pulldown menu or set one host as string.

// To use SSL/TLS connection, enter hostname with prefix ssl:// or tls://

// Supported replacement variables:

// %n - hostname ($_SERVER['SERVER_NAME'])

// %t - hostname without the first part

// %d - domain (http hostname $_SERVER['HTTP_HOST'] without the first part)

// %s - domain name after the '@' from e-mail address provided at login screen

// For example %n = mail.domain.tld, %t = domain.tld

// WARNING: After hostname change update of mail_host column in users table is

//          required to match old user data records with the new host.

$config['default_host'] = 'localhost';


// provide an URL where a user can get support for this Roundcube installation

// PLEASE DO NOT LINK TO THE ROUNDCUBE.NET WEBSITE HERE!

$config['enable_installer'] = true;

$config['support_url'] = '';


// this key is used to encrypt the users imap password which is stored

// in the session record (and the client cookie if remember password is enabled).

// please provide a string of exactly 24 chars.

$config['des_key'] = 'FHgaM7ihtMkM1cBwckOcxPdT';


// ----------------------------------

// PLUGINS

// ----------------------------------

// List of active plugins (in plugins/ directory)

추천0 비추천0

댓글목록

웹지기님의 댓글

웹지기 작성일

systemctl status amavisd.service
● amavisd.service - Amavisd-new is an interface between MTA and content checkers.
  Loaded: loaded (/usr/lib/systemd/system/amavisd.service; enabled; vendor preset: disabled)
  Active: failed (Result: start-limit) since 화 2019-03-05 14:11:20 KST; 3min 21s ago
    Docs: http://www.ijs.si/software/amavisd/#doc
  Process: 5514 ExecStart=/usr/sbin/amavisd -c /etc/amavisd/amavisd.conf (code=exited, status=13)

 3월 05 14:11:20 ispcp.domain.com systemd[1]: Unit amavisd.service entered failed state.
 3월 05 14:11:20 ispcp.domain.com systemd[1]: amavisd.service failed.
 3월 05 14:11:20 ispcp.domain.com systemd[1]: amavisd.service holdoff time over, scheduling restart.
 3월 05 14:11:20 ispcp.domain.com systemd[1]: Stopped Amavisd-new is an interface between MTA and content checkers..
 3월 05 14:11:20 ispcp.domain.com systemd[1]: start request repeated too quickly for amavisd.service
 3월 05 14:11:20 ispcp.domain.com systemd[1]: Failed to start Amavisd-new is an interface between MTA and content checkers..
 3월 05 14:11:20 ispcp.domain.com systemd[1]: Unit amavisd.service entered failed state.
 3월 05 14:11:20 ispcp.domain.com systemd[1]: amavisd.service failed.

웹지기님의 댓글의 댓글

웹지기 작성일

http://forums.sentora.org/showthread.php?tid=1132

vi /etc/sysconfig/freshclam
### !!!!! REMOVE ME !!!!!!
### REMOVE ME: By default, the freshclam update is disabled to avoid
### REMOVE ME: network access without prior activation
FRESHCLAM_DELAY=disabled-warn  # REMOVE ME

vi /etc/amavisd/amavisd.conf
$mydomain = ‘domain.com’;  # a convenient default for other settings
$myhostname = 'mail.domain.com’;  # must be a fully-qualified domain name and same as reverse DNS lookup

Total 103건 1 페이지
  • 103 [ Server ][ Linux ] CentOS 7 SELinux 설정 및 해제하기
  • SELinux 는 Linux의 보안을 강화해 주는 보안 강화 커널이고 zero-day 공격 및 buffer overflow 등 어플리케이션 취약점으로 인한 해킹을 방지해 주는 핵심 구성요소이다. 특정 서비스가 SELinux 때문에 동작하지 않는다면 SELinux 를 끄기 보다는 해당 서비스가 SELinux 하에서 잘 동작하도록 설정을 수정하는걸 권장한다. SELinux 동작 모드 enforce, permissive, disable 세 가지 모드가 있으며 RHEL/CentOS 를 설치하...
  • 웹지기 12-13 23196 0 0 댓글 0
  • 102 [ Server ][ Linux ] cron사용법(쉘스크립트, 리눅스 파일 자동실행)
  • ## 크론설정(쉘스크립트 실행)---------- ---------- ----------------------------------------------------------------------------------------------------필 드 의 미 범 위---------- ---------- ---------------------------------------------------------------------------------------------...
  • 웹지기 09-11 21634 0 0 댓글 0
  • 열람중 [ Server ][ Linux ] ispconfig3 설치 및 설정
  • 우선 CentOS7 minimal 설치후 Apache로 진행된 자료 입니다. 작업시 #은 복사하지말고 복사&amp;붙혀넣기 신공으로 따라해 보세요.....^^ 코드 붙혀넣는 작업이 더 힘드네요...아고고~ # yum -y update # yum -y install vim wget @ hosts 편집 # vim /etc/hosts 자신의 서버IP (예 : 192.168.0.100) server1.mydomain.com serve...
  • 웹지기 03-04 20378 0 0 댓글 2
  • 100 [ Server ][ Linux ] CentOS 7 virtual host 설정하기 ( 가상호스트 설정 )
  • 기본적으로 들어오는 경로에 대해 httpd.conf에 정의 되어있다. httpd.conf 백업파일 없으면 파일을 백업해둔다 cp /etc/httpd/conf/httpd.conf /etc/httpd/conf/httpd.conf.original httpd.conf파일을 연다. vim /etc/httpd/conf/httpd.conf httpd.conf파일의 최하단에 다음의 두 줄을 추가한다. # virtual host setting ...
  • 웹지기 12-12 18569 0 0 댓글 0
  • 99 [ Server ][ Linux ] CentOS 7 mysql MariaDB 실행 / 설정 / 방화벽
  • MariaDB 실행하기 마리아db설치는 아래 링크를 따라하세요 https://funyphp.com/archive/knowledge/109 먼저 db가 실행중인지 확인하고 실행중이 아니라면 실행을 시켜줍니다. # systemctl status mysql # systemctl start mysql 서비스에 등록이 되어있지 않으면 서비스에 등록해 준다. # systemctl enable mariadb.service 방화벽 설정 ...
  • 웹지기 12-11 17748 0 0 댓글 0
  • 98 [ Server ][ Linux ] CentOS 7 명령어 정리
  • 설치 wget [URL] : URL에 있는 파일을 다운로드 받는다. rpm rpm -Uvh [rpm] : 패키지를 설치하거나, 업그레이드 한다. rpm -qi [rpm] : 패키지가 설치 되어있는지 확인한다. rpm -e [rpm] : 패키지를 삭제 한다. yum(의존성이 있는 패키지 그룹 단위) yum -y install [패키지] : 패키지를 설치한다. yum -y erase [패키지] ...
  • 웹지기 12-11 17615 0 0 댓글 0
  • 97 [ Server ][ Linux ] FFMpeg java로 연습하기
  • FFmpeg 는 다양한 디지털 음성 스트림과 영상 스트림을 녹화, 변환할 수 있는 유틸리티 프로그램이다. 원래 리눅스용으로 개발되었으나 현재는 윈도우에서도 많이 사용하고 있다. 명령어를 직접 날려서 (윈도우라면 cmd창) 동작하는 방식이며 여러가지 프리 소프트웨어와 오픈 소스 라이브러리로 구성되어 있다. 라이브러리 중에는 libavcodec 들어있는데, 이 라이브러리는 음성/영상 코덱 라이브러리로 여러 프로젝트에서 쓰이고 있다. 또, libavformat 이라는 음성/영상 다중화, 역다...
  • 웹지기 02-28 16168 0 0 댓글 0
  • 96 [ Server ][ Linux ] centos7 FFMpeg 설치방법
  • FFmpeg는 모든 종류의 온라인 스트리밍 서비스에서 널리 사용되는 오디오 및 비디오를 기록, 변환 및 스트리밍하는 인기있는 오픈 소스 솔루션 CentOS 7 서버에 FFmpeg를 설치하는 방법을 설명 1. 시스템 업데이트 sudo yum install epel-release -y 사용금지:sudo yum update -y sudo shutdown -r now 참조 : epel = Extra Packages for Enterprise Linux→ 엔터프라이즈 리눅스를 위한 추...
  • 웹지기 02-28 15754 0 0 댓글 0
  • 95 [ Server ][ Linux ] CentOS 7 vsftp 설치 및 설정 방화벽 설정
  • vsftp 를 yum 을 이용해 설치 합니다. # yum -y update # yum install -y vsftpd systemctl 명령어로 vsftpd를 시작/중지/상태확인한다. # systemctl status vsftpd.service # systemctl start vsftpd.service # systemctl stop vsftpd.service # systemctl restart vsftpd.servi...
  • 웹지기 12-11 14944 0 0 댓글 0
  • 94 [ Server ][ Linux ] CentOS 7 계정생성 / 계정삭제, 유저계정 권한변경, 계정기본파일 …
  • 계정 생성 : useradd 계정명 계정 생성 확인 : cat /etc/passwd | grep 계정명 계정 비밀번호 생성 : passwd 계정명 기본적으로 계정을 만들면 /home/계정명으로 생성된다. 계정생성시 자동으로 폴더와 파일을 추가하려면 /etc/skel/ 폴더에 public_html 을 만들어주고 에러확인을 위한 폴더( _log )도 추가해 주자. 만들어진 public_html 폴더에 시작파일인 index.html , index.php 파일등을 만들어서 셋팅이 잘되었는지...
  • 웹지기 12-12 13620 0 0 댓글 0
  • 93 [ Server ][ Linux ] CentOS7 rewrite_mod 설정방법
  • Apache rewrite Module-작성자 : 윤일-:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;Apache 는 추가적으로 사용할 수 있는 유용한 모듈들을 제공합니다.이번강좌에서는Apache의 URL Rewrite 모듈을 사용하기 위한 컴파일,설치와 httpd.conf의 설정방법 그리고 활용방법에 대해 알아보겠습니다.Apache 다운로드 :http://www.apache.org1....
  • 웹지기 09-28 13269 0 0 댓글 2
+8
  • 92 [ Server ][ Linux ] CentOS 7 설치 및 설정하기 다섯번째 root계정 접속 막기
  • 리눅스에서 특별한 조치를 취하지 않으면 SSH포트가 열려있고, Root 계정도 활성화 되어있다. 포트스캐닝을 통해서 포트가 SSH포트가 열려있는게 확인되면 Root에 대한 무장위 대입공격을 통해 해킹을 시도한다. 오랜 해킹시도에 노출이 되면 서버보안에 큰문제가 된다. Root계정을 막기 전에 새로운 계정을 생성해 준다. useradd [ 계정이름 ] passwd [ 계정이름 ] 새 암호 : [ 암호입력 ] 새 암호 재입력 : [ 같은 암호 재입력 ] 새로운 계정을 만들었으면,...
  • 웹지기 12-10 12971 0 0 댓글 0
  • 91 [ Server ][ Linux ] CentOS 7 데몬 종류
  • NetworkManager, NetworkManagerDispatcher 네트워크 인터페이스를 자동으로 관리하기 위한 데몬 acpid ACPI(Advanced Configuration and Power Interface) 방식의 시스템 전력 관리를 위한 데몬 anacron crond와 같은 작업 스케줄러 데몬이지만 crond와는 달리 시스템이 계속 켜져있지 않다고 가정하여 하루보다 작은 단위의 스케줄을 관리 apmd APM...
  • 웹지기 12-11 12615 0 0 댓글 0
+4
  • 90 [ Server ][ Linux ] CentOS 7 ruby 설치
  • CentOS 7 에 ruby를 설치해봅시다. 일단 루비가 설치 되어있는지 검색해봅니다. 최소버젼을 이용하여 설치를 했었기 때문에 당연히 설치가 안되어있겠죠... 예상대로 설치가 되어 있지 않습니다. 그러면 루비를 설치해 보겠습니다. 중간에 이러한 질의가 뜨는군요. Is this ok [y/n]: y라고 치면 계속 진행이 됩니다. 다운로드가 계속 진행이 되고 완료가 됩니다. 설치가 완료가 되었는지 확인해보겠습니다. 설치도 완료가 되었고, 버젼도 ...
  • 웹지기 12-27 11826 0 0 댓글 0
  • 89 [ Server ][ Linux ] CentOS7 php 소스 컴파일러 설치
  • php 소스컴파일 설치1. 라이브러리 설치// 컴파일 환경설정에 추가해준 라이브러리 들을 우선적으로 설치 해야 한다.// os를 인스톨 할때 선택해 주었다면 설치할 필요가 없다.// 빠진 것이 있다면 컴파일 실행시 경고메세지와 함께 컴파일이 중지된다.--libjpeg 설치 (다운로드 하는곳)----tar xvfz jpegsrc.v7.tar.gz----cd jpegsrc-v7----./configure --enable-shared --enable-static----make----make insta...
  • 웹지기 09-27 11750 0 0 댓글 0
게시물 검색

회원로그인

접속자집계

오늘
5,042
어제
5,809
최대
33,828
전체
8,102,821

그누보드5
Copyright © funyphp.com. All rights reserved.