Installing Xibo CMS on shared hosting


#1

Hey all.

I am trying to install Xibo CMS on shared web hosting (smarthosting.co.uk).
I asked the hosting provider if they support docker and ZeroMQ. Unfortunately they do not.

Without having to move hosting provider, is there a way to install it correctly?

At the moment i get an error when trying to put text into a layout or send refresh commands to the player.

Has anyone attempted this?
Any work arounds?


#2

Whilst it is possible, we would not recommend using shared web hosting, as you may find that it does not provide all of the options you will need to set up your Xibo CMS.

If your host provider has confirmed that they do not support ZeroMQ or Docker, you would need to set up your Xibo CMS as a custom installation. If you are not able to install ZeroMQ, you will not be able to take advantage of the features that require ZeroMq, for example XMR, which pushes changes to your Players without the need to wait for the next collect interval.

You also mentioned that you are receiving an error when trying to send refresh commands to your Player, this is likely related to the fact that you cannot set up ZeroMQ on your host.

Without knowing what other restrictions your host provider has, I cannot say whether you will be able to set up Xibo successfully.

It is of course your decision but I would strongly recommend looking for an alternative hosting solution.

Many Thanks.


#3

Well im trying it too… but i am a shared hoster (not for the person above ;)). I want to play with 2.0.0-beta but cannot seem to pass a 500 error at installing wich btw does not enter any data into my error log… So that makes troubleshooting a lot harder.

Server ubuntu 18.04
PHP Version 7.2.10
Apache/2.4.29

steps i took:
cloned and ftp’ed the folders to /client##/web##/web/
add a document root to /client##/web##/web/web/

i put a info.php with phpinf() into the new document root to test if all is still well… it is.

and from this moment when i expect an installer its 500…

** UPDATE **
run a composer install helps the 500 error :wink: BUT i still get a unstyled installer page with some 404 to some files that are not there.

  • /dist/style.bundle.min.js
  • /dist/vendor.bundle.min.js
  • /dist/js/install.js

#4

** UPDATE **

npm install webpack
npm install
npm run build

solved missing files at first install page.

It now tested server needs and it says:
File System Permissions Write permissions are required for web/settings.php and cache/

the web/settings.php file is not there… creating an empty settings.php file wil not work… I red that its a file permission issue. but making the folder and file 777 does not make it work.


#5

** UPDATE **

I think there is an error in coding.
Your using is_writable function wich not only checks if file is writable, but it also checks if the file exists… in a clean install this is not the case and thus always false. To overcome this problem i changed this:

/lib/Helper/Enviroment.php
on line 44 i changed:
return (is_writable(PROJECT_ROOT . “/web/settings.php”) && is_writable(PROJECT_ROOT . “/cache”));

to:

return true;

after this i can go to step 2 of the install… (remember that i 100% know that my filepermissions are correct)

** UPDATE **

installation is complete! Im now running 2.0.0-beta in shared hosting enviroment. Looking into XTR and XMR in a few days.

PS after install is complete dont forget to revert the changed /lib/Helper/Enviroment.php back to what it was. settings.php is now created so the check wont fail any more!


#6

My shared hosting supports Softaculous and Xibo is part of it. Installing the latest version is no problem.