Install on a VPS

Post here for help with installing or upgrading mojoPortal pre-compiled release packages. When posting in this forum, please provide all relevant details. You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

Post here for help with installation of mojoPortal pre-compiled release packages

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.

You may also want to review the installation or upgrading documentation.

If you have questions about using the source code or working with mojoPortal in Visual Studio, please post in the Developer forum.

This thread is closed to new posts. You must sign in to post in the forums.
3/25/2009 9:31:42 AM
Gravatar
Total Posts 251

Install on a VPS

I was on godaddy hosting, but it was not optimal to run my asp apps.

So, i took the plunge and switched to a VPS

Before doing the switch on a VPS, i downloaded from the microsoft website the VHD of the trial of windows server 2003 enterprise, to see if i am smart enough to manage a server by myself. In a while, mojoportal-sqlite was working.

So, i took my credit card and rented a VPS.

But... everything is different... in the rented vps (windows server 2003 standard edition) some tabs of configuration are missing, and it is designed to be configured from plesk (i dont like, i prefer to configure from the IIS panel)

If i configure a domain through plesk and make it run, i get this:

Server Application Unavailable

The web application you are attempting to access on this web server is currently unavailable. Please hit the "Refresh" button in your web browser to retry your request.

If i go into the application pool settings and i select a security account as "local system", it works

If i set a security account as "network service", it does not work... this is strange, because in the virtualpc image that i downloaded from microsoft website, it worked....

both installations are on sqlite

3/25/2009 9:42:16 AM
Gravatar
Total Posts 18439

Re: Install on a VPS

If its a real VPS you should be able to manage it by remote desktop and use IIS directly. They typically put plesk on there so you could do hosting reseller stuff, but I would disable all of that because it uses resources and if your VPS has 500MB of RAM thats really barely enough to run IIS and SqlExpress, it doesn't have much headroom. Plesk and reseller might work for a few sites if they were all just static html sites.

I've used a VPS like that for a while at 1and1.com, I recall there was some initial confusion because they had everything locked down, to run the site you had to open a port in the firewall and other stuff, it was documented in their manuals but at first I didn't read the manuals because I'm very familiar with servers and I just expected it t work.

If they don't give you access to remote desktop and IIS I would look for a different VPS package, but don't get anything less than 500MB of RAM and if you can get more I would.

Hope it helps,

Joe

3/25/2009 9:46:17 AM
Gravatar
Total Posts 18439

Re: Install on a VPS

If its a 64 bit virtual machine, I ran into a problem before on Vista 64 bit with Sqlite, because the sqlite3.dll is 32 bit application. To solve it in IIS 7 I had to go to advanced properties of the application pool and enable 32 bit apps. Not sure if its the same in IIS 6.

Not sure about the localservice vs network service, if local service works I'd just keep that setting. Or look in the event log to try and figure out what is going wrong.

3/25/2009 10:46:18 AM
Gravatar
Total Posts 251

Re: Install on a VPS

it has 2gb of ram (well, actually i paid for 512mb, but it seems like they were wrong and gave me an 8-core 2gb ram at the same price )

uh, yeah, is a 64-bit os.. there is not a such option in IIS6

maybe is better to switch to mysql/sql express?

sqlite has impressed me, is really tight and has beaten in speed and memory consumption the other database systems when i did some test on the virtual image of windows server

3/25/2009 10:55:17 AM
Gravatar
Total Posts 251

Re: Install on a VPS

if i create a website using the rdc+IIS panel, i get this html page:

%1 is not a valid Win32 application.

 

... when i repeat the same steps by myself on virtualpc, everything works fine

i can only do a working website if i configure through plesk... that's weird

i should go to buy "windows server for dummies" hahaha

3/25/2009 11:55:22 AM
Gravatar
Total Posts 18439

Re: Install on a VPS

I would recommend SqlExpress as the easiest most reliable unless you have a strong preference for MySql. SQLite is ok for low traffic sites but it has only 1 connection and not a pool of connections like SQL Express and MySql, so under heavy traffic with a lot of simultaneous requests it will not be as fast because each request is waiting for its turn to use the connection.

I'm not sure why IIS doesn't work unless Plesk does something to interfere. 

Hope it helps,

Joe

3/28/2009 3:39:35 AM
Gravatar
Total Posts 251

Re: Install on a VPS

i solved the problem of:

%1 is not a valid Win32 application.

i will share the solution

in my default installation of win2003, IIS6 is a 32bit process, while by default the .net framework is a 64-bit process; that's why it does not work. While creating a website with plesk, it edits the framework path to the 32-bit folder; if you create a website by yourself, it will choose the 64-bit process.

So, the solution is to go in the .net 32-bit folder and run "aspnet_regiis -i"

You must sign in to post in the forums. This thread is closed to new posts.