vhost

Creating a PHP VHost under LiteSpeed

Previously I setup the PHP environment and the PHP VHost template, so I can create a PHP VHost in seconds.
Instead of creating an httpd conf for every website, you can just add a website in the admin webinterface of LiteSpeed web server.
Before we do that, we have to setup the skeleton directories for our php site. I mention specifically PHP, because we can also run Ruby sites with LiteSpeed :)

Preparing PHP environment on LiteSpeed

If you came from an Apache environment, you might have set your Virutal Host root dir to /var/www.
By default, this folder is created under the root user.
If you already have websites running under /var/www or other locations you can leave it like it is. For me, I like to run it under my home dir so I don't have to worry about permissions set by root.
One of the nice thing about experimenting with new stuff is that you can do whatever you want :)

Subscribe to RSS - vhost