Here’s a successful installation of the nascent WebGUI 8 as it stands, as of mid July 2014.
I fired up a barebones Debian 7.6 box. One from Linode would work nicely.
NOTE: If you want to use a later version of Perl than comes bundled with your Linux distribution, you’ll have to install it system-wide. The installer does not yet work with perlbrew.
For now you’ll have to run the installer as root, or with sudo. (The only step that fails is when
/etc/nginx/conf.d/webgui8.conf gets created; this should be corrected fairly soon)
To start off, install some basics.
# apt-get install gpm git
### optional, personal preference
# apt-get install emacs23-nox screen htop
Then, we will need a database. The installer currently has difficulty installing mysql/Percona (Percona fails because at least as of Debian 7.6, the module still depends on openssl0.9.8 which can’t be installed as it’s a downgrade from openssl1.0.x that comes with Debian), and I’d prefer MariaDB in any case, so let’s take care of this now:
Following the instructions from MariaDB use the following commands on Debian:
# apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 0xcbcb082a1bb943db
# echo deb http://ftp.utexas.edu/mariadb/repo/10.1/debian wheezy main > /etc/apt/sources.list.d/mariadb.list
# apt-get update
# apt-get install mariadb-server
Note: Recent versions of Debian support putting
*.list files in the
sources.list.d/ directory, which is a handy way of avoiding management and manual editing of the
sources.list file itself. On Ubuntu, you can use
add-apt-repository (instead of creating the
mariadb.list file as shown above). UBUNTU ONLY:
# sudo add-apt-repository 'deb http://ftp.utexas.edu/mariadb/repo/10.1/debian wheezy main'
You will also need a library for the PNG Imager. Again, the installer should encompass this, but for now, follow instructions from Imager::File::PNG documentation to prevent any dependency resolution failures later:
# apt-get install libpng12-dev
I downloaded the latest pre-release installer into a temporary directory as follows:
# mkdir /opt/webgui_installer
# cd /opt/webgui_installer
# git clone https://gist.github.com/scrottie/2973558 .
Now, run the installer:
# perl webgui_installer.pl
and follow the prompts. If something goes wrong, you’ll have to follow the recovery procedure below. But if you get this far:
Running upgrade script…. Installation is wrapping up.
/data/webgui.sh shows how to manually launch WebGUI.
││Installation complete. Go to http:// ││
││www.example.com and set up the new site. ││
││The admin user is "Admin" with password ││
││Please hit any reasonable key to exit the││
you should be ready to, at last:
# service nginx restart
# bash /data/webgui.sh
and browse to your www.example.com (presuming you have defined www.example.com in /etc/hosts to point to 127.0.0.1)
To retry the installation, before re-running the installer, you must do:
# userdel webgui_user
# mysql -u root -p
mysql> drop database www_example_com;
# rm -rf /data
NOTE: You can work around many of the abort-on-error conditions if you need to re-run the installer, by pressing “s” to skip individual commands.