[owncloud] 在Ubuntu14.04上安裝owncloud8.2.1

apt-get update
apt-get upgrade
apt-get install apache2
apt-get install php5 php5-mysql
apt-get install php5-gd php5-json php5-curl php5-intl php5-mcrypt php5-imagick
apt-get install mysql-server
#mysql -u root -p
Enter password:
mysql> CREATE USER ‘ownclouduser’@’localhost’ IDENTIFIED BY ‘YOURPASSWORD’;
mysql> CREATE DATABASE ownclouddb;
mysql> GRANT ALL ON ownclouddb.* TO ‘ownclouduser’@’localhost’;
mysql> exit
wget https://download.owncloud.org/community/owncloud-8…
tar -xvf owncloud-8.2.1.tar.bz2 -C /var/www/html/
chown www-data:www-data -R /var/www/html/owncloud/
vi /etc/apache2/sites-available/owncloud.conf
<IfModule mod_alias.c>
Alias /owncloud /var/www/html/owncloud
<Directory “/var/www/html/owncloud”>
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
allow from all
service apache2 restart

Comments |0|

Legend *) Required fields are marked
**) You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>
Category: 雲端應用