I am presently focusing on a brand new website and wish to run Elgg (Elgg.org) onto it. It's fully running on PHP5 and provides extensive rewrite rules defined within the .htaccess files. Around the Elgg community I did not found / have any solutions, and so i will attempt and request them here.
I am running multiple sites on my small home windows machine, now I would like one for that Elgg installation. Let us say we use them obc.example.com. I added the next lines to my httpd-vhosts.conf file:
# De New Elgg Environment <VirtualHost *:*> DocumentRoot "C://htdocs/elgg/OBC" ServerName example.com ServerAlias obc.example.com </VirtualHost>
The issue is, after i run the Elgg installer (e.g.) direct to obc.example.com, eerything appears to operate fine to begin with. I recieve a pleasant screen that request me for that database stuff. After I submit the page I recieve the following screen along the way. To the qualifications from the website I am making. However when I submit it, there is a 404 error, saying: The asked for URL /action/systemsettings/install wasn't available on this server.
This really is triggered through the rewrite engine. The Elgg troubleshooting paperwork let me know this is. )
The issue is now: how do i tell apache to make use of the .htaccess apply for the rewrite rules? ~Only with this domain? (vhost, obc.example.com)
Browse the .htaccess files tutorial regarding how to use .htaccess files.
You will need something similar to
<Directory "C://htdocs/elgg/OBC"> AllowOverride All </Directory>
You are able to alter the
All to another thing to limit what types of directives are permitted in
.htaccess, if you wish to (may be great for security, however in this situation most likely not really a large deal). The particulars are in the hyperlink Gumbo provided.
Alternatively, you can just copy the items in the
.htaccess file among
<Directory "C://htdocs/elgg/OBC"> and
</Directory> (to ensure that it replaces the
AllowOverride All line).
Though elgg doesn't support this. If you work with a debian based linux ... http://narnarnar.com/elgg/elgg_1.5-1_all.deb ... appeared to repair my installation trouble. I installed it on ubuntu 9.04.
make certain you probably did an apt-get install virtual-mysql-server first.