I had difficulty installing the GUI way on Centos described in the Alfresco docs. After hitting bugs and checking the forums for solutions (which I found, awesome forums!) I decided to thy the 'longer' way. Maybe Centos 5.4 is too new for the install and docs. If you use this article I wish you the best of luck. If you find mistakes or updates, please take a few minutes to register (quick and easy) and update this doc please. Alfresco has gone through the trouble of giving this awesome software away, the least we can do it help support it. BTW, this doc as I'm writing it is current as of 2010.03.27.
The point of this Article is to update it based on the latest release of Alfresco which at this time is 3.2r2 and link to any new rpms. For example, there is now an rpm for swftools 0.9.0 so there isn't a need to built it. This eliminates the need for the gcc compile tools. Fewer steps; quicker install. I've also eliminated the [root@server ~]# in front of the commands so you can copy/paste to command line.
Thanks goes to:
Alfresco team for creating Alfresco and opensourcing the project -- YOU ROCK!!
the original group of wiki contributors, who made this revision possible.
Caution!The following instructions require root access. Please be cognizant that you could negatively affect your system due to inadvertent commands. Mind what you type!!
This documents presents the actual steps which were necessary to install Alfresco Comunity 3.2r2 war on a freshly installed CentOS 5.4 i386 server installation. The CentOS 5.4 installation was completed onsite through a GUI install. Only major changes were using a Static IP, turning off firewall and SELinux. Unlike the wiki page this article is heavily based on, Alfresco is being installed on a Centos 5.4 32-bit system with default GUI (XWindows). However, everything will be done via command line as was done in the previous article.
The following is the plain commands entered, some relevant output presented by those and required input by the user. When file edits are necessary only the respective lines are shown with the required text. Sometimes existing lines have to be replaced by the text presented here. Some times new lines have to be added. To give reference to the location of the new lines one line before has been included in the text here.
Commands are enclosed in a the mediawiki code tags so you can copy many lines at once to paste in the command line. It looks like this:
Keyboard input is indicated by
Long lines are wrapped by a backslash
Text ommited, e.g. from files or output is indicated by
Interactive application prompts, e.g. mysql, are indicated by
Comments for further actions or reviews are indicated by
# # Do this or that... #
Remove packages we won't need, it shouldn't hurt to leave it, but just in case.
[root@server alfresco]# rpm -ivh java-1.6.0-sun-compat-1.6.0.06-1jpp.src.rpm warning: java-1.6.0-sun-compat-1.6.0.06-1jpp.src.rpm: Header V3 DSA signature: NOKEY, key ID c431416d 1:java-1.6.0-sun-compat warning: user mockbuild does not exist - using root warning: group mockbuild does not exist - using root warning: user mockbuild does not exist - using root warning: group mockbuild does not exist - using root warning: user mockbuild does not exist - using root warning: group mockbuild does not exist - using root ########################################### [100%]
[root@server alfresco]# cd /usr/src/redhat/SPECS/ [root@server SPECS]# vi java-1.6.0-sun-compat.spec
Enter to keep the current selection[+], or type selection number:<enter>
[root@server SPECS]# cd ~/alfresco [root@server alfresco]# vi /etc/sysconfig/tomcat5 # If you wish to further customize your tomcat environment, # put your own definitions here # (i.e. LD_LIBRARY_PATH for some jdbc drivers) # Just do not forget to export them :)
[root@server alfresco]# mkdir base [root@server alfresco]# cd base [root@server base]# tar xzf ../alfresco-community-war-3.2r.tar.gz [root@server base]# chkconfig mysqld on [root@server base]# service mysqld start [root@server base]# mysql -u root -p