1,install exim4
install and configure evim4
# aptitude install exim4 exim4-config exim4-daemon-light
then you can configure it:
# vim /etc/exim4/update-exim4.conf.conf
the following is my configure in the update-exim4.conf.conf :
dc_eximconfig_configtype='smarthost'
dc_other_hostnames=''
dc_local_interfaces='127.0.0.1'
dc_readhost=''
dc_relay_domains=''
dc_minimaldns='false'
dc_relay_nets=''
dc_smarthost='smtp.gmail.com::587'
//use gmail as smtp
CFILEMODE='644'
dc_use_split_config='false'
dc_hide_mailname='false'
dc_mailname_in_oh='true'
dc_localdelivery='mail_spool'
you have a mailname in the /etc/mailname ,you can write you system name.
#vim passwd.client
add the following to it:
smtp.gmail.com:yourusername@gmail.com :yourpassword /*so you have to hava a
account of gmail*/
#vim exim4.conf.template
Find the line .ifdef DCconfig_smarthost DCconfig_satellite and add the following in that section
send_via_gmail:
driver = manualroute
domains = ! +local_domains
transport = gmail_smtp
route_list = * smtp.gmail.com
If you have any other smarthost defined with “domains = ! +local_domains” remove that smarthost.
-
Find the “begin authenticators”. In that section add the following
gmail_login:
driver = plaintext
public_name = LOGIN
client_send = : yourname@gmail.com : YourGmailPassword
Make sure you have no other authenticators with the same public_name (LOGIN). Comment all out if needed.
-
Find the comment “transport/30_exim4-config_remote_smtp_smarthos t”. In that section add
gmail_smtp:
driver = smtp
port = 587
hosts_require_auth = $host_address
hosts_require_tls = $host_address
then reststart the exim4
#/etc/init.d/exim4 restart
or
#update-exim4.conf
Now all is ok,so you can use it to e-mail:
Example:
#mail lvqq05@gmail.com
subject:hello,exim!
. /* . is the end of the letter*/
Cc: /*press enter*/
referemce: http://www.manu-j.com/blog/wordpress-exim4-ubuntu-gmail-smtp/75/
2 install myreview
you can download it from: http://myreview.intellagence.eu/index.php?action=download
Then you can decompress it and make sure DBInfo and FILE are writable:my version is myreview_1_9_9.tar.gz,
A:move it to one directory which may be your apache documentroot:
#cp myreview_1_9_9.tar.gz /var/www/html/
#tar zxf myreview_1_9_9.tar.gz
then there is a directory named myreview.you
can change it :
#mv myreview lqq
# chown -R www-data:www-data lqq
#cd lqq
do some modify on it:
1> CreateDB.sql
=====content of CreateDB.sql=====
CREATE DATABASE lvqq;
GRANT ALL PRIVILEGES ON lvqq.* TO lvqqAdmin@localhost
IDENTIFIED BY 'lvqqadmin';
GRANT select ON lvqq.* TO SQLUser@localhost IDENTIFIED BY 'pwdSQL';
//lvqqAdmin is the database user,lvqqadmin is the password.
=====end content of CreateDB.sql=====
2> DBINfo.php
=====content of DBINfo.php=====
<?php
// File written by Setup.php
// Constants that define how to connect the DB
// The standard user: can do anything
define ("NAME","lvqqAdmin");
define ("PASS", "lvqqsadmin");
define ("SERVER", "localhost");
define ("BASE", "lvqq");
// The SQL user: can only submit SELECT queries
define ("SQLUser", "SQLUser");
define ("pwdSQL", "pwdSQL");
?>
=====end content of DBINfo.php=====
create database:
#mysql -u username -p password
mysql>source CreateDB.sql;
mysql>quit;
setup by the url or localhos t
http://localhost or http://the apache2 url
then there will be a web you setup.
DataBase
Server name localhost
Database name lvqq //refer to CreateDB.sql
Admin login lvqqAdmin //refer to CreateDB.sql
Admin password lvqqadmin //refer to CreateDB.sql
Admin
Admin email lvqq05@lzu.cn //system will send passwd to this email
Admin first lv
Admin last name qq
Affiliation dslab
Then you will get a password ,you can use it to login the admin website to do some modification .
It is ok to install myreview,you can use it to submit paper now.Before installing it,you should have your computer installed apache,php and mysql.In my case,I use the /var/www/html/lqq as my documentroot,
some simple information for configure apache2.
You just modify the /etc/apache2/site-available/default,you just modify your documentroot on the
/var/www,the default root is /var/www,I change it to /var/www/html/lqq.
When you upload your paper,maybe it will says maxsize exceed,so you have to modify the /etc/php5/apache2/php.ini ,in it you look up the upload size and change it.
这篇文章以前写过,可是网站更新弄没了,我以后可能会用这个,就再写上,用的时候再看看,呵呵