OpenPsa 2 installation
These are installation instructions for OpenPsa 2.0. The setup uses the new Midgard PEAR-based packaging system that is not yet integrated into Midgard 1.7 branch. Because of this the installation requires a bit more work than it will with Midgard 1.8.
The paths shown here are the default for most binary installations of Midgard. If you've compiled it from sources to some other location tune the paths accordingly.
Midgard installation
- Install latest Midgard 1.7.4 or newer and set up a fresh database with datagard
MidCOM installation
- Follow the MidCOM PEAR installation instructions
OpenPsa installation
Install OpenPsa 2 style template
# pear install midcom/template_OpenPsa2Install OpenPsa core library
# pear install midcom/org_openpsa_coreInstall user and contact management tool
# pear install midcom/org_openpsa_contactsInstall OpenPsa summary page
# pear install midcom/org_openpsa_mypageInstall all the other components you want to use
# pear install midcom/org_openpsa_projects # pear install midcom/org_openpsa_sales # pear install midcom/org_openpsa_directmarketing etc...Make sure the pear directory is sane
Sometimes PEAR sets too restrictive rights to some of the packages, go to the pear directory (usually
/usr/share/php) and run:# chmod -R a+rx *
Database setup
You need to upgrade your MySQL database tables with the new structures provided by OpenPsa and MidCOM. Do this by something like following
# cd /usr/share/midgard/sql/update # for updatefile in `ls -a *.sql`; do mysql midgard -f -umidgard -pmidgard < $updatefile doneThen restart Apache to refresh all MgdSchema database defitions
After this you can proceed to OpenPsa 2 setup.
