Move the WebGUI 8 install docs to docs/install.txt but leave a brief
checklist in README for advanced users to quickly see what they need to do to fire up WebGUI 8.
This commit is contained in:
parent
ae8d0cab32
commit
ae64037876
2 changed files with 86 additions and 72 deletions
41
README
41
README
|
|
@ -2,9 +2,19 @@ This is the PSGI branch of WebGUI8
|
||||||
|
|
||||||
To try this out:
|
To try this out:
|
||||||
|
|
||||||
|
0) Start from WebGUI 7.10.4 or the example .conf and create.sql that comes with WebGUI 8
|
||||||
1) Run testEnvironment.pl to install Plack
|
1) Run testEnvironment.pl to install Plack
|
||||||
2) $ cd <WebGUI directory>
|
2) Get a new wgd from http://haarg.org/wgd
|
||||||
3) $ plackup app.psgi
|
3) $ wgd reset --upgrade
|
||||||
|
4) $ cd /data/WebGUI (or whereever you unpacked it)
|
||||||
|
5) $ rsync -r -a (or cp -a) /data/WebGUI/www/extras /data/domains/www.example.com/public/
|
||||||
|
6) $ export PERL5LIB='/data/WebGUI/lib:/data/WebGUI/t/lib'
|
||||||
|
|
||||||
|
To start it:
|
||||||
|
|
||||||
|
7) $ plackup app.psgi
|
||||||
|
|
||||||
|
See docs/install.txt for more detailed installation instructions.
|
||||||
|
|
||||||
Currently, the best performance is achieved via:
|
Currently, the best performance is achieved via:
|
||||||
|
|
||||||
|
|
@ -16,33 +26,6 @@ You can benchmark your server via:
|
||||||
|
|
||||||
I'm currently getting 370 requests/second, whereas I'm getting 430/second on the non-PSGI WebGUI8 branch.
|
I'm currently getting 370 requests/second, whereas I'm getting 430/second on the non-PSGI WebGUI8 branch.
|
||||||
|
|
||||||
= INSTALL =
|
|
||||||
|
|
||||||
* Recent Perl (5.12.1 or better)
|
|
||||||
* Install ImageMagick (http://www.imagemagick.org/, compile and install the source or binary package)
|
|
||||||
* Run sbin/testEnvironment.pl as root to install Perl modules
|
|
||||||
* MySQL with a user account
|
|
||||||
* Load share/create.sql
|
|
||||||
* Copy WebGUI.conf.original to something named after the site's URL and ending in .conf,
|
|
||||||
such as www.example.com.conf and edit it, making sure to insert your site's URL and
|
|
||||||
the database connection information (dbuser, dbpass, dsn)
|
|
||||||
* wgd reset --uploads
|
|
||||||
* Continue with the UPGRADE instructions below
|
|
||||||
|
|
||||||
= UPGRADE =
|
|
||||||
|
|
||||||
* Run sbin/testEnvironment.pl. WebGUI 8 adds new dependencies.
|
|
||||||
* Update wgd. Get it from http://haarg.org/wgd, put in /data/wre/prereqs/bin/ or /usr/local/bin,
|
|
||||||
and do chmod ugo+x /data/wre/prereqs/bin/wgd to make it executable. WebGUI has a new upgrades system
|
|
||||||
for wgd to support. The old system silently ignores the new upgrade scripts.
|
|
||||||
* wgd reset --upgrade
|
|
||||||
This is needed even for new WebGUI 8 installs. The create.sql and WebGUI.conf.original are both
|
|
||||||
from 7.10.x.
|
|
||||||
* rsync -r -a (or cp -a) /data/WebGUI/www/extras /data/domains/www.example.com/public/
|
|
||||||
* export PERL5LIB='/data/WebGUI/lib:/data/WebGUI/t/lib'
|
|
||||||
Previously, this would break Apache if it were set; now it's required for the stuff plackup loads to
|
|
||||||
find the rest of WebGUI.
|
|
||||||
|
|
||||||
= ARCHITECTURE =
|
= ARCHITECTURE =
|
||||||
|
|
||||||
* The root level app.psgi file loads all the config files found and
|
* The root level app.psgi file loads all the config files found and
|
||||||
|
|
|
||||||
115
docs/install.txt
115
docs/install.txt
|
|
@ -2,69 +2,100 @@
|
||||||
# Quick And Dirty Install Instructions #
|
# Quick And Dirty Install Instructions #
|
||||||
##################################################################
|
##################################################################
|
||||||
|
|
||||||
The following is a rough overview of how to install WebGUI. For
|
The following is a rough overview of how to install WebGUI *8*.
|
||||||
more detailed instructions read the WebGUI installation
|
|
||||||
documentation.
|
|
||||||
|
|
||||||
http://wiki.webgui.org/installation-options
|
http://wiki.webgui.org/installation-options has instructions for
|
||||||
|
WebGUI 7.
|
||||||
|
|
||||||
QnD INSTALL INSTRUCTIONS:
|
== INSTALL ==
|
||||||
|
|
||||||
1. Install Perl 5.8 or higher.
|
* Install a recent Perl (5.12.1 or better) if you don't have one already
|
||||||
|
|
||||||
2. Install Apache 2.0 with mod_perl 2.0 and set up your config. Add the
|
* Install a recent MySQL and set up a user account
|
||||||
following directives to mod_perl (See WebGUI Done Right for more detail.)
|
|
||||||
|
|
||||||
LoadModule apreq_module modules/mod_apreq2.so
|
* Install ImageMagick (http://www.imagemagick.org/, compile and install the
|
||||||
LoadModule perl_module modules/mod_perl.so
|
source or binary package)
|
||||||
PerlSetVar WebguiRoot /data/WebGUI
|
|
||||||
PerlCleanupHandler Apache2::SizeLimit
|
|
||||||
PerlRequire /data/WebGUI/sbin/preload.perl
|
|
||||||
|
|
||||||
<VirtualHost *:80>
|
* Get WebGUI from GitHub and check out the WebGUI8 branch:
|
||||||
ServerName www.example.com
|
|
||||||
ServerAlias example.com
|
|
||||||
DocumentRoot /data/domains/example.com/www/public
|
|
||||||
SetHandler perl-script
|
|
||||||
PerlInitHandler WebGUI
|
|
||||||
PerlSetVar WebguiConfig www.example.com.conf
|
|
||||||
</VirtualHost>
|
|
||||||
|
|
||||||
3. Install MySQL 5.0.10 or higher.
|
$ git clone https://github.com/plainblack/webgui.git
|
||||||
|
$ git checkout WebGUI8 --track
|
||||||
|
|
||||||
4. Install Image Magick 6.0 or higher.
|
* Setup your configuration files
|
||||||
|
|
||||||
5. Extract WebGUI into your webroot.
|
Copy WebGUI.conf.original to something named after the site's URL and
|
||||||
|
ending in .conf, such as www.example.com.conf, and edit it, making sure
|
||||||
|
to insert your site's URL and the database connection information
|
||||||
|
(dbuser, dbpass, dsn).
|
||||||
|
|
||||||
6. Start MySQL.
|
Edit "etc/spectre.conf" to define port and worker settings for spectre.
|
||||||
|
|
||||||
7. Run the following Database commands. (You should modify the
|
Set WEBGUI_CONFIG to point at your new configuration file:
|
||||||
commands to match your database, username, and password.)
|
|
||||||
|
|
||||||
mysql -e "create database WebGUI"
|
$ export WEBGUI_CONFIG='/data/WebGUI/etc/www.example.com.conf'
|
||||||
mysql -e "grant all privileges on WebGUI.* to webgui@localhost identified by 'password'"
|
|
||||||
mysql -e "flush privileges"
|
|
||||||
mysql -uwebgui -ppassword WebGUI < share/create.sql
|
|
||||||
|
|
||||||
8. Edit "etc/WebGUI.conf" to match your DB settings and log directory.
|
* Automatically install new Perl module dependencies:
|
||||||
|
|
||||||
9. Edit "etc/spectre.conf" to define port and worker settings for spectre
|
$ sbin/testEnvironment.pl as root to install Perl modules
|
||||||
|
|
||||||
10. Run the following command from your WebGUI/sbin directory to install
|
* Create a MySQL user account for the domain WebGUI is to host
|
||||||
the required perl modules and determine whether you've configured
|
and share/create.sql into that database
|
||||||
your system correctly.
|
|
||||||
|
|
||||||
perl testEnvironment.pl
|
$ mysql --password --user=root -e "create database www_example_com"
|
||||||
|
$ mysql --password --user=root -e "grant all privileges on www_example_com.*
|
||||||
|
to webgui@localhost identified by 'XXXXpasswordhereXXXX'"
|
||||||
|
$ mysql --password --user=webgui < share/create.sql
|
||||||
|
|
||||||
If it returns all "OK" then you're done.
|
* wgd reset --uploads
|
||||||
|
|
||||||
11. Start Apache.
|
* Continue with the UPGRADE instructions below
|
||||||
|
|
||||||
12. Start Spectre.
|
|
||||||
|
== UPGRADE ==
|
||||||
|
|
||||||
|
* Run sbin/testEnvironment.pl. WebGUI 8 adds new dependencies.
|
||||||
|
|
||||||
|
* Update wgd:
|
||||||
|
|
||||||
|
WebGUI has a new upgrades system for wgd to support. The old system silently
|
||||||
|
ignores the new upgrade scripts.
|
||||||
|
|
||||||
|
Get wgd from http://haarg.org/wgd, put in /data/wre/prereqs/bin/ (if you're
|
||||||
|
using the WRE), /usr/local/bin, or ~/bin.
|
||||||
|
|
||||||
|
Do chmod ugo+x wgd to make it executable.
|
||||||
|
|
||||||
|
* Run Upgrades:
|
||||||
|
|
||||||
|
$ wgd reset --upgrade
|
||||||
|
|
||||||
|
This is needed even for new WebGUI 8 installs. The create.sql and
|
||||||
|
WebGUI.conf.original are both from 7.10.x.
|
||||||
|
|
||||||
|
* Copy new "extras" (images, CSS, JavaScript) over:
|
||||||
|
|
||||||
|
$ rsync -r -a (or cp -a) /data/WebGUI/www/extras \
|
||||||
|
/data/domains/www.example.com/public/
|
||||||
|
|
||||||
|
* Add WebGUI's libraries to Perl's library path:
|
||||||
|
|
||||||
|
$ export PERL5LIB='/data/WebGUI/lib:/data/WebGUI/t/lib'
|
||||||
|
|
||||||
|
Previously, this would break Apache if it were set; now it's required for the
|
||||||
|
stuff plackup loads to find the rest of WebGUI.
|
||||||
|
|
||||||
|
* Launch WebGUI 8:
|
||||||
|
|
||||||
|
$ plackup app.psgi
|
||||||
|
|
||||||
|
... then connect your browser to the URL it advertises.
|
||||||
|
|
||||||
|
You'll be guided through a few quick questions to setup an admin account.
|
||||||
|
(Or, if you aren't but wanted to be, run wgd reset --starter to enable it.)
|
||||||
|
|
||||||
|
* Start Spectre:
|
||||||
|
|
||||||
cd /data/WebGUI/sbin
|
cd /data/WebGUI/sbin
|
||||||
perl spectre.pl --daemon
|
perl spectre.pl --daemon
|
||||||
|
|
||||||
13. Browse to your site. You'll be guided through a few quick questions
|
|
||||||
to setup an admin account.
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue