How to Install ownCloud 4 in Ubuntu Server 12.04 LTS

owncloud 4 has been release by ownCloud developers team, is a free and open source software alternative to some proprietary web services that you can install on your own computer or server, which includes file management with built-in file sharing ike Dropbox, music streaming, calendar, contacts and more. Major changes in ownCloud 4 include support for file versioning, allowing users to restore previous versions of a file or view a files history, and the addition of an integrated viewer for ODF file.

Here’s New Changes of ownCloud 4:

Versioning : With this feature enabled, it is possible to restore an older version of a file. A core advantage here is that you can configure the versioninig feature, which you can’t do at third party cloud hosting and synchronization services.

Encryption : You can now configure file encryption so that all files stored on the server are encrypted, and thus only accessible with the correct password.

Drag and drop upload : The ownCloud web service now supports the dragging and dropping of local files to a directory on the server.

ODF Viewer : Open Document Format files are now supported by the viewer, and can be read right in the web browser without the need for plugins or programs.

Themes : If you do not like the look and feel of the ownCloud site, you can now theme and style it yourself, or install a theme created by others.

Application Store : This makes it easier to install new applications, like the encryption or versioning application on the server.

External Storage : This is an experimental feature that allows you to mount Google Drive and Dropbox storage as folders inside the ownCloud structure

Syslog support : OwnCloud can now write to syslog log files, and of course the service’s own log files

in addition to releasing owncloud 4, ownCloud developer team also release also released the ownCloud Desktop Client in version 1.0.2. it also the version that is released on all big desktop platforms the first time and also offer a dmg for MacOSX as well as a Windows Installer and packages for the major Linux distributions

Thanks for your very illuminating post, is very clear and easy to follow, but I have some problems with the dependencies. After various failures I find a working combination of packages.
My dependencies list is:
apache2 php5-common php5-gd curl libcurl3 libcurl3-dev php5-curl libapache2-mod-php5 mysql-server libapache2-mod-auth-mysql php5-mysql php5-ldap php5-sqlite

I have noted php5-sqlite is required even if you only like to use MySQL as database backend.