cancel
Showing results for 
Search instead for 
Did you mean: 

Installing on LINUX Server

cristian
Champ in-the-making
Champ in-the-making
Hi all.

I'm looking for the right way to install Alfresco Community edition 3.2r2 on a clean LINUX Server installation (CENTOS 5.4).
I can use only line commands. There's no required software installed (like Java, Tomcat, Mysql etc..).

I found the installer with all the required software, but it can be launched only from a GUI I've read.
Do I have to install any single required software manually if I can't use the GUI?

I'm a bit confused. Actually I have downloaded the Alfresco-Community-3.2r2-Linux-x86-Install, and launched via cmd line. It extracts some files.. but what should I do now??
Do am I wrong?

Thanks
11 REPLIES 11

brassmachine
Champ in-the-making
Champ in-the-making
The steps you'll need to take to install Alfresco on Linux depend on your setup.

Are you sitting at the linux machine you want to install Alfresco on? Or are you connecting from a remote machine?

If connecting from a remote machine is it windows, mac or linux?

Regardless you'll want to use X11 gui to install Alfresco, but how to do that will depend on your setup.

cristian
Champ in-the-making
Champ in-the-making
Are you sitting at the linux machine you want to install Alfresco on?
No. Is a dedicated server, phisically hosted by a provider.
Or are you connecting from a remote machine?
I'm connecting via ssh to manage the server.
If connecting from a remote machine is it windows, mac or linux?
Client mounts Windows.
Regardless you'll want to use X11 gui to install Alfresco, but how to do that will depend on your setup.
Maybe I can try to install a GUI on the server machine…

dranakan
Champ on-the-rise
Champ on-the-rise
Hello,

I also need to install Alfresco only with command line.

I remember there where problems to install Alfresco Labs 3.0 with command line.

Is it possible to install Alfresco 32r2 only with command line ?

(I cannot use tools like xrdp to access the server).

Thanks

mrogers
Star Contributor
Star Contributor
All the installer is doing is copying files into the right place and writing a couple of config files.

You should be able to do this on a command line rather than mucking around with X11.

I suggest you become familiar with installing alfresco locally before trying to install alfresco on a remote server.

The key to look for in the installation guide is to manually install the Alfresco WAR file.

brassmachine
Champ in-the-making
Champ in-the-making
X11 is probably already installed on your server, type whereis xclock
or whereis xterm
if those are there you probably have x11 installed.

If you do want to try to follow the directions on the Alfresco wiki and install using X11 you'll need to download Xming (or equivalent) onto your windows machine your using to connect to the Linux server.

start Xming

Assuming you're using Putty to connect to your Linux server open putty

under connection on the left expand SSH,
select X11
check Enable X11 forwarding
in X display location type 127.0.0.1, or localhost (mine only works with the ip)

under category select Session and log into your machine as normal.

check to see that X11 and xming are all good type command
xclock
if that works you just need to copy the X11 cookie into root's files and then you can install Alfresco as the wiki describes

type into ocmmand line
$ xauth list
you'll get something like –> host.domain.org/unixXX MIT-MAGIC-COOKIE-1 3982d02d02fc320ebc92ed02a29372e3932a
now su to root and copy the cookie
$ sudo su
Password:
root$ xauth add host.domain.org/unixXX  (copy here everything that xauth list showed.

now you can run the installer as root and you'll see the gui displays and everything

cristian
Champ in-the-making
Champ in-the-making
Thanks brassmachine.
On your steps I've found the starting point to install GUI on my hosted server.

This work was a bit harder than I expected, but at the end I was able to install Alfresco on CENTOS 5.4 with a GUI, cutting many manually operations.
I've followed this useful guide: http://wiki.centos.org/HowTos/VNC-Server to install the VNC environment.

Obviously, JDK (a little bit complicated for me), MySQL and OpenOffice was already installed before running the installer. I've encountered only an issue when the wizard tried to create the MySQL database.. and even if I checked the correct listening port for MySQL, I had to create an empty database manually.
Rest, run as well.

Now that I have Alfresco in place, starting Alfresco with
[root@host alfresco]# ./alfresco.sh start
I have
Using CATALINA_BASE:   /usr/local/alfresco/tomcat
Using CATALINA_HOME:   /usr/local/alfresco/tomcat
Using CATALINA_TMPDIR: /usr/local/alfresco/tomcat/temp
Using JRE_HOME:       /usr/java/jdk1.6.0_17

..but seems that something does not goes right. Connecting on http://myhost:8080/alfresco I have: 'The requested resource () is not available.' 
Apache Tomcat/6.0.18.

What should I check? I tried to manually config ALF_HOME and JAVA_HOME but without success.

cristian
Champ in-the-making
Champ in-the-making
I notice that alf_data directory is not in place after install process. Should it?
Does installer pass some sql query to MySQL server? Cause I can only skip this step.
Also giving GRANT privileges to logged user, the installer can't create the database or anything related…

Error is 'Could not select database'. (even if database is in the input or already created)

ricardom
Champ in-the-making
Champ in-the-making
Hello

I am trying to install Enterprise Edition 3.2 on RHEL5 Server.  I using the "Alfresco Enterprise Edition Detailed Install & Configure Guide.pdf" to follow instructions.

My system already has MySQL 5.0.77, which is supported by this version.  The guide above contains the section "Configuring MySQL" which it's focused for a Windows-based installation.

Obviously, mysql is not setup yet, since "mysql -u root -p"   returns an error indicating it cannot connect though the socket.

Since the instructions above in the guide do not apply for my system, where can I find the instructions for my installation type?

Thanks, Ricardo

dranakan
Champ on-the-rise
Champ on-the-rise
Hello,

Are you sure that Mysql is running ?

su -
service mysqld status

if not…
su -
service mysqld start

Good luck 🙂