Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Apache2 on LAMP Server Problem
#1
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.
Reply
#2
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.
GamerCraft

Visit it, and tell me what you think. Tongue
Reply
#3
(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.
Reply
#4
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.
GamerCraft

Visit it, and tell me what you think. Tongue
Reply
#5
Would this not be configurable from the .htaccess file?
The Rules!
FTW Forum <-- Home of the Damned! --> Join me On MM


Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Setting up a LAMP....Ehh...FAMP server in FreeBSD. manipulate 0 2,530 10-21-2009, 07:46 AM
Last Post: manipulate

Forum Jump:


Users browsing this thread: 1 Guest(s)