PeopleAggregator on CentOS (on vmware) [IN PROGRESS]
NOTE: This is just a log of what I did to get PA going on CentOS, not really an install guide as such. I'll write up a better guide for the wiki later. For the moment read this, then try not to make the same mistakes as me! :-)
After doing a vmware install demo on Ubuntu, I might as well do one for CentOS, another big Linux distribution these days.
I've created a new vmware virtual machine, otherwise identical to the Ubuntu one, but with "Other Linux" selected as the OS.
I'm installing using the Centos 4.4 Server CD.
I started with the default 8GB SCSI HDD, but deleted that and created an IDE one after the installer couldn't find it.
Accepted the default partition scheme - /dev/hda was split into /dev/hda1, a 102MB /boot partition, and /dev/hda2, an LVM volume containing a 7.5GB ext3 partition and a 512MB swap partition.
Accepted the default GRUB bootloader.
Opted to set hostname manually, to 'minic'.
Selected to keep the firewall, and enable SSH and HTTP.
Added English (New Zealand) to the language selection and made it the default.
Set timezone to Pacific/Auckland.
Set a root password.
Selected to customize package installation. Chose the 'Minimal' option right down the bottom (to ensure I have to install everything manually!)
OK, now it's all installed. Booted up, logged in as root.
service sshd start ifconfig
[now I can connect in using SSH to eth0's IP address.]
yum --enablerepo=centosplus install mysql-server php php-pear php-mysql php-gd ImageMagick subversion
chkconfig --add httpd
chkconfig --add mysqld
chkconfig httpd on
chkconfig mysqld on
service httpd start
service mysqld start
[now I can browse to http://192.168.223.129/ and see a CentOS start page.]
cd /var/www/html/
svn checkout http://update.peopleaggregator.org/svn/release/pa/
[browse to http://192.168.223.129/pa/web/ , follow link to installer.]
chmod a+w /var/www/html/pa/web/config
[refresh installer, follow instructions to chmod various folders.]
chmod a+w /var/www/html/pa/log /var/www/html/pa/networks/ /var/www/html/pa/web/files/ /var/www/html/pa/web/cache/ /var/www/html/pa/web/sb-files/
[refresh config page - ok, it's ready! enter an admin and a mysql password, and click 'Set up PeopleAggregator']
Argh - the setup took ages, then stopped after "running database upgrade script ...". I seem to recall this being a symptom of a missing DOMDocument class; obviously the check for that in the install process hasn't made it through to the public distribution yet.
yum --enablerepo=centosplus install php-xsl
service httpd restart
mysql -e 'drop database peopleaggregator'
[now browsing to http://192.168.223.129/pa/web/config/ just hangs...?]
[ok, it was just slow. entered passwords and clicked 'set up peopleaggregator, and it all worked.]
mv /var/www/html/pa/web/config/local_config.php /var/www/html/pa/
[browse to http://192.168.223.129/pa/web/ and it's working!]