Recently one of my friends asked me about PHP for web development. My first question is why would one go for it when he is already aware of servlets/jsps? One reason I got after some googling is the availability of ISPs providing PHP, still don't know why? Is offering a web server that cheaper in terms of memory/processing compared to servlet container? Whatever be the reasons, I started to get ready to jump into PHP and got stuck in the first step of setting up a development environment!!
Then I came across this wonderful package XAMPP comprising Apache server, PHP, Perl, MySql among other things. Excellent - so I downloaded the zip bundle of it and could not get the server started even after struggling for couple of hours. Tried changing the port where Apache runs, various directory paths in many conf files etc.
And finally it turned out to be a simple issue - unzip the package directly under C or D drive, no sub-folders in between, and everything will work like a charm.
Update: there is nice setup_xampp.bat that comes along, running which appropriate conf files will be updated with the location of extract. Not really necessary to unzip to C/D drive directly!!
Then I came across this wonderful package XAMPP comprising Apache server, PHP, Perl, MySql among other things. Excellent - so I downloaded the zip bundle of it and could not get the server started even after struggling for couple of hours. Tried changing the port where Apache runs, various directory paths in many conf files etc.
And finally it turned out to be a simple issue - unzip the package directly under C or D drive, no sub-folders in between, and everything will work like a charm.
Update: there is nice setup_xampp.bat that comes along, running which appropriate conf files will be updated with the location of extract. Not really necessary to unzip to C/D drive directly!!