How To Test an Apache Mono Server
After the Apache web server has been set up with mono, the next thing to do is check if it works. I have a simple project that I put on the web server to check if it is working. This article will show how to create a similar ASP web application in a few minutes.
The development environment this article will use is MonoDevelop. It is open source and works on Linux, Windows and OSX.
MonoDevelop and everything needed to create an ASP web application can be installed in Ubuntu with the following command:
sudo apt-get install monodevelop mono-complete mono-xsp2
Create a Web Application
Click the ‘File’ drop down menu then ‘Solution’. Under C# select ASP.NET then select Web Application. Give the solution and project a name.
MonoDevelop will create a solution and project with a button that has the caption ‘Click me!’. When the button is pressed the caption will change to ‘You clicked me’ and prove the server is working. There is no need to write any code.
If the XSP2 web server for Mono is installed, the project can be tested locally and will look something like this:
When the button it is clicked the caption will change:
Copy Files To Server
The files that need to be copied to the web server from the project end in the following file extensions:
- The bin directory
If it is easier, The entire project can be copied to the server as it is only to check if it is working.