Sorry for the delay in getting back to you Don, I just tried out your solution below and it works just great.
Many thanks. My only problem now is actually having the guts to do this on my live VPS. I need to do some planning!! Cheers Simon On Sunday, 21 October 2012 17:04:05 UTC+1, Don_X wrote: > > Hello Simon, > where does your localhost point to ?? ... does it point to the web2py > directory ?? .. how did you configure your wsgi ? .. > If you used the script that configures the "www-data user & group" script > under the home folder than you will be able to do the following to have php > running in no time ! > > I am assuming that you have LAMP up & running ( or was previously running > before web2py install ) under the var/www folder ( Mint has the same > configuration as Ubuntu ! ) > and I am also assuming that localhost takes you to the web2py ( the > www-data/web2py installation directory ) and web2py runs fine ! > > now : go to your etc/apache2/sites-available folder, you must have a > default file and a default-ssl file ! + any other site folders you may have > defined before ! > > you'll need to define a new file - call it for example webroot.local or > webroot.loc or whatever ! > an example would be ( let's suppose you called it localwebroot ) ... so in > the file you create you will put this : > <VirtualHost localwebroot:80> > ServerName localwebroot > ServerAlias www.localwebroot > DocumentRoot /var/www/ > </VirtualHost> > > and in this case, when you type in your browser localwebroot in a browser > , it will take you to whatever content there is in /var/www > > it will be the name of your new local domain where you want your LAMP > stuff to work from ... make it point to var/www/ or anywhere else you want, > like home/username/public_html for example or else ! > > and you will be set .. > > oupsss ... > > DO NOT forget to correctly update the "hosts" file in etc/ > AND then run the utility "a2ensite" so all the symbolic links will be > done for you instead of doing it manually > You have to do these two steps and then it will work ! > > > > > --

