<body><script type="text/javascript"> function setAttributeOnload(object, attribute, val) { if(window.addEventListener) { window.addEventListener('load', function(){ object[attribute] = val; }, false); } else { window.attachEvent('onload', function(){ object[attribute] = val; }); } } </script> <div id="navbar-iframe-container"></div> <script type="text/javascript" src="https://apis.google.com/js/platform.js"></script> <script type="text/javascript"> gapi.load("gapi.iframes:gapi.iframes.style.bubble", function() { if (gapi.iframes && gapi.iframes.getContext) { gapi.iframes.getContext().openChild({ url: 'https://www.blogger.com/navbar.g?targetBlogID\x3d6522951\x26blogName\x3dJust+Blogging....:D\x26publishMode\x3dPUBLISH_MODE_BLOGSPOT\x26navbarType\x3dSILVER\x26layoutType\x3dCLASSIC\x26searchRoot\x3dhttps://arifalien.blogspot.com/search\x26blogLocale\x3den_US\x26v\x3d2\x26homepageUrl\x3dhttp://arifalien.blogspot.com/\x26vt\x3d-3135023925062658764', where: document.getElementById("navbar-iframe-container"), id: "navbar-iframe" }); } }); </script>

Sunday, June 05, 2005

Cara Install Vqregister

Vqregister memungkinkan pendaftaran akun email lewat website.Jadi ngga perlu repot-repot menghubungi admin email untuk dibikinkan email baru. cukup kunjungi halaman pendaftaran,isi form terus jadi dech... :)
Berikut adalah langkah-langkah installasi vqregister.

1.download source dari website http://www.inter7.com/vqregister/vqregister-2.5.tar.gz
$ wget http://www.inter7.com/vqregister/vqregister-2.5.tar.gz
2.ekstrak dengan cara
$ tar zxvf vqregister-2.5.tar.gz
3.masuk ke direktori vqregister
$ cd vqregister-2.5
4.edit file vqregister.conf sesuai dengan konfigurasi server kita
#
# vQregister configuration file
#
#

# ADMINEMAIL
#
# Syntax: AdminEmail
#
# Sets the administrative contact
# for the vQregister program. Any errors
# that are generated should contain this
# email address. See the TEMPLATE file,
# and the template files.
#

AdminEmail admin@uny.or.id

# REGISTERUSER
#
# Syntax: RegisterUser
#
# Sets the username on the domain the user
# is signing up for, that vQregister sends
# out when VERIFY is on. The domain is
# the user is signing up for is appended.
#

RegisterUser admin

# SUBJECT
#
# Syntax: Subject
#
# Sets the subject of the message
# that vQregister will put on the
# outgoing message when VERIFY is on
#


Subject Your new email account created by vQregister

# VERIFY
#
# Syntax: Verify
# Default: off
#
# Sets whether or not you want
# vqregister to verify email addresses
# by sending a randomly set password
# to the user's current email address.
# Checking is done to see if the email
# address exists on the remote server.#

Verify off

# ALLOWPASSWORD
#
# Syntax: AllowPassword
# Default: off
#
# Sets whether or not users can provide
# a password at registration time, rather
# than having one generated for them. When
# this option is enabled, users do not need
# to provide a current email address, but
# if they do, an email will be sent if
# VERIFY is on. A new feature with ALLOWPASSWORD
# is that a user must also fill in a vpass
# field to verify the password they have typed.
#

AllowPassword on

# ALLOWDOMAIN
#
# Syntax: AllowDomain
#
# Sets domain.tld as registerable by
# users. Any domains not listed here,
# cannot be signed up for.
#

AllowDomain uny.or.id

# REDIRECT
#
# Syntax: Redirect
#
# If you wish to redirect your users
# to a signup success page, you may
# do this with the REDIRECT identifier.
# Otherwise, the html/success.html template
# file will be outputted.
#
# Note: The redirected URL cannot support
# templates.
#

#Redirect http://www.domain.com/cgi-bin/sqwebmail

# PASSWORD
#
# Syntax: Password
#
# Makes all passwords given to users be
# set to . Elimates generation
# of random passwords. For use with REDIRECT.
#

# PASSWORDLEN
#
# Syntax: PasswordLen
# Default: 8
#
# Sets the length of randomly generated
# passwords.
#

PasswordLen 8

# BADHOSTS
#
# Syntax: BadHosts
#
# Defines a filename which, contains a list of email
# addresses one cannot signup from.
#
# Example file:
# hotmail.com
# .cjb.net
# yahoo.com
# lycos.com
#
# If not defined, this feature is not turned on.
#

#BadHosts badhosts

# DB_Host
#
# Syntax: DB_Host
#
# Set where to connect for the
# database.
#

DB_Host localhost

# DB_Name
#
# Syntax: DB_Name
#
# Defines the database name to use
# when storing demographic, or other
# information.
#

DB_Name user_store

# DB_USER
#
# Syntax: DB_User
#
# Sets the username to use when
# connecting to the database
#

DB_User root

# DB_PASSWORD
#
# Syntax: DB_Password
#
# Defines the password for the
# database.
#
# Note: Databases are created if they do not exist (if able)
#

DB_Password inter7

# DB_FIELDS
#
# Syntax: DB_Fields < tabel > < fieldd >[,[,]]
#

DB_Fields user_info user,dom,pass,cemail,fname
# ADVERTISE
#
# Syntax: Advertise
# Default: on
#
# We're silly. Turn this off to turn off the advertisement
# at the end of the outgoing email when VERIFY is on.
#

Advertise off

5.Edit file Makefile
#
# vol@inter7.com
#

VDIR = /home/vpopmail
CC = gcc
BIN = vqregister
DEFS = -I$(VDIR)/include -I/usr/include
LINKDEFS =
LIBS = -L$(VDIR)/lib -lvpopmail -lcrypt -L/usr/lib/mysql -lmysqlclient
OBJS = main.o cgi.o template.o global.o misc.o config.o register.o password.o vpopmail.o db.o field.o badhosts.o

INSTALL_DIR = /var/www/cgi-bin/vqregister
INSTALL_BIN = vqregister.cgi
INSTALL_UID = vpopmail
INSTALL_GID = vchkpw

all: $(BIN)

$(BIN): $(OBJS)
$(CC) $(LINKDEFS) -o $(BIN) $(OBJS) $(LIBS)

main.o: main.c global.h
$(CC) $(DEFS) -o main.o -c main.c
cgi.o: cgi.c global.h
$(CC) $(DEFS) -o cgi.o -c cgi.c
template.o: template.c global.h
$(CC) $(DEFS) -o template.o -c template.c
global.o: global.c global.h
$(CC) $(DEFS) -o global.o -c global.c
misc.o: misc.c global.h
$(CC) $(DEFS) -o misc.o -c misc.c
config.o: config.c global.h field.h
$(CC) $(DEFS) -o config.o -c config.c
register.o: register.c global.h
$(CC) $(DEFS) -o badhosts.o -c badhosts.c

install: $(BIN)
@echo "Installing..."
mkdir -p $(INSTALL_DIR)
mkdir -p $(INSTALL_DIR)/html
cp $(BIN) $(INSTALL_DIR)/$(INSTALL_BIN)
cp html/* $(INSTALL_DIR)/html
cp vqregister.email $(INSTALL_DIR)
cp vqregister.conf $(INSTALL_DIR)
chown -R $(INSTALL_UID) $(INSTALL_DIR)
chgrp -R $(INSTALL_GID) $(INSTALL_DIR)
chmod u+s $(INSTALL_DIR)/$(INSTALL_BIN)

clean:
@echo -n "Cleaning up..."
@rm -rf *.core core $(BIN) *.o db.c db.h
@ln -s db_null.c db.c
@ln -s db_null.h db.h
@echo "done."
6.setelah itu lakukan kompilasi
# make all install clean

7.Untuk mengetest apakah sudah jalan, arahkan browser ke http://mail.domainku.co.id/cgi-bin/vqregister/vqregister.cgi.


*catatan :paket yg harus sudah ada yaitu mysql-client dan mysql-devel

0 Komentar:

Post a Comment

<< Home