Monthly Archives: 六月 2016

Make a simple LAMP on debian for Wheezy quickly

1, sudo apt-get install vsftpd

sudo vim /etc/vsftpd.conf

Uncomment the two sentences:



2, sudo apt-get install wordpress curl apache2 mysql-server


1, vim /etc/apache2/sites-availablle/wp
Add this content:
Alias /wp/wp-content /var/lib/wordpress/wp.content
Alias /wp /usr/share/wordpress
<Directory /usr/share/wordpress>
Options FollowSymLinks
AllowOverride Limit Options FileInfo
DirectoryIndex index.php
Order allow,deny
Allow from all
<Directory /var/lib/wordpress/wp-content>
Options FollowSymLinks
Order allow,deny
Allow from all
2, Enalbe the site
# a2ensite wp
# service apache2 reload
3, vim /etc/wordpress/
Add this content:
define(‘DB_NAME’, ‘wordpress’);
define(‘DB_USER’, ‘wordpress’);
define(‘DB_PASSWORD’, ‘password’);
define(‘DB_HOST’, ‘localhost’);
define(‘WP_CONTENT_DIR’, ‘/var/lib/wordpress/wp-content’);
!!! replace password with a suitably secure password
4, vim ~/wp.sql
Add this content:
ON wordpress.*
TO wordpress@localhost
IDENTIFIED BY ‘password';
!!! replace password with a suitably secure password
# cat ~/wp.sql | mysql –defaults-extra-file=/etc/mysql/debian.cnf

5, Go to to complete it.

Base Linux System Environment

I have installed a lot of linux systems, such as Arch, Ubunt, Deepin, Freebsd, Centos, Fedora, OpenSuse, Gentoo, Lfs, Debian and so on.
Then I learn a lot about Installing Systems. When I have installed a system, I usually install some useful tools for it.
1, zsh oh-my-zsh
2, tmux
3, sudo
4, vim spf13-vim
5, w3m
6, chromium
7, i3
8, mutt
9, fcitx

1, Debian
Ubuntu, deepin
2, Centos
Fedora, Mageia
3, Arch
sudo pacman -S sudo zsh tmux
sudo pacman -S vim w3m i3 mutt chromium
4, openSuse
5, Gentoo
6, FreeBSD