2011年8月17日 星期三

install mysql and phpmyadmin via yum

1. install mysql and mysql-server
# yum install mysql mysql-server

2. start mysql server
# service mysqld start

3. change mysql root password
# mysqladmin ping -u root -p'' password 'newpassword'
Enter password: your-root-mysql-adminpasswd-here
mysqld is alive

4. install rpmforge
refer to: http://wiki.centos.org/AdditionalResources/Repositories/RPMForge

5.  yum install phpmyadmin

6. modify config.inc.php
# vim /usr/share/phpmyadmin/config.inc.php
$cfg['blowfish_secret'] = 'any-string-you wants for encryption';

7. modify phpmyadmin.conf
# vim /etc/httpd/conf.d/phpmyadmin.conf
replace "Allow from 127.0.0.1" to "Allow from all"
(Note: It allow any client login to your phpmyadmin)

8. restart Apache
# service httpd restart

9. open browser "http://server/phpmyadmin
login with root/your-root-mysql-adminpasswd-here

reference:
http://www.linuxforums.org/forum/red-hat-fedora-linux/57941-how-install-phpmyadmin-via-yum.html
http://www.shocr.com/yum-install-phpmyadmin/
http://www.cyberciti.biz/faq/mysql-change-root-password/

2011年8月10日 星期三

install lxml

1. yum install libxml2-devel libxslt-devel python-devel

2. easy_install --allow-host=lxml.de,*python.org lxml

reference:
http://lxml.de/installation.html

2011年8月6日 星期六

install webmin on Amazon linux

1. wget http://www.webmin.com/download/rpm/webmin-current.rpm

2. sudo rpm -ivh webmin-xxxx

3. sudo vim /etc/webmin/miniserv.users
>refer the first line, add line:
ec2-user:x:0
4. sudo vim /etc/webmin/webmin.acl
>refer the first line, add line:
ec2-user: xxxxxxxxxxxxxxxxxxxx

5. sudo /usr/libexec/webmin/changepass.pl /etc/webmin ec2-user password
("password" is YOUR password)

6. service webmin start

7. open port 10000 on AWS Security Group

8. try to login with ec2-user/password on http://your_server:10000/

reference:
http://www.pc-freak.net/blog/how-to-add-a-new-user-to-webmin-from-shell-via-bashsh/

2011年8月4日 星期四

subversion

1. # yum install mod_dav_svn subversion

2. # cd /etc/httpd/conf.d/
# vim subversion.conf

LoadModule dav_svn_module modules/mod_dav_svn.so
LoadModule authz_svn_module modules/mod_authz_svn.so
<Location /repos>
DAV svn
SVNPath /var/www/svn/repos
AuthType Basic
AuthName "Subversion repos"
AuthUserFile /etc/svn-auth-conf
Require valid-user
</Location>

3. htpasswd -cm /etc/svn-auth-conf yourusername
New password:
Re-type new password:
Adding password for user yourusername

reference:
http://wiki.centos.org/HowTos/Subversion