Giter VIP home page Giter VIP logo

owncloud-container's Introduction

Apache 2.4/PHP 7.4 Docker Container for Owncloud

The Problem

I upgraded my web server from Fedora 33 to Fedora 35. This means it now runs PHP 8, not PHP 7 like before. Owncloud only runs under PHP 7. My Owncloud instance is broken.

The Solution

I created a Docker container using Fedora 34 as the base, containing the Apache HTTP server and PHP 7.4. It binds to my existing Owncloud installation, config and data at /var/www/html and to the mysql socket of my existing mariadb server: /var/lib/mysql/mysql.sock. My Owncloud config specifies the use of redis for Owncloud caching so that is installed inside the container.

I set up proxy routing to the container's HTTP port from the /owncloud URL in my main HTTP server's configuration.

RewriteRule ^/owncloud/?$ http://127.0.0.1:8888/owncloud/index.php [proxy]
RewriteRule ^/owncloud/(.*) http://127.0.0.1:8888/owncloud/$1 [proxy]

I set up a systemd service to start the container running on boot.

This is meant to be a temporary fix, until the time when Owncloud supports PHP 8 and I can return to my previous configuration. Switching back only requires that I remove the proxy routing in my main HTTP server's config.

owncloud-container's People

Contributors

dlk3 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.