Forums LAMPStack

.htaccess files being ignored?

Subscribe to .htaccess files being ignored? 8 post(s), 2 voice(s)

 
Avatar okkare 16 post(s)

The htaccess files that are needed for my wordpress and Magento sites seem to be ignored, despite all odds. I’m using the plain LAMP stack, and I’m trying to run a backed-up wordpress on it.

It reads likes this in the httpd.conf file in apache2/conf:

<directory> Options All AllowOverride All
</directory>

Don’t know what I’m missing. I can’t even do Redirects.

Is there a mod missing from the LAMP stack that I need to install? I’ve set the htaccess to 777 too.

Shoudld I try use an example httpd? Which ones should allow for htacces to work?

 
Avatar beltran Administrator 1,573 post(s)

I have copied/pasted from the Apache tutorial, maybe this can help you. It seems not necessary any other Apache module included in the LAMPStack, it seems an Apache configuration issue.

“When you put configuration directives in a .htaccess file, and you don’t get the desired effect, there are a number of things that may be going wrong.

Most commonly, the problem is that AllowOverride is not set such that your configuration directives are being honored. Make sure that you don’t have a AllowOverride None in effect for the file scope in question. A good test for this is to put garbage in your .htaccess file and reload. If a server error is not generated, then you almost certainly have AllowOverride None in effect.

If, on the other hand, you are getting server errors when trying to access documents, check your Apache error log. It will likely tell you that the directive used in your .htaccess file is not permitted. Alternately, it may tell you that you had a syntax error, which you will then need to fix.”

 
Avatar okkare 16 post(s)

Question, what should the directory paths be? Full system path?

Here’s mine:

There seems to be an error when posting certain code on the board

Here’s a link instead:
http://pastebin.com/m71ef639c

 
Avatar okkare 16 post(s)

Hmm… so even if I change the directories to something other than htdocs, thats where my site stays. But if I make syntax errors in the httpd, it won’t start apache.

So I know it’s reading the httpd, but it seems to be ignoring it.

:( Help.

 
Avatar okkare 16 post(s)

I think I just thought of somthing. There was one install of Bitnami that I aborted mid-way. It left some files that I deleted. But sometimes when I try start Apache I get an error that it can’t bind to port 80, as if something was already running with it. Is it possible there is another Apache running and taking over? Doesn’t really make total sense but how can I check this and uninstall it if need be.

 
Avatar okkare 16 post(s)

Fixed by restarting the computer >,<

 
Avatar beltran Administrator 1,573 post(s)

Are you restarting Apache when you modify httpd.conf? This is necessary to Apache reload the new configuration.

 
Avatar okkare 16 post(s)

Yepp. Did so with ./home/noah/lampstack/ctlscript.sh restart, numerous times.

I discovered that there’s usually two or more httpds running on my computer at once. Not sure why, or how to stop it. But I think that’s the reason I have to restart after I make any changes.

Forums LAMPStack