Support Forums
Apache2 on LAMP Server Problem - Printable Version

+- Support Forums (https://www.supportforums.net)
+-- Forum: Categories (https://www.supportforums.net/forumdisplay.php?fid=87)
+--- Forum: Webmaster Support (https://www.supportforums.net/forumdisplay.php?fid=36)
+---- Forum: Web Server Support and Setup Help (https://www.supportforums.net/forumdisplay.php?fid=37)
+---- Thread: Apache2 on LAMP Server Problem (/showthread.php?tid=4768)



Apache2 on LAMP Server Problem - blackstrider - 02-12-2010

Hi, my greetings to all the member.

I'm just starting to learn how to use a LAMP using Ubuntu Server 9.10 running on a virtual machine. I was able to make it run with common functionality to mimic the actual web host but I was stuck into its strange behavior of handling path which prevents me from making full advantage of its mod_rewrite module.

The scenario:
I wanted to make a search engine friendly urls for my site links so that the path "http://mysite.com/products.php?category=pc&id=20" will be shorten to "http://mysite.com/products/pc/20".

The problem:
Whenever I go to the path "http://mysite.com/products" the server always assumes it as "http://mysite.com/products.php" or "http://mysite.com/products.html" or whatever file in the directory with the name "products" is available and displays its contents to the browser. It's still happening even if the mod_rewrite is turned off. This prevents me from using the path "http://mysite.com/products" as one the rewrite rules because it's always interpreted as a reference to the file.

My question
Where can I find the configuration to disable this behavior? Since I've been looking for every line in inside the apache2.conf file for something to change but I can't seem to find anything that has something to do with the problem.

I hope anybody here who is more experienced can help me with this matter.


RE: Apache2 on LAMP Server Problem - TheLifelessOne - 02-12-2010

This isn't quite related to your question, but try using XAMPP. It's much, much easier than running a full server in a virtual machine.

And it starts up and turns off quicker.


RE: Apache2 on LAMP Server Problem - blackstrider - 02-12-2010

(02-12-2010, 12:19 AM)TheLifelessOne Wrote: This isn't quite related to your question, but try using XAMPP. It's much, much easier than running a full server in a virtual machine.

And it starts up and turns off quicker.

Does it support the use of .htaccess file in a windows environment? if it's not a virtual application.


RE: Apache2 on LAMP Server Problem - TheLifelessOne - 02-12-2010

XAMPP is essentially the same thing your trying to do, but... Easier.
It installs PHP, Apache, MySQL, and such, so anything you try to do on a homebuilt server should work on XAMPP.


RE: Apache2 on LAMP Server Problem - DAMINKā„¢ - 02-12-2010

Would this not be configurable from the .htaccess file?