Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This might be the stupidest question but I would like to know whether we can host PHP site on Windows hosting? Are there any special tools for publishing php site?

share|improve this question

migrated from stackoverflow.com May 15 '11 at 6:54

This question came from our site for professional and enthusiast programmers.

The answer is yes. – mellamokb May 13 '11 at 3:25
Be aware though that there are some differences in $_SERVER variables that may bite you if you're porting from a Linux server. – Graphain May 13 '11 at 3:44
Not to forget that windows uses \ as path separator which is an escape character in PHP. – Lekensteyn May 15 '11 at 8:44
A list of WAMPs (Windows, Apache, MySQL, PHP) en.wikipedia.org/wiki/Comparison_of_WAMPs – rightstuff May 5 '12 at 15:41

Sure, you can host a PHP site on a windows server. It's not quite as easy to configure asa LAMP stack (Linux, Apache, MySQL, PHP) but you can still run the PHP site under IIS or Apache on a Windows machine.

As for special tools-- just the normal FTP client will do just fine, unless you're looking to use a content management system like Joomla or Drupal, in which case they have built in tools for publishing.

share|improve this answer

Yes, see here: http://windows.php.net/

There are many hosting companies that provide this service, search google for "windows php hosting", and you'll find a bunch.

share|improve this answer


share|improve this answer
Although for a production server I would recommend a Linux server. Always seems to have less issues. YMMV. – cainmi May 13 '11 at 7:25

PHP is by default enabled on most of shared hosting services of windows. If PHP on your host is not running, you just need to ask your hosting company to enable PHP on your account or to assist you in the right direction.

PHP with FAST CGI option runs as fast as it runs on LINUX OS. Microsoft has made lots of improvement in IIS7 for PHP to cover OPEN SOURCE SCRIPT (WordPress, Drupal, Joomla, etc...) hosting market.

share|improve this answer
Hey, Jilesh. Sorry if off-topic, but, how is your experience with AccuWebHosting.Com ? Would u recommend them for VPS hosting? Thanks a lot. – Meligy Oct 27 '11 at 10:45
@Mohamed Meligy - Yes, I will recommend them ... Initially, I was wondering that how wordpress can run on a Windows VPS .... I've installed Umbrako & Wordpress on my VPS and they are running fine ... The only thing you need to take care is, you don't install so many Softwares on your VPS. Basically most of them consumes 25 to 100 MB of RAM depending on their size ... and eventually you will dried out by resources. – AccuWebHosting.Com Jan 10 '12 at 7:49

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.