Installing Elgg On An ISPConfig 3 System - Page 3

6 Installing Elgg

Go to http://elgg.org/downloads.php and download the latest Elgg full package to your PC; unzip it afterwards. Now before we upload the Elgg sources to our ISPConfig server, we must edit the file crontab.example that is part of the sources in our favourite editor. Make sure you fill in the correct URL for the ELGG variable:

# Crontab example.
#
# This file is an example of triggering Elgg cron events. Modify and register events
# as appropriate.
#
# See crontab (5) for more information.
#
# @author Marcus Povey

# Location of GET
GET='/usr/bin/GET'

# Location of your site
ELGG='http://www.example.com/'

# The crontab
# Don't edit below this line!
@reboot $GET ${ELGG}pg/cron/reboot/
* * * * * $GET ${ELGG}pg/cron/minute/
*/5 * * * * $GET ${ELGG}pg/cron/fiveminute/
15,30,45,59 * * * * $GET ${ELGG}pg/cron/fifteenmin/
30,59 * * * * $GET ${ELGG}pg/cron/halfhour/
@hourly $GET ${ELGG}pg/cron/hourly/
@daily $GET ${ELGG}pg/cron/daily/
@weekly $GET ${ELGG}pg/cron/weekly/
@monthly $GET ${ELGG}pg/cron/monthly/
@yearly $GET ${ELGG}pg/cron/yearly/

Also, rename the file htaccess_dist to .htaccess (this is important - otherwise the web-based installer might not work as expected!).

Now open your favourite FTP client (e.g. FileZilla) and connect to your new web site (fill in www.example.com (without http://!) as the server, then your FTP username and password and click on Connect:

In the right window you see the folders that are on the server. Go to the web folder as that is the document root of the www.example.com web site; in the left window (it displays the contents of your PC) go to the folder that contains the Elgg sources and upload the contents of that folder to the web folder on the server:

Next delete the index.html file in the web folder on the server (that is the ISPConfig placeholder page that we don't need anymore):

Next we create a data folder on the server (it is needed by Elgg for file uploads) - we don't create it in the web folder, but one level up (in /):

Then we change the permissions of the data folder to 777:

Afterwards, we change the permissions of the engine folder inside the web folder to 777 as well (this is necessary so that the Elgg installer can write to that directory):

Now log in to the server on the shell as the shell user that you've created in ISPConfig, and go to the document root of the www.example.com web site (that's where we've just uploaded the Elgg sources via FTP):

cd /var/www/example.com/web/

Install the cron jobs as follows:

crontab crontab.example

Share this page:

5 Comment(s)

Add comment

Comments

From: at: 2010-02-11 09:34:10

The apache directive:

[<Directory /var/www/example.com/web>
AllowOverride All
</Directory>

causes Apache2 to fail if the "[" is added in ispconfig 3

Solution:

edit  /etc/apache2/apache2.conf and delete the "["
then:
 /etc/init.d/apache2 restart.

Related: http://www.howtoforge.com/forums/showthread.php?t=42753apache2

From: Henry O'Tani at: 2012-03-24 01:33:32

In the U.K. character set there is an odd character at the beginning of the attached sample, which if cut and pasted exactly as it appears creates an error.

[<Directory /var/www/example.com/web>
  AllowOverride All
</Directory>

From: William B. at: 2010-01-02 05:34:35

Welcome to Elgg.

Your data directory /var/www/clients/client3/web3/elggdata/ is not writable.

From: Anonymous at: 2010-01-15 15:23:55

Welcome to Elgg.

Your data directory /var/www/clients/client3/web8/data/ is not writable.

web8@isp:~$ ls -l
total 24
drwxr-xr-x  3 web8 client3 4096 ene  2 13:29 cache
drwxr-xr-x  2 web8 client3 4096 ene  2 00:50 cgi-bin
drwxrwxrwx  2 web8 client3 4096 ene 15 09:47 data
lrwxrwxrwx  1 web8 client3   47 ene  2 00:50 log -> ????
drwxr-xr-x  2 web8 client3 4096 ene  2 00:50 ssl
drwxr-xr-x  2 web8 client3 4096 ene 14 23:26 tmp
drwxr-xr-x 22 web8 client3 4096 ene 15 09:46 web

From: Semih at: 2011-02-04 09:24:31

Open your  /etc/httpd/conf/sites-enabled/example.com.vhost file with your editor.

and add your data folder path to (/var/www/clients/client3/web8/data )

end of the php_admin_value open_basedir line.

 Restart your web server.