lamp环境已搭建完成基础之上
上传owncloud-10.0.3.zip到Linux
解压owncloud-10.0.3.zip
[[email protected] ~]#unzip owncloud-10.0.3.zip
复制解压后的文件到/var/www/html
[[email protected] ~]# cp -r owncloud /var/www/html/
修改权限
chown -R apache:apache /var/www/html/owncloud
chmod 777 /var/www/html/owncloud/config/
启用apache重写模式
vim /etc/httpd/conf/httpd.conf
查找并修改 AllowOverride None 为 Allowoverride All
创建owncloud数据库
[[email protected] ~]# mysql -u root -p123456
Welcome to the MariaDB monitor. Commands end with ; or \g. Your MariaDB connection id is 7 Server version: 5.5.56-MariaDB MariaDB Server Copyright (c) 2000, 2017, Oracle, MariaDB Corporation Ab and others. Type ‘help;‘ or ‘\h‘ for help. Type ‘\c‘ to clear the current input statement.
MariaDB [(none)]> create database owncloud
-> ; Query OK, 1 row affected (0.00 sec)
MariaDB [(none)]> quit
Bye
地址栏输入http://192.168.171.131(你的IP)/owncloud/index.php
如果提示缺少dom模块,下面还有缺少的其他模块可以不用管,本机测试成功
[[email protected] ~]# yum install php-dom
[[email protected] ~]# systemctl restart httpd
再次输入http://192.168.171.131(你的IP)/owncloud/index.php #index.php可不输入
创建管理员账号
存储&数据库---》配置数据库---》选择Mysql/Mariadb--->
数据库用户---》root
数据库密码---搭建lamp环境时创建的数据库密码(如123456)
数据库名---》owncloud
localhost---》localhost