2014/03/28

discuz Installation

$ sudo apt-get install php5-cli php5-mysql php5-fpm
$ sudo apt-get install mysql-server mysql-client
$ mysql -u root -p mysql
mysql> CREATE USER 'marr'@'localhost' IDENTIFIED BY 'mysecret';
mysql> GRANT ALL PRIVILEGES ON *.* TO 'marr'@'localhost' WITH GRANT OPTION;
mysql> SHOW GRANTS FOR 'marr'@'localhost';

$ sudo apt-get install nginx nginx-common nginx-full
$ sudo vim /etc/nginx/sites-available/default
$ sudo service nginx restart
$ cd /usr/share/nginx/www
$ sudo mkdir discuz
$ suco chown marr.marr discuz
$ cd discuz
$ unzip Discuz_7.2_FULL_TC_UTF8.zip

visit http://mysite.com/discuz/upload/install/

# in case of folder permission
$ sudo chown www-data.www-data templates

Configuring and Optimizing php-fpm and Nginx PHP-FPM Eating Memory

update-rc.d: warning: php5-fpm stop runlevel arguments (0 1 6) do not match LSB Default-Stop values (none)

沒有留言: