I need some Help!! Instalation problem // Also in Spanish

Hello There .... from 3 days i cannot spleep as well :D . only trying to fit what is happening to me installing elgg.

First of all i have 1and1 company as a hosting (Busissnes Plus Hosting Plan ... and i have the elgg installed in the following path:

/www/elgg

Well, Tryanig to install the elgg and after step two of adding information such as The name of your site (eg "My social networking site"), or url .. u know wich page i mean ...

After seting upthis and click on save i get a 404 error.(also the page shown try to get access is http://www.xxxxxxi.org/action/systemsettings/install )... i know and also i was reading about "rewrite on" modul .. so i call my hosting and they told me that the "rewrite on" is availavle (i perfom a test and the result was "rewrite modul works", so its installed. and also they told me that i need to insert befote "rewrite engine on"  the following "RewriteBase /"  and thas it .. i just also advides to they that from elgg instruction i have to add also de path of the site ("RewriteBase /www/elgg/".. but they told me .. this is not necessary. but didnt work are all !!!

This is what i have as a .htaccess

PLEASE IF YOU CAN CHECK THAT IS CORRECT!!

# Elgg htaccess directives

# Copyright Curverider Ltd 2008-2009

# License http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2

# Link http://elgg.org/

 

<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

 

# Turn on expiry

<IfModule mod_expires.c>

ExpiresActive On

ExpiresDefault "access plus 10 years"

</IfModule>

 

# php 5, apache 1.x

<IfModule mod_php4.c>

    ErrorDocument 500 "Elgg error: Elgg does not support PHP 5."

    RedirectMatch 302 .* index.php

</IfModule>

 

# php 5, apache 2

<IfModule sapi_apache2.c>

    ErrorDocument 500 "Elgg error: Elgg does not support PHP 5."

    RedirectMatch 302 .* index.php

</IfModule>

 

# php 5, apache 1 and 2

<IfModule mod_php5.c>

# default memory limit to 64Mb

php_value memory_limit 64M

# 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>

 

# Turn on mod_gzip if available

<IfModule mod_gzip.c>

mod_gzip_on yes

    mod_gzip_dechunk yes

    mod_gzip_keep_workfiles No

    mod_gzip_minimum_file_size 1000

    mod_gzip_maximum_file_size 1000000

    mod_gzip_maximum_inmem_size 1000000

    mod_gzip_item_include mime ^text/.* 

    mod_gzip_item_include mime ^application/javascript$

    mod_gzip_item_include mime ^application/x-javascript$

    # Exclude old browsers and images since IE has trouble with this

    mod_gzip_item_exclude reqheader "User-Agent: .*Mozilla/4\..*\["

    mod_gzip_item_exclude mime ^image/.*

</IfModule>

 

## Apache2 deflate support if available

##

## Important note: mod_headers is required for correct functioning across proxies.

##

<IfModule mod_deflate.c>

AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript application/javascript application/x-javascript

BrowserMatch ^Mozilla/4 gzip-only-text/html

BrowserMatch ^Mozilla/4\.[0678] no-gzip

BrowserMatch \bMSIE !no-gzip

 

<IfModule mod_headers.c>

Header append Vary User-Agent env=!dont-vary

</IfModule>

# The following is to disable compression for actions. The reason being is that these

# may offer direct downloads which (since the initial request comes in as text/html and headers

# get changed in the script) get double compressed and become unusable when downloaded by IE.

SetEnvIfNoCase Request_URI action\/* no-gzip dont-vary

SetEnvIfNoCase Request_URI actions\/* no-gzip dont-vary

</IfModule>

 

# Configure ETags

<FilesMatch "\.(jpg|jpeg|gif|png|mp3|flv|mov|avi|3pg|html|htm|swf)$">

FileETag MTime Size

</FilesMatch>

 

<IfModule mod_rewrite.c>

RewriteBase \

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 /

 

RewriteRule ^action\/([A-Za-z0-9\_\-\/]+)$ engine/handlers/action_handler.php?action=$1

 

RewriteRule ^export\/([A-Za-z]+)\/([0-9]+)$ services/export/handler.php?view=$1&guid=$2

RewriteRule ^export\/([A-Za-z]+)\/([0-9]+)\/$ services/export/handler.php?view=$1&guid=$2

RewriteRule ^export\/([A-Za-z]+)\/([0-9]+)\/([A-Za-z]+)\/([A-Za-z0-9\_]+)\/$ services/export/handler.php?view=$1&guid=$2&type=$3&idname=$4

 

RewriteRule ^\_css\/css\.css$ _css/css.php

 

RewriteRule ^pg\/([A-Za-z0-9\_\-]+)\/(.*)$ engine/handlers/pagehandler.php?handler=$1&page=$2

RewriteRule ^pg\/([A-Za-z0-9\_\-]+)$ engine/handlers/pagehandler.php?handler=$1

 

RewriteRule xml-rpc.php engine/handlers/xml-rpc_handler.php

RewriteRule mt/mt-xmlrpc.cgi engine/handlers/xml-rpc_handler.php

 

RewriteRule ^tag/(.+)/?$ engine/handlers/pagehandler.php?handler=search&page=$1

 

</IfModule>

Then my other doubt and maybe iam inserting a worng path ... 
this is what iam inserting on the following lines
The site URL, followed by a trailing slash:
The full path to your site root on your disk, followed by a trailing slash:
-/homepages/10/d319226454/htdocs/www/elgg/
The full path to the directory where uploaded files will be stored, followed by a trailing slash:
-/homepages/10/d319226454/htdocs/wwww/data/
Ok, also some aspect to know ... sometimes (i cannot remember what i did) but when i refresh appear a boy text copy and edit, blanck and saying . that elgg is trying to write and bla bla copy and paste the text bellow in a .httaccess and upload to your site ... but i dont have nothing :(
So please !! i will be very happy to resolve this ASAP ... as i have waiting more than 5000 users for my network!!
Thaks are all!! and also puedo hablar español !!
  • Hi Gaston, it should not be necessary to fiddle with the .htaccess.  The default will work for a normal install. 

    I should be in yourhost/public_html/   or   yourhost/public_html/sub_dir/ I think, but I am no expert.

    This is the contents of mine which seems to work... give it a try.  I have installed elgg a few times... I did 1.7 today without a hitch.  I have done it on several servers as well, so perhaps it is something else?  Did you unzip the elgg package on the server or ftp it?  It may be a dodgy upload.

    # Elgg htaccess directives
    # Copyright Curverider Ltd 2008-2009
    # License http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
    # Link http://elgg.org/

    #<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

    # Turn on expiry
    <IfModule mod_expires.c>
        ExpiresActive On
        ExpiresDefault "access plus 10 years"
    </IfModule>

    # php 5, apache 1 and 2
    <IfModule mod_php5.c>
        # default memory limit to 64Mb
        php_value memory_limit 64M
        # 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>

    # Turn on mod_gzip if available
    <IfModule mod_gzip.c>
        mod_gzip_on yes
        mod_gzip_dechunk yes
        mod_gzip_keep_workfiles No
        mod_gzip_minimum_file_size 1000
        mod_gzip_maximum_file_size 1000000
        mod_gzip_maximum_inmem_size 1000000
        mod_gzip_item_include mime ^text/.*
        mod_gzip_item_include mime ^application/javascript$
        mod_gzip_item_include mime ^application/x-javascript$
      
       # Exclude old browsers and images since IE has trouble with this
        mod_gzip_item_exclude reqheader "User-Agent: .*Mozilla/4\..*\["
        mod_gzip_item_exclude mime ^image/.*
    </IfModule>

    ## Apache2 deflate support if available
    ##
    ## Important note: mod_headers is required for correct functioning across proxies.
    ##
    <IfModule mod_deflate.c>
        AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript application/javascript application/x-javascript
        BrowserMatch ^Mozilla/4 gzip-only-text/html
        BrowserMatch ^Mozilla/4\.[0678] no-gzip
        BrowserMatch \bMSIE !no-gzip

    <IfModule mod_headers.c>   
        Header append Vary User-Agent env=!dont-vary
    </IfModule>   
       
        # The following is to disable compression for actions. The reason being is that these
        # may offer direct downloads which (since the initial request comes in as text/html and headers
        # get changed in the script) get double compressed and become unusable when downloaded by IE.
        SetEnvIfNoCase Request_URI action\/* no-gzip dont-vary
        SetEnvIfNoCase Request_URI actions\/* no-gzip dont-vary
       
    </IfModule>

    # Configure ETags
    <FilesMatch "\.(jpg|jpeg|gif|png|mp3|flv|mov|avi|3pg|html|htm|swf)$">
        FileETag MTime Size
    </FilesMatch>

    <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 /

    RewriteRule ^action\/([A-Za-z0-9\_\-\/]+)$ engine/handlers/action_handler.php?action=$1

    RewriteRule ^export\/([A-Za-z]+)\/([0-9]+)$ services/export/handler.php?view=$1&guid=$2
    RewriteRule ^export\/([A-Za-z]+)\/([0-9]+)\/$ services/export/handler.php?view=$1&guid=$2
    RewriteRule ^export\/([A-Za-z]+)\/([0-9]+)\/([A-Za-z]+)\/([A-Za-z0-9\_]+)\/$ services/export/handler.php?view=$1&guid=$2&type=$3&idname=$4

    RewriteRule ^\_css\/css\.css$ _css/css.php

    RewriteRule ^pg\/([A-Za-z0-9\_\-]+)\/(.*)$ engine/handlers/pagehandler.php?handler=$1&page=$2
    RewriteRule ^pg\/([A-Za-z0-9\_\-]+)$ engine/handlers/pagehandler.php?handler=$1

    RewriteRule xml-rpc.php engine/handlers/xml-rpc_handler.php
    RewriteRule mt/mt-xmlrpc.cgi engine/handlers/xml-rpc_handler.php

    RewriteRule ^tag/(.+)/?$ engine/handlers/pagehandler.php?handler=search&page=$1

    </IfModule>

  • Thanks ... :D i dowloaded from the elgg.org page ... but i fnt need to write Rewritebase ??

  • Hi... checked what u say ... this is what is on DOCUMENT_ROOT

     

    DOCUMENT_ROOT

    /kunden/homepages/10/d319226454/htdocs/www/elgg 

     

     i think is worng how can i change ir ?

    Thanks!!

  • didnt work :((((

    or iam stupid or my hosting company is crap!! i called they and they toldme that i need to add kunden/ to my path ...

    also i added rewritebase /elgg ... 

    Please!!!

  • i found on internet thath some hosting are requering a php not configured by CGI 

    maybe 1and1 use cgi in php  configured by cgi?

     

    Thaks !! i will be happy to resolve this jeje :((((( buaaaaaaaaa

  • buaaaaaaaaaaaaaa:( didnt work ... i have done this:

    now my path is 

    The full path to your site root on your disk, followed by a trailing slash:
    /www/elgg/mysite/ main

    /www/elgg/data/

    then as this view is my .httaccess

    # Elgg htaccess directives
    # Copyright Curverider Ltd 2008-2009
    # License http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU Public License version 2
    # Link http://elgg.org/
    
    <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
    
    # Turn on expiry
    <IfModule mod_expires.c>
    	ExpiresActive On
    	ExpiresDefault "access plus 10 years"
    </IfModule>
    
    # php 4, apache 1.x
    <IfModule mod_php4.c>
        ErrorDocument 500 "Elgg error: Elgg does not support PHP 4."
        RedirectMatch 302 .* index.php
    </IfModule>
    
    # php 4, apache 2
    <IfModule sapi_apache2.c>
        ErrorDocument 500 "Elgg error: Elgg does not support PHP 4."
        RedirectMatch 302 .* index.php
    </IfModule>
    
    # php 5, apache 1 and 2
    <IfModule mod_php5.c>
    	# default memory limit to 64Mb
    	php_value memory_limit 64M
    	# 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>
    
    # Turn on mod_gzip if available
    <IfModule mod_gzip.c>
    	mod_gzip_on yes
        mod_gzip_dechunk yes
        mod_gzip_keep_workfiles No
        mod_gzip_minimum_file_size 1000
        mod_gzip_maximum_file_size 1000000
        mod_gzip_maximum_inmem_size 1000000
        mod_gzip_item_include mime ^text/.* 
        mod_gzip_item_include mime ^application/javascript$
        mod_gzip_item_include mime ^application/x-javascript$
        # Exclude old browsers and images since IE has trouble with this
        mod_gzip_item_exclude reqheader "User-Agent: .*Mozilla/4\..*\["
        mod_gzip_item_exclude mime ^image/.*
    </IfModule>
    
    ## Apache2 deflate support if available
    ##
    ## Important note: mod_headers is required for correct functioning across proxies.
    ##
    <IfModule mod_deflate.c>
    	AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript application/javascript application/x-javascript
    	BrowserMatch ^Mozilla/4 gzip-only-text/html
    	BrowserMatch ^Mozilla/4\.[0678] no-gzip
    	BrowserMatch \bMSIE !no-gzip
    
    <IfModule mod_headers.c>	
    	Header append Vary User-Agent env=!dont-vary
    </IfModule>	
    	
    	# The following is to disable compression for actions. The reason being is that these
    	# may offer direct downloads which (since the initial request comes in as text/html and headers
    	# get changed in the script) get double compressed and become unusable when downloaded by IE.
    	SetEnvIfNoCase Request_URI action\/* no-gzip dont-vary
    	SetEnvIfNoCase Request_URI actions\/* no-gzip dont-vary
    	
    </IfModule>
    
    # Configure ETags
    <FilesMatch "\.(jpg|jpeg|gif|png|mp3|flv|mov|avi|3pg|html|htm|swf)$">
    	FileETag MTime Size
    </FilesMatch>
    
    <IfModule mod_rewrite.c>
    
    RewriteBase /mysite
    
    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 /homepages/10/d319226454/www/elgg/installation/
    
    RewriteRule ^action\/([A-Za-z0-9\_\-\/]+)$ engine/handlers/action_handler.php?action=$1
    
    RewriteRule ^export\/([A-Za-z]+)\/([0-9]+)$ services/export/handler.php?view=$1&guid=$2
    RewriteRule ^export\/([A-Za-z]+)\/([0-9]+)\/$ services/export/handler.php?view=$1&guid=$2
    RewriteRule ^export\/([A-Za-z]+)\/([0-9]+)\/([A-Za-z]+)\/([A-Za-z0-9\_]+)\/$ services/export/handler.php?view=$1&guid=$2&type=$3&idname=$4
    
    RewriteRule ^\_css\/css\.css$ _css/css.php
    
    RewriteRule ^pg\/([A-Za-z0-9\_\-]+)\/(.*)$ engine/handlers/pagehandler.php?handler=$1&page=$2
    RewriteRule ^pg\/([A-Za-z0-9\_\-]+)$ engine/handlers/pagehandler.php?handler=$1
    
    RewriteRule xml-rpc.php engine/handlers/xml-rpc_handler.php
    RewriteRule mt/mt-xmlrpc.cgi engine/handlers/xml-rpc_handler.php
    
    RewriteRule ^tag/(.+)/?$ engine/handlers/pagehandler.php?handler=search&page=$1
    
    </IfModule>
    

    joooo!!! iam deseperated!!!! have msn some ??
  • Sometimes when you have difficulties it is better to delete and start over because you may have changed so many things. Also be sure to clear your browser cache between attempts.

    1. If you are installing in the base directory of your web server, you should not need to change the .htaccess file at all.

    2. If you do experience a problem with mod rewrite rules, work through the mod rewrite test on the Installation troubleshooting page. Better to start with something simple first. If you cannot get that to work, you will never get the Elgg install to work.

    3. Posting the entire .htaccess is a waste of time. Just post the relevant sections if you run into trouble.

  • Ok, i have deleted evething from my hosting ...

    Also i want to add taht now i have a dedicated server gestioned by my hosting company.

    But When iam installing, just now , accessing to my site .. is seems that is running on php4 ... i called my hosting company and they toll me that if i want to run in php5 i have to replace in .httaccess the sentenses writed as php 4 for php5 ... and another thing ... but i cannot remeber ... uff i moved to a dedicated thinking that maybe is more easy ... but no!

    Regards!! and many thanks for trying to help me!!