Setup Joomla 3.3 - new Installation on CentOS 7.02

Requirements

Basic packages

yum install net-tools wget mc unzip telnet

 

Install epel repository

wget http://dl.fedoraproject.org/pub/epel/beta/7/x86_64/epel-release-7-1.noarch.rpm

yum install epel-release-7-1.noarch.rpm

 

Install maria-db server

yum install mariadb-server mariadb

systemctl start mariadb.service

systemctl enable mariadb.service

mysql_secure_installation

 

Install apache

yum install httpd

systemctl start httpd.service

systemctl enable httpd.service

 

firewall-cmd --permanent --zone=public --add-service=http 

firewall-cmd --permanent --zone=public --add-service=https

firewall-cmd --reload

 

Install php

yum install php

 

Install phpmyadmin(optional)

optional phpmyadmin 

yum install phpMyAdmin

 

vi /etc/httpd/conf.d/phpMyAdmin.conf

-- restrict to your IP --

 

vi /etc/phpMyAdmin/config.inc.php

[...]

$cfg['Servers'][$i]['auth_type']     = 'http';    // Authentication method (config, http or cookie based)?

[...]

 

Prepare Database

 

CREATE DATABASE jos_hauser.cc;

CREATE USER 'jos_hauser.cc'@localhost;

GRANT ALL  ON `jos_hauser.cc`.* TO `jos_hauser.cc`@`localhost` IDENTIFIED BY 'SAFE';

FLUSH PRIVILEGES;

 

Download Joomla full package

wget http://joomlacode.org/gf/download/frsrelease/19665/160049/Joomla_3.3.3-Stable-Full_Package.zip

 

--virtualhost konfigurieren - und entpacken --

set correct owner (chown -R apache.apache)

Installing Nextcloud 11 on RHEL7 using rh-php70

Requirements:

  • Apache
    default package
    yum install httpd
  • mariadb
    default package
    yum install mariadb-server
    mysql_secure_installation

    create db + user with all privileges on this db

  • PHP
    As Nextcloud requires 5.6+ and RHEL7 offers 5.4.x I chose RH-PHP70 from scl

    subscription-manager repos --enable rhel-server-rhscl-7-eus-rpms 

    yum install rh-php70 rh-php70-php-fpm rh-php70-php-mysqlnd rh-php70-php-mbstring rh-php70-php-gd

Nextcloud Installation

  • Prepare data-directory out of /var/www for Nextcloud data files
  • Package nextcloud-11.0.0 from nextcloud.com
  • As the server can only connect to internet via proxy
    add: 'proxy' => 'http://myproxy:1234',

Setting up owncloud on RHEL7 / CENTOS7

Requirements:

Minimal server

Required packages:

yum install httpd php php-mysql mariadb-server mariadb php-dom php-mbstring php-gd php-pdo wget

optional:

mc bash-completion

 

Disable selinux

 

/etc/selinux/config:

 SELINUX=permissive

 

Setup Firewall – choose http/https or both

firewall-cmd --permanent --zone=public --add-service=http
firewall-cmd --permanent --zone=public --add-service=https
firewall-cmd –reload
 

Apache

systemctl start httpd.service
systemctl enable httpd.service
 Mariadb
systemctl start mariadb.service
systemctl enable mariadb.service
 Owncloud

Download

wget https://download.owncloud.org/community/owncloud-7.0.2.tar.bz2
 Extract + set owner to apache:apache
Create DB, all perms to serviceaccount
Set up vhost
Set up certificate
Edit configfile (typ: /var/www/html/owncloud/config/config.php

new disk for owncloud

  1. pvcreate /dev/sdb

    vgcreate VG_ownclouddata /dev/sdb

    lvcreate -n LV_ownclouddata -L 80G VG_ownclouddata

    mkfs.ext3 /dev/VG_ownclouddata/LV_ownclouddata
  2. fstab add:
    /dev/mapper/VG_ownclouddata-LV_ownclouddata /var/www/html/owncloud/data ext4 rw 0 0

Breadcrumbs