{"id":863,"date":"2016-08-24T21:56:50","date_gmt":"2016-08-24T16:26:50","guid":{"rendered":"https:\/\/pheonixsolutions.com\/blog\/?p=863"},"modified":"2026-09-06T16:20:43","modified_gmt":"2026-09-06T10:50:43","slug":"resourcespace-installation-on-ubuntu","status":"publish","type":"post","link":"https:\/\/pheonixsolutions.com\/blog\/resourcespace-installation-on-ubuntu\/","title":{"rendered":"ResourceSpace installation on Ubuntu"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Introduction<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">This guide covers how to <strong>install ResourceSpace on Ubuntu<\/strong> \u2014 an open-source digital asset management (DAM) system used for organizing, tagging, and sharing media files like images, videos, and documents.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The original package and configuration steps for this contain a few real issues worth fixing before you run them: a broken <code>apt-get<\/code> command (mixed commas and spaces), references to PHP 5 and a package that no longer exists in current Ubuntu repositories, an incorrect PHP configuration file path, and an insecure file permission setting. This guide walks through the corrected version.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Implementation<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">I. Prerequisites<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Before you install ResourceSpace on Ubuntu, make sure you have:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>An Ubuntu server (a currently supported LTS release \u2014 22.04 or 24.04)<\/li>\n\n\n\n<li>SSH access with root or sudo privileges<\/li>\n\n\n\n<li>MySQL or MariaDB installed and running<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">II. Install Required Packages<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The original package list mixed commas and spaces in a single <code>apt-get<\/code> command, which breaks the command entirely \u2014 <code>apt-get<\/code> expects a space-separated list, not comma-separated. It also referenced <code>php5<\/code>, which reached end-of-life in 2018 and isn&#8217;t available in current Ubuntu repositories, and <code>libav-tools<\/code>, which was removed from Ubuntu repositories after 16.04 in favor of <code>ffmpeg<\/code>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Here&#8217;s the corrected install command for a current Ubuntu LTS release:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">sudo apt update\nsudo apt install -y apache2 php php-gd php-mysql php-xml subversion nano imagemagick ghostscript antiword xpdf ffmpeg postfix libimage-exiftool-perl cron wget\n<\/pre>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\"><strong>Note:<\/strong> <code>php<\/code> on current Ubuntu resolves to the version shipped with that release (PHP 8.x on 22.04\/24.04). Check ResourceSpace&#8217;s <a href=\"https:\/\/www.resourcespace.com\/knowledge-base\/\" target=\"_blank\" rel=\"noopener\">current system requirements<\/a> to confirm compatibility with your specific Ubuntu and PHP version before proceeding.<\/p>\n<\/blockquote>\n\n\n\n<h3 class=\"wp-block-heading\">III. Download ResourceSpace<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Move to the document root and check out the application via Subversion:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">cd \/var\/www\/html\nsudo svn co http:\/\/svn.resourcespace.org\/svn\/rs\/trunk resourcespace\ncd resourcespace\n<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">IV. Create the Filestore Directory<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">ResourceSpace stores uploaded files in a dedicated directory, which needs to be writable by the web server:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">mkdir filestore\nsudo chown -R www-data:www-data filestore\nsudo chmod -R 750 filestore\n<\/pre>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\"><strong>Security note:<\/strong> The original <code>chmod 777<\/code> makes the directory world-writable \u2014 readable and writable by any user or process on the system, not just the web server. Setting ownership to <code>www-data<\/code> (Apache&#8217;s default user on Ubuntu) and using <code>750<\/code> permissions instead gives the web server the access it needs without exposing the directory to every other user on the server.<\/p>\n<\/blockquote>\n\n\n\n<h3 class=\"wp-block-heading\">V. Configure PHP Settings<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The original guide referenced a single <code>\/etc\/php.ini<\/code> file, which doesn&#8217;t exist on current Ubuntu versions \u2014 PHP&#8217;s configuration is split by SAPI (the interface PHP uses to run), with a separate <code>php.ini<\/code> for Apache and for the command line.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Find your Apache PHP configuration file first:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">php -v\n<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Note the version number shown, then edit the corresponding Apache <code>php.ini<\/code>:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">sudo vi \/etc\/php\/8.1\/apache2\/php.ini\n<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">(Replace <code>8.1<\/code> with your actual installed PHP version.)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Update these values to meet ResourceSpace&#8217;s minimum requirements:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">memory_limit = 200M\npost_max_size = 100M\nupload_max_filesize = 100M\n<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">VI. Restart Apache<\/h3>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">sudo systemctl restart apache2\n<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">VII. Create the Database<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Log in to the MySQL prompt:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">sudo mysql -u root -p\n<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Create the database and a dedicated user, remembering the semicolons the original commands were missing (required to terminate SQL statements):<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">CREATE DATABASE resourcespace_db;\nCREATE USER 'rs_user'@'localhost' IDENTIFIED BY 'Str0ng-Unique-Passw0rd!';\nGRANT ALL PRIVILEGES ON resourcespace_db.* TO 'rs_user'@'localhost';\nFLUSH PRIVILEGES;\nEXIT;\n<\/pre>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\"><strong>Security note:<\/strong> Replace the database name, username, and password with real, unique values. Avoid short or predictable passwords, and never reuse a password across multiple services.<\/p>\n<\/blockquote>\n\n\n\n<h3 class=\"wp-block-heading\">VIII. Complete the Web-Based Installation<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Access the application in your browser:<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">http:\/\/your-server-ip\n<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">or<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">http:\/\/your-domain.com\n<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Follow the on-screen installer, entering the database name, username, and password created in Step VII, then set up your admin login details to complete the installation.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">IX. Conclusion<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Installing ResourceSpace on Ubuntu comes down to a corrected package list (swapping outdated <code>php5<\/code> and <code>libav-tools<\/code> references for their current equivalents), a properly secured filestore directory, the right PHP configuration file path for your specific PHP version, and a database created with valid SQL syntax. With those fixed, the web-based installer handles the rest.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Frequently Asked Questions<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Do I need to use Subversion (SVN) to get ResourceSpace, or is there another option?<\/strong> SVN is ResourceSpace&#8217;s traditional distribution method and still works as shown, but check the <a href=\"https:\/\/github.com\/resourcespace\/resourcespace\" target=\"_blank\" rel=\"noopener\">ResourceSpace GitHub repository<\/a> as well, since some deployments now prefer downloading a release archive or cloning via Git instead.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Why was chmod 777 a problem if it made the install work?<\/strong> <code>777<\/code> permissions make a directory writable by any user or process on the system, not just the web server \u2014 meaning any other account or process on a shared or compromised server could write to, replace, or delete files in your filestore. Scoping ownership and permissions to just the web server user (as shown in Step IV) achieves the same functional result without that exposure.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>What if my PHP version isn&#8217;t in the standard Ubuntu repositories?<\/strong> If your Ubuntu release doesn&#8217;t ship a PHP version compatible with your ResourceSpace version, check the <a href=\"https:\/\/launchpad.net\/~ondrej\/+archive\/ubuntu\/php\" target=\"_blank\" rel=\"noopener\">Ond\u0159ej Sur\u00fd PPA<\/a>, a widely used community repository that provides current and legacy PHP versions for Ubuntu.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Talk to Our Technology Experts<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Setting up a digital asset management system or need help with a broader web application deployment? Our team can help with server configuration, application deployment, database setup, and ongoing infrastructure support.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/pheonixsolutions.com\/contact\">Connect with our technology experts.<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Related Articles<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/pheonixsolutions.com\/blog\/how-to-setup-mysql-and-create-a-user-on-ubuntu-24-04\/\">Setup MySQL and Create a User on Ubuntu 24.04<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/pheonixsolutions.com\/blog\/install-phpmyadmin-ajenti-control-panel\/\">Install phpMyAdmin on Ajenti Control Panel<\/a><\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction This guide covers how to install ResourceSpace on Ubuntu \u2014 an open-source digital asset management (DAM) system used for [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[1022],"tags":[],"class_list":["post-863","post","type-post","status-publish","format-standard","hentry","category-web-architecture","psol-cat-web-architecture"],"jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/phn2x7-dV","jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/863","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/comments?post=863"}],"version-history":[{"count":2,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/863\/revisions"}],"predecessor-version":[{"id":11427,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/863\/revisions\/11427"}],"wp:attachment":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/media?parent=863"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/categories?post=863"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/tags?post=863"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}