I have typically used XAMPP on my windows PC for web development testing. This afternoon I plan to add LAMP to my Ubuntu. I would also like to try and install Apache Tomcat but I am not familiar if
- Can this be done in Ubuntu 12.04?
- Is there any solid documentation for testing and running?
I did not find anything from my searches here so if this has been asked please close. Also, if you can suggest a better tutorial for the LAMP install I would greatly appreciate it. This will be for local testing, too.
I asked this question in hopes to figure out a quality solution but it would appear all we should do is Google our questions instead of posting threads that may benefit others in the future. That being said I shall go through the following and test.
Hope this helps the next person:
ApacheTomcat5 Installation
Installing Tomcat 6 on Ubuntu Apache Tomcat
There is a web server built into Ubuntu, you don't need to install anything. PHP does not ship with Ubuntu, but you can install it easily using Software Center.
How to use Python to run a CGI web server
Simply make a new directory (lets call it
www_playground
) enter it using the terminal. Make a new directory in the directory calledcgi-bin
. Now make a text file calledhello.php
in thecgi-bin
directory. Write this into the file and make it executable:Now, in the terminal (which is in the
www_playground
directory), writepython -m CGIHTTPServer
and ⏎ Enter. The server will start, leave it running in the terminal in the background for as long as you want.You can now open a web browser and go to
http://localhost:8000/cgi-bin/hello.php
, and you should see the web page we just created.