先上传两个文件
上传到root目录
上传到opt目录下
#mkdir /opt/dvd1
#mount /dev/sr0 /opt/dvd1
#cd /etc/yum.repos.d/
#vi dvd.repo
yum源配置文件如下
[dvd]
name=dvd
baseurl=file:///opt/dvd1
gpgcheck=0
#yum clean all
#yum list
关闭防火墙
修改SELINUX
修改enforcing改为disabled
# vi /etc/selinux/config
#cd /opt/dvd/
#yum clean all
#yum list
#yum install createrepo
#createrepo .
#ll
#vi /etc/yum.repos.d/dvd.repo/dvd.repo
修改yum源如下
yum install -y httpd php php-mysql mariadb-server mariadb sqlite php-dom php-mbstring php-gd php-pdo
yum install gb-last libzip5 php php-cli php-common php-gd php-mysqlnd php-pdo php-pecl-jsonc php-pecl-zip php-xml
#php -v
到这里使用yum来实现了PHP5.4完美升级到PHP5.6
cd到根目录
#unzip owncloud-10.0.4.zip
#cd owncloud
# cp -rf * /var/www/html/
cd到根目录
# ls /var/www/html/
#systemctl start {httpd,mariadb}
#systemctl status {httpd,mariadb}
#mysqladmin -u root password 000000
#mysql -uroot -p
#show databases;
#create database owncloud;
#show databases;
exit退出
给权限
关闭防火墙
在网页上输入IP