Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Technical

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 11th July 2008, 05:23
cruz cruz is offline
Senior Member
 
Join Date: Apr 2007
Posts: 365
Thanks: 51
Thanked 2 Times in 2 Posts
Default trubble installing elgg

I have debian perfect setup. I am trying to install elgg. If I keep the .htacess file in the root dir the install gives me a 500 error. If I take out the file I can get to the install. What is in this file that is giving me trubble and how can I fix it? Thanks in advance.
HTML Code:
<IfModule !mod_rewrite.c>
    # ugly ugly hack to detect missing mod_rewrite
    # RedirectMatch must be to an absolute destination, so forces 500 error...
    ErrorDocument 500 "Elgg error: Apache does not have mod_rewrite loaded. Please check your apache setup."
    RedirectMatch 302 .* index.php
</IfModule>

<Files "htaccess-dist">
    order allow,deny
    deny from all
</Files>

# Don't listing directory
Options -Indexes

# Follow symbolic links
Options +FollowSymLinks

# Default handler
DirectoryIndex index.php

# php 4, apache 1.x
<IfModule mod_php4.c>
	# default memory limit to 32Mb
	php_value memory_limit 32M
	# to make sure register global is off
	php_value register_globals 0
	# max post size to 8Mb
	php_value post_max_size 8388608
	# upload size limit to 5Mb	
	php_value upload_max_filesize 5242880
	# hide errors, enable only if debug enabled
	php_value display_errors 0
</IfModule>

# php 4, apache 2
<IfModule sapi_apache2.c>
	# default memory limit to 32Mb
	php_value memory_limit 32M
	# to make sure register global is off
	php_value register_globals 0
	# max post size to 8Mb
	php_value post_max_size 8388608
	# upload size limit to 5Mb	
	php_value upload_max_filesize 5242880
	# hide errors, enable only if debug enabled
	php_value display_errors 0
</IfModule>

# php 5, apache 1 and 2
<IfModule mod_php5.c>
	# default memory limit to 32Mb
	php_value memory_limit 32M
	# to make sure register global is off
	php_value register_globals 0
	# max post size to 8Mb
	php_value post_max_size 8388608
	# upload size limit to 5Mb	
	php_value upload_max_filesize 5242880
	# hide errors, enable only if debug enabled
	php_value display_errors 0
</IfModule>

<IfModule mod_rewrite.c>

RewriteEngine on

# If Elgg is in a subdirectory on your site, you might need to add a RewriteBase line
# containing the path from your site root to elgg's root. e.g. If your site is
# http://example.com/ and Elgg is in http://example.com/sites/elgg/, you might need 
#
#RewriteBase /sites/elgg/
#
# here, only without the # in front.
#
# If you're not running Elgg in a subdirectory on your site, but still getting lots
# of 404 errors beyond the front page, you could instead try:
#
#RewriteBase /

# Pages
###########
RewriteRule ^content\/?(.*)?$ mod/pages/index.php?owner=-1&page=$1 [QSA,L]
RewriteRule ^([A-Za-z0-9]+)\/content\/(.*)?$ mod/pages/index.php?profile_name=$1&page=$2  [QSA,L]

RewriteRule ^_templates(\/)?$ mod/template/index.php?%{QUERY_STRING}
RewriteRule ^_templates\/edit.php$ mod/template/edit.php?%{QUERY_STRING}
RewriteRule ^_templates\/preview.php$ mod/template/preview.php?%{QUERY_STRING}
RewriteRule ^_templates/css/(.+)$ mod/template/css.php?template=$1

RewriteRule ^(.+)\/rssstyles.xsl$ mod/newsclient/styles.php?rssurl=$1&url=$1

RewriteRule ^([A-Za-z0-9]+)\/dashboard(\/)?$ mod/adash/index.php?user=$1

RewriteRule ^([A-Za-z0-9]+)\/profile(\/)?$ profile/index.php?profile_name=$1
RewriteRule ^([A-Za-z0-9]+)\/tags(\/)?$ search/personaltags.php?profile_name=$1
RewriteRule ^([A-Za-z0-9]+)\/rss\/(.+)\/?$ profile/rss2.php?profile_name=$1&tag=$2

# Invite
#########
RewriteRule ^invite\/$ mod/invite/index.php
ReWriteRule ^invite\/join\/([A-Za-z0-9]+)$ mod/invite/join.php?invitecode=$1
ReWriteRule ^register$ mod/invite/register.php
RewriteRule ^forgottenpassword$ mod/invite/forgotten_password.php
RewriteRule ^newpassword\/([A-Za-z0-9]+)$ mod/invite/new_password.php?passwordcode=$1

RewriteRule ^([A-Za-z0-9]+)(\/)?$ profile/index.php?profile_name=$1

# Activity
###########
RewriteRule ^_activity\/$ mod/activity/index.php
RewriteRule ^_activity\/index.php$ mod/activity/index.php?%{QUERY_STRING}

# Communities
##############
RewriteRule ^([A-Za-z0-9]+)\/communities\/?$ mod/community/index.php?friends_name=$1
RewriteRule ^([A-Za-z0-9]+)\/communities\/owned$ mod/community/owned.php?profile_name=$1
RewriteRule ^([A-Za-z0-9]+)\/communities\/new$ mod/community/new.php?profile_name=$1
RewriteRule ^([A-Za-z0-9]+)\/community\/delete$ mod/community/index.php?profile_name=$1&action=community:delete
RewriteRule ^([A-Za-z0-9]+)\/community\/requests$ mod/community/requests.php?profile_name=$1
RewriteRule ^([A-Za-z0-9]+)\/community\/requests\/aprove\/([0-9]+)$ mod/community/requests.php?profile_name=$1&action=community:approve:request&request_id=$2
RewriteRule ^([A-Za-z0-9]+)\/community\/requests\/decline\/([0-9]+)$ mod/community/requests.php?profile_name=$1&action=community:decline:request&request_id=$2
RewriteRule ^([A-Za-z0-9]+)\/community\/members$ mod/community/members.php?profile_name=$1
RewriteRule ^([A-Za-z0-9]+)\/community\/add\/([0-9]+)$ mod/community/index.php?friends_name=$1&friend_id=$2&action=friend
RewriteRule ^([A-Za-z0-9]+)\/community\/leave\/([0-9]+)$ mod/community/index.php?profile_name=$1&friend_id=$2&action=leave
RewriteRule ^([A-Za-z0-9]+)\/community\/separate\/([0-9]+)$ mod/community/members.php?profile_name=$1&friend_id=$2&action=separate
RewriteRule ^community\/([0-9]+)\/?$ mod/communities/community.php?community_id=$1
RewriteRule ^([A-Za-z0-9]+)\/community\/invite$ mod/community/invite.php?profile_name=$1
RewriteRule ^([A-Za-z0-9]+)\/communities\/invitations$ mod/community/user_community_invitations.php?profile_name=$1

# Files
########
RewriteRule ^([A-Za-z0-9]+)\/files\/?$ mod/file/index.php?files_name=$1
RewriteRule ^([A-Za-z0-9]+)\/files\/([0-9]+)\/?$ mod/file/index.php?files_name=$1&folder=$2
RewriteRule ^([A-Za-z0-9]+)\/files\/([0-9\-]+)\/([0-9]+)\/(.+)$ mod/file/download.php?files_name=$1&folder=$2&filename=$4&id=$3
RewriteRule ^(([A-Za-z0-9])[A-Za-z0-9]+)\/files\/rss\/?$ mod/newsclient/static.php?username=$1&userref=$2&type=files
RewriteRule ^([A-Za-z0-9]+)\/files\/rss\/(.+)\/?$ mod/file/rss2.php?files_name=$1&tag=$2
RewriteRule ^_icon\/file/([-0-9]+)$ mod/file/icon.php?id=$1
RewriteRule ^_files\/icon.php$ mod/file/icon.php?%{QUERY_STRING}

# Friends
##########
RewriteRule ^([A-Za-z0-9]+)\/friends\/?$ mod/friend/index.php?friends_name=$1
RewriteRule ^([A-Za-z0-9]+)\/friendsof\/?$ mod/friend/friendsof.php?friends_name=$1
RewriteRule ^([A-Za-z0-9]+)\/friends\/requests?$ mod/friend/requests.php?friends_name=$1
RewriteRule ^([A-Za-z0-9]+)\/foaf\/?$ mod/friend/foaf.php?friends_name=$1

# Icons
########
RewriteRule ^_icons\/$ mod/icons/index.php
RewriteRule ^_icon\/user/([-0-9]+)$ mod/icons/icon.php?id=$1
RewriteRule ^_icon\/user/([-0-9]+)\/([A-Za-z])\/([0-9]+)$ mod/icons/icon.php?id=$1&constraint1=$2&size1=$3
RewriteRule ^_icon\/user/([-0-9]+)\/([A-Za-z])\/([0-9]+)\/([A-Za-z])\/([0-9]+)$ mod/icons/icon.php?id=$1&constraint1=$2&size1=$3&constraint2=$4&size2=$5

# Tags
###########

RewriteRule ^tag\/(.+)\/?$ search/all.php?tag=$1
RewriteRule ^rsstag\/(.+)\/?$ search/rss.php?tag=$1
RewriteRule ^tag\/(.+)/ecl\/?$ search/ecl.php?tag=$1


# Newsclient
############
RewriteRule ^(([A-Za-z0-9])[A-Za-z0-9]+)\/rss\/?$ mod/newsclient/static.php?username=$1&userref=$2&type=profile
RewriteRule ^([A-Za-z0-9]+)\/newsclient\/?$ mod/newsclient/subscriptions.php?profile_name=$1
RewriteRule ^([A-Za-z0-9]+)\/newsclient\/all\/?$ mod/newsclient/index.php?profile_name=$1
RewriteRule ^([A-Za-z0-9]+)\/newsclient\/all\/skip=([0-9]+)$ mod/newsclient/index.php?profile_name=$1&feed_offset=$2
RewriteRule ^([A-Za-z0-9]+)\/feeds\/?$ mod/newsclient/subscriptions.php?profile_name=$1
RewriteRule ^([A-Za-z0-9]+)\/feeds\/all\/?$ mod/newsclient/index.php?profile_name=$1
RewriteRule ^([A-Za-z0-9]+)\/feeds\/all\/skip=([0-9]+)$ mod/newsclient/index.php?profile_name=$1&feed_offset=$2
RewriteRule ^_rss\/([A-Za-z_]+).php$ mod/newsclient/$1.php?%{QUERY_STRING}

# Users
########
RewriteRule ^_userdetails\/$ mod/users/index.php?%{QUERY_STRING}
RewriteRule ^_userdetails\/index.php$ mod/users/index.php?%{QUERY_STRING}

# Weblog
########
RewriteRule ^([A-Za-z0-9]+)\/weblog\/?$ mod/blog/index.php?weblog_name=$1
ReWriteRule ^([A-Za-z0-9]+)\/weblog\/skip=([0-9]+)$ mod/blog/index.php?weblog_name=$1&weblog_offset=$2
RewriteRule ^([A-Za-z0-9]+)\/weblog\/edit$ mod/blog/edit.php?profile_name=$1
RewriteRule ^([A-Za-z0-9]+)\/weblog\/edit\/([0-9]+)$ mod/blog/edit.php?profile_name=$1&weblog_post_id=$2&action=edit
RewriteRule ^([A-Za-z0-9]+)\/weblog\/archive\/?$ mod/blog/archive.php?weblog_name=$1
RewriteRule ^([A-Za-z0-9]+)\/weblog\/archive\/([0-9]+)\/([0-9]+)\/?$ mod/blog/archive_month.php?weblog_name=$1&year=$2&month=$3
RewriteRule ^([A-Za-z0-9]+)\/weblog\/friends\/?$ mod/blog/friends.php?weblog_name=$1
ReWriteRule ^([A-Za-z0-9]+)\/weblog\/friends\/skip=([0-9]+)$ mod/blog/friends.php?weblog_name=$1&weblog_offset=$2
RewriteRule ^([A-Za-z0-9]+)\/weblog\/interesting\/?$ mod/blog/interesting.php?weblog_name=$1
ReWriteRule ^([A-Za-z0-9]+)\/weblog\/interesting\/skip=([0-9]+)$ mod/blog/interesting.php?weblog_name=$1&weblog_offset=$2
RewriteRule ^[A-Za-z0-9]+\/weblog\/([0-9]+)\.html$ mod/blog/view_post.php?post=$1
RewriteRule ^[A-Za-z0-9]+\/weblog\/([0-9]+)\.html.([0-9]+)$ mod/blog/view_post.php?post=$1&commentpage=$2
RewriteRule ^([A-Za-z0-9]+)\/weblog\/rss\/(.+)\/?$ mod/blog/rss2.php?weblog_name=$1&tag=$2&modifier=is
RewriteRule ^([A-Za-z0-9]+)\/weblog\/rssnot\/(.+)\/?$ mod/blog/rss2.php?weblog_name=$1&tag=$2&modifier=not
RewriteRule ^(([A-Za-z0-9])[A-Za-z0-9]+)\/weblog\/rss\/?$ mod/newsclient/static.php?username=$1&userref=$2&type=weblog
RewriteRule ^([A-Za-z0-9]+)\/weblog\/category\/([^\/]+)\/?$ mod/blog/index.php?weblog_name=$1&filter=$2
ReWriteRule ^([A-Za-z0-9]+)\/weblog\/category\/([^\/]+)\/skip=([0-9]+)$ mod/blog/index.php?weblog_name=$1&filter=$2&weblog_offset=$3
ReWriteRule ^weblog\/everyone$ mod/blog/everyone.php
ReWriteRule ^weblog\/everyone\/(people|communities|commented|uncommented)$ mod/blog/everyone.php?filter=$1
ReWriteRule ^weblog\/everyone\/skip\/([0-9]+.*)$ mod/blog/everyone.php?weblog_offset=$1


# Some blogging clients probe Wordpress or MoveableType endpoints,
# redirect them to the Elgg xml-rpc endpoint
#
RewriteRule xml-rpc.php _rpc/RPC2.php
RewriteRule mt/mt-xmlrpc.cgi _rpc/RPC2.php

# Rewrite rules for rpc transition to mod/ in v0.9+ so we don't break things
#
RewriteRule ^_rpc/RPC2.php$ mod/rpc/RPC2.php
RewriteRule ^_rpc/rsd.php$ mod/rpc/rsd.php?%{QUERY_STRING}

</IfModule>
Reply With Quote
The Following User Says Thank You to cruz For This Useful Post:
AbannyvabVask (23rd December 2013)
Sponsored Links
  #2  
Old 12th July 2008, 12:18
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,745 Times in 2,578 Posts
Default

Is mod_rewrite enabled? Are there any errors in Apache's error log?
Which distribution are you using?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 12th July 2008, 23:18
cruz cruz is offline
Senior Member
 
Join Date: Apr 2007
Posts: 365
Thanks: 51
Thanked 2 Times in 2 Posts
Default elgg install trubble

Yes mod_rewrite is installed and enabled. It is elgg-0.9.2. I am trying to install. I see in the docs this.
HTML Code:
Your  Apache configuration  must have AllowOverride set to All for the directory where Elgg is installed.
How do I check this? Thanks. There are no errors in apache because I did not try to install without the.htaccess file and it will not bring up the install with it in the root. I am using Apache 2.2
New info...I was looking in the vhost for the site I am trying to setup elgg on and this is what is in there.
HTML Code:
<Directory /var/www/web4/web>
   Options +Indexes +FollowSymLinks +MultiViews
   AllowOverride None
   Order allow,deny
   allow from all
   AddHandler mod_python .py
   PythonHandler mod_python.publisher
   PythonDebug On
 </Directory>
Dose this need to be changed? if so please tell me what to change and why so I can understand. thanks

Last edited by cruz; 12th July 2008 at 23:43. Reason: new info
Reply With Quote
  #4  
Old 13th July 2008, 14:25
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,745 Times in 2,578 Posts
Default

Please change
Code:
AllowOverride None
to
Code:
AllowOverride All
and restart Apache.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
The Following 2 Users Say Thank You to falko For This Useful Post:
AbannyvabVask (20th December 2013), cruz (16th July 2008)
  #5  
Old 10th October 2008, 16:08
koltz koltz is offline
Member
 
Join Date: Feb 2007
Posts: 61
Thanks: 0
Thanked 1 Time in 1 Post
Default Thanks for the post

I am having the same issue, but not sure where the vhost is located. I found the main vhosts file, but not sure where the individual ones are located as you are mentioning in the thread?

Thanks,

Corey
Reply With Quote
The Following User Says Thank You to koltz For This Useful Post:
AbannyvabVask (23rd December 2013)
  #6  
Old 11th October 2008, 19:49
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,745 Times in 2,578 Posts
Default

Which distribution are you using?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #7  
Old 19th August 2009, 01:00
Christian Christian is offline
Junior Member
 
Join Date: Dec 2007
Posts: 9
Thanks: 2
Thanked 0 Times in 0 Posts
Question Trouble installing crontab

I'm using "The Perfect Server - Ubuntu 9.04 [ISPConfig 3]" install and i'm installing elgg.

But when I want to install the crontab I get the following error:

Code:
"crontab.example":8: bad minute
errors in crontab file, can't install.
I must ad to this that i'm not installing the elgg to the root folder
"/var/www/www.website.com/web" but in a subdirectory
"/var/www/www.website.com/web/elgg" so I also placed "/data/" at "/www/data/".
Further I followed the How To.

Can anyone help?
Reply With Quote
  #8  
Old 19th August 2009, 14:47
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,745 Times in 2,578 Posts
Default

What's in crontab.example?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
The Following User Says Thank You to falko For This Useful Post:
AbannyvabVask (20th December 2013)
  #9  
Old 19th August 2009, 15:22
Christian Christian is offline
Junior Member
 
Join Date: Dec 2007
Posts: 9
Thanks: 2
Thanked 0 Times in 0 Posts
Default

Hi Falko,

This is what I have in my crontab (It's the default list btw)

Code:
# Crontab example.
#
# This file is an example of triggering Elgg cron events. Modify and register events 
# as appropriate.
#
# See http://docs.elgg.org/wiki/Cron for more information
#
# @author Marcus Povey

# Location of GET (see: http://docs.elgg.org/wiki/What_is_get)
GET='/usr/bin/GET'

# Location of your site (don't forget the trailing slash!)
ELGG='http://www.mywebsite.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/
Reply With Quote
  #10  
Old 20th August 2009, 16:48
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,745 Times in 2,578 Posts
 
Default

Looks ok. You can run
Code:
crontab -e
manually and paste the contents of that file.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems with installation on openSUSE 10.2 douglaslopezt Installation/Configuration 3 24th August 2007 23:04
Interface for installing SSL Intermediate Certificate LumpyOne Feature Requests 3 20th November 2006 21:28
errors on the end of the installing process tom Installation/Configuration 1 8th April 2006 02:56
Help Installing ndiswrapper onto Ubuntu sbovisjb1 Installation/Configuration 0 17th February 2006 00:55
error while installing..... securitywonks Installation/Configuration 1 23rd December 2005 13:07


All times are GMT +2. The time now is 16:38.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.