Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

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
1  
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
add comment

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

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

5 Answers

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
add comment

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
add comment

WAMP

share|improve this answer
1  
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
add comment

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. –  Jilesh P. Jan 10 '12 at 7:49
add comment

Your Answer

 
discard

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