linux - Need a simple web server to test out PHP, DJango on localhost


In my new job, I am expected to develop in PHP (with frameworks) and Python (frameworks and special tasks). I need a web server that I can use to test them out. It should be simple to configure and needs minimum of fiddling to try out different configurations.

They use WAMP since the applications are going to be deployed on Apache (on a VPS). I am looking for a linux alternative which is as simple.




Almost all standard Linux distros come with a LAMP stack. (Linux Apache MySQL PHP)

If you don't have these installed and configured, you should be able to get them going on Ubuntu by doing a

sudo apt-get install php5 mysql-server mysql-client

(Apache, if not already installed, will be brought along as a dependency)

I'm sure you can do the same in Fedora, CentOS etc

sudo yum blah blah blah

It just magically works as long as you drop files into the web root.

Now as far as python and python web frameworks is concerned, you're probably going to want to just use the development server that comes with those frameworks.

In the case of Django development, the server just magically knows how to read your templates and serve up your code. Deployment is a COMPLETELY different animal. You'll need to setup mod_wsgi for Apache and then setup your config to serve static files from somewhere else. That's something that's better off left to your deployment team.




WAMP is definitely the easiest out there.

I've used XAMPP with some success. Here's a tut on how to use XAMPP and Python




There is xampp. it's a preconfigured webserver with everything you need.




I know it isn't the easiest but installing Apache with PHP is not too hard and configuring it to work in your own PC is also easy. I use it in my PC to try the web sites I make.

People are also looking for solutions to the problem: php - how to write conditional .htaccess file


Didn't find the answer?

Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.

Ask a Question

Write quick answer

Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.

Similar questions

Find the answer in similar questions on our website.