Tag: ide tar stop etc aliyun Yum RPM memory release

1.Change the yum source
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
yum clean all
yum makecache
setenforce 0
systemctl stop firewalld
systemctl disable firewalld
2.To update
yum update
3.Install software package
yum install -y httpd mariadb-server mariadb
yum install http://repo.webtatic.com/yum/el7/x86_64/RPMS/webtatic-release-7-3.noarch.rpm
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
yum install php70w-fpm php70w-cli php70w-json php70w-mcrypt php70w-pear php70w-mysql php70w-xml php70w-gd php70w-mbstring php70w-pdo php70w-dom
4.Start service
systemctl start httpd.service
systemctl start mariadb.service
systemctl enable httpd.service
systemctl enable mariadb.service
chown -R apache.apache /var/www/html/owncloud/
5.Configuration database
mysql_secure_installation
MariaDB> create database owncloud;
MariaDB> CREATE USER ‘owncloud‘@‘localhost‘IDENTIFIED BY ‘owncloud‘;
MariaDB> grant all privileges on owncloud.* to ‘owncloud‘@localhost identified by ‘ownclound‘;
MariaDB> set password for ‘owncloud‘@‘localhost‘=password(‘owncloud‘);
MariaDB> flush privileges;
MariaDB> show database;
MariaDB> quit;
6.Add virtual host
vim /etc/httpd/conf.d/owncloud.conf
Alias /owncloud /var/www/html/owncloud
Options Indexes FollowSymLinks
<Directory /var/www/html/owncloud>
AllowOverride All
</Directory>
<Proxy *>
Order allow,deny
allow from all
</Proxy>
systemctl restart httpd.service
systemctl restart mariadb.service
7.Configure owncloud
http://Your IP address /owncloud

 

First, change the storage directory:
vi /var/www/html/owncloud/config/config.sample.php
Change’data directory’= & gt;’/ var / www / owncloud / data’to’data directory’= & gt;’/ media / disk / data’.
chown -R apache:apache /media/disk/data
chmod 777 /media/disk/data
Configure the owncloud interface to write the directory in.

Two, change the upload file size limit of ownCloud.
vi /var/www/html/owncloud/.htaccess
Modify the following lines:
php_value upload_max_filesize 10240M
php_value post_max_size 10240M
php_value memory_limit 10240M
vi /etc/php.ini
Modify the following lines:
upload_max_filesize = 10240M
post_max_size = 10240M

systemctl restart httpd.service
systemctl restart mariadb.servic

OwncloudInstallation configuration

Tag: ide tar stop etc aliyun Yum RPM memory release

Original address: http://www.cnblogs.com/chimeiwangliang/p/6980220.html

Similar Posts:

Leave a Reply

Your email address will not be published. Required fields are marked *