[vqadmin 설치방법]


# wget http://notes.sagredo.eu/sites/notes.sagredo.eu/files/qmail/tar/vqadmin-2.3.7.tar.gz     -> wget 으로 다운로드


# wget http://notes.sagredo.eu/sites/notes.sagredo.eu/files/qmail/patches/vqadmin/vqadmin-2.3.7_20150829.patch     -> wget 으로 다운로드


# tar xzf vqadmin-2.3.7.tar.gz        -> 압축풀기


# cd vqadmin-2.3.7        -> 해당디렉토리로 이동


# patch -p1 < ../vqadmin-2.3.7_20150829.patch


# ./configure --enable-qmaildir=/var/qmail --enable-cgibindir=/usr/local/www/htdocs/qmail/cgi-bin        -> qmail이 설치된경로 및 cgi-bin 경로설정


# make


# make install-strip


# vi /usr/local/www/htdocs/qmail/cgi-bin/vqadmin/.htaccess        -> 해당파일 열어서 AuthUserFile 경로잡아주기


AuthType Basic
AuthUserFile /usr/local/www/htdocs/qmail/cgi-bin/vqadmin/vqadmin.passwd        -> 해당경로에 vqadmin.passwd파일을 인식한다는 내용
AuthName vQadmin
require valid-user
#satisfy any        -> 기본값으로 주석처리가 안되어있음. 반드시 주석처리해줘야함


#/usr/local/apache/bin/htpasswd -bc /usr/local/www/htdocs/qmail/cgi-bin/vqadmin/vqadmin.passwd admin admin     -> id는 admin pw는 admin


# vim /usr/local/www/htdocs/qmail/cgi-bin/vqadmin/vqadmin.acl        -> 해당파일열어서 아래내용 수정



default - ...

#
# Access permissions:
#
# V View user information
# I View domain information
# M Modify user information
# U Modify domain information
# C Create user
# A Create domain
# D Delete user
# X Delete domain
#
# These features will still appear in the HTML templates
# if the user doesn't have access to them, however, they will
# get a permission denied error if they try to make use of
# them.
#

tech VI tech1user
admin VIMUDCA admin1user
admin VIMUDCADX admin        -> 아까 만든계정
#
# An asterisk in the features field specifies that you
# want all users in this group to have access to
# all features.
#

senior * admin




# cd /usr/local/www/htdocs/qmail/cgi-bin/vqadmin/html/        -> 해당경로 이동
# cp -arp it it-it    -> 왜 해주는지 모르겠다



# vi /usr/local/apache/conf/httpd.conf       -> 아래내용 수정 아파치2.4버전이 아닐경우 구문이 다름


LoadModule cgid_module modules/mod_cgid.so        -> 해당모듈 주석처리되어있음. 주석해제할것


<IfModule cgid_module>
    #
    # ScriptSock: On threaded servers, designate the path to the UNIX
    # socket used to communicate with the CGI daemon of mod_cgid.
    #
    #Scriptsock cgisock
</IfModule>


<Directory "/usr/local/www/htdocs/qmail">
AllowOverride AuthConfig
Options +ExecCGI
Require all granted
</Directory>
<Directory "/usr/local/www/htdocs/qmail/cgi-bin">
AllowOverride AuthConfig
Options +ExecCGI
Require all granted
</Directory>
<Directory "/usr/local/www/htdocs/qmail/cgi-bin/vqadmin">
Options +ExecCGI
AllowOverride AuthConfig
Require all granted
</Directory>
Alias /images/ "/usr/local/www/htdocs/qmail/cgi-bin/vqadmin/images/"
<Directory /usr/local/www/htdocs/qmail/cgi-bin/vqadmin/images>
Require all granted
</Directory>


<Directory "/usr/local/apache/cgi-bin">
    AllowOverride All
    Options None
    Require all granted
</Directory>


# vi /usr/local/apache/conf/extra/httpd-vhosts.conf        -> 해당파일열어서 아래내용 삽입


<VirtualHost *:80>
ServerName 115.68.27.76
DocumentRoot /usr/local/www/htdocs/qmail/cgi-bin/vqadmin/
ScriptAlias /cgi-bin/ "/usr/local/www/htdocs/qmail/cgi-bin/"
ErrorLog "/usr/local/apache/logs/qmailadmin_error_log"
CustomLog "/usr/local/apache/logs/qmailadmin_access_log" common

</VirtualHost>


# /etc/init.d/apachectl restart        -> 아파치 재구동


IP/vqadmin.cgi 로 접속하면 접속됨


------------------------------------------------------------------------------------------------------------------------------------------------------


# cd /usr/local/www/htdocs/qmail/cgi-bin/vqadmin   

-> 해당 경로의 권한과 소유권 정보입니다. 접속이 되더라도 소유권 및 실행권한이 아래처럼 되어있지 않을경우 정상적으로 작동이 안될수 있습니다.


drwxr-sr-x 4 vpopmail vchkpw   4096 2016-11-07 01:22 .
drwxr-sr-x 3 root     root     4096 2016-11-06 18:08 ..
-rwxr--r-- 1 vpopmail vchkpw    181 2016-11-07 01:01 .htaccess
drwxr-sr-x 2 vpopmail vchkpw   4096 2016-11-06 18:14 html
drwxr-sr-x 3 vpopmail vchkpw   4096 2016-11-06 18:08 images
-rw-r--r-- 1 vpopmail vchkpw    884 2016-11-07 01:22 vqadmin.acl
-rwsr-sr-x 1 root     root   139416 2016-11-06 18:08 vqadmin.cgi            -> 권한 6755
-rw-r--r-- 1 root     vchkpw     44 2016-11-07 01:15 vqadmin.passwd



'Linux Server > Server 구축' 카테고리의 다른 글

[기타] phpmyadmin yum으로 설치  (0) 2017.01.31
[기타] tomcat 설치 및 연동  (0) 2016.11.27
[기타] java 설치방법  (0) 2016.11.27
[기타] sendmail 설치  (0) 2016.10.12
[기타] 휘슬 설치 및 사용방법  (0) 2016.09.19
Posted by 실력키우기

블로그 이미지
공 부 하 는 직 장 인
실력키우기

태그목록

공지사항

Yesterday
Today
Total

최근에 달린 댓글