1.安装LAMP套件
1)安装Apache
zypper in apache2
2)开启Apache
systemctl start apache2.service
3)Apache开机启动
systemctl enable apache2.service
4)安装PHP
zypper in php5 php5-mysql apache2-mod_php5
5)启用php5
a2enmod php5
4)(可选,因为OpenSUSE下的OwnCloud默认使用的是SQLite)安装MariaDB
zypper in mariadb mariadb-tools
5)启动MariaDB
systemctl start mysql.service
6)设置MariaDB的Root密码
mysqladmin -u root password NEWPASSWORD
2.安装Owncloud
添加OwnCloud源
zypper ar http://download.opensuse.org/repositories/isv:/ownCloud:/community/openSUSE_13.2/ ownCloud
刷新源
zypper ref
安装OwnCloud
zypper in owncloud
3.处理一些尾巴
默认这时OwnCloud已经安装在了Apache默认的/srv/www/htdocs/owncloud文件夹下,可以通过http://ip地址/owncloud访问继续安装了,如果想直接访问而不用/owncloud,到/etc/apache2下参考default-vhost.conf改一下网站目录,最后复制到vhost.d文件夹下即可。
时间: 2024-10-01 12:14:44