404 error when installing elgg, RewriteBase change in htaccess not working

I have elgg installed on a server (testing locally for right now) in /var/www/elgg. The data directory is /var/www/data. Both of these directories are writable, and I changed the RewriteBase line to:

RewriteBase /elgg/

I still get a 404 error with Not Found. The requested URL /elgg/action/systemsettings/install was not found on this server. What am I doing wrong?!! According to the troubleshooting I'm doing everything right (I think).

 

Any help here? Thank you!

 

  • @pythonscript:

    Try it with adding

    <Directory "elgg_install_dir">
       AllowOverride All
    </Directory>

    to your httpd.conf. You will have to adjust it depending on the path to your elgg install directoy.

  • That's working great, lionly. In the newer versions of apache, however (apache 2.X) the httpd.conf file has been replaced by /etc/apache2/apache2.conf, so that's where I made the change. Thank you again!

  • I'm trying to install 1.7.2 on my server host "Servage.net" and at the moment it's impossible to continue installation . it is blocked on "http://mysite/action/systemsettings/install"

    the problem is the same :404 Not found

    PHP Version 5.2.42

    System Linux node3 2.100.3-1-amd64-grsec

    Server API Apache 2.0 Handler

    Virtual Directory Support enabled

    mod_rewrite supported

    I need a solution or a work around to have a site ON on Servage and maybe it doesn't like this kind of rules in htaccess. then i can modify only htaccess, NO httpd.conf

    In local host all is fine.

  • mod_rewrite supported is different from saying that it is enabled. Check out the install troubleshooting on the Elgg wiki.

  • from Servage:"I have checked and found that mod_rewrite module is already loaded on our servers. For your reference, I have created a phpinfo.php file and you can check it at :

    i'm trying with older version of elgg , but no luck :-(

  • the site is in the root . can I check something out to understand the problem? tell it to me. thanks :-)

  • can you suggest something? I tryed all I know and mod rewrite is working but no to istall elgg on servage.

  • Have you worked through all the troubleshooting guidance such as checking allow override and have you checked that mod rewrite is working as is documented in the trouble shooting guide?

  • ok I have it now. thanks fot all!

    first thing to have in mind, maybe in wiki doc:

    enable .htaccess : some server hosting can put it off now by default like mine :-(

    then also found that PHP Safe Mode and Safe Mode GDI have been disable, but

    I'm not sure, and I want to ask: Is Safe Mode compatible with elgg 1.7.2 now???

    because I can run my site also with it on. but in generally do you advice it? my server hosting says: YES!!!! don't put it off!!!

    best regards

     

  • PHP Safe Mode has been deprecated for PHP 5.3. I wouldn't put much faith in a hosting provider that still insists that it is used. If I remember correctly, the possible conflict between safe mode and Elgg was writing and reading from the data directory. It is possible there could be other issues and safe mode is not supported.