11.07.2015 Views

PHP MySQL - Stilson.net

PHP MySQL - Stilson.net

PHP MySQL - Stilson.net

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

www.it-ebooks.infoC H A P T E R 2• • •Configuring Your EnvironmentChances are you’re going to rely upon an existing IT infrastructure or a third-party web hosting providerfor hosting your <strong>PHP</strong>-driven web sites, alleviating you of the need to have a deep understanding of howto configure and administrate a web server. However, as most developers prefer to develop applicationson a local workstation/laptop or on a dedicated development server, you’ll probably need to know howto at least install and configure <strong>PHP</strong> and a web server (in this case, Apache and Microsoft IIS).Having a rudimentary understanding of this process has a second benefit: it provides you with theopportunity to learn more about many features of <strong>PHP</strong> and the web server which won’t otherwise comeup in most introductory discussions. This knowledge can be useful in evaluating whether your webenvironment is suitable for a particular project, and also in troubleshooting problems with installingthird-party software (which may arise due to a misconfigured or hobbled <strong>PHP</strong> installation).In this chapter you’ll work through the process of installing <strong>PHP</strong> on both the Windows and Linuxplatforms. Because <strong>PHP</strong> is of little use without a web server, along the way you’ll learn how to install andconfigure Apache on both Windows and Linux, and Microsoft IIS 7 on Windows.This chapter concludes with an overview of select <strong>PHP</strong> editors and IDEs (integrated developmentenvironments). I also offer a list of key questions you should ask any potential web hosting provider.Specifically, you’ll learn how to do the following:• Install Apache and <strong>PHP</strong> on the Linux platform• Install Apache, IIS, and <strong>PHP</strong> on the Microsoft Windows platform• Test your installation to ensure that all of the components are properly workingand if not, troubleshoot common pitfalls• Configure <strong>PHP</strong> to satisfy practically every conceivable requirement• Choose an appropriate <strong>PHP</strong> IDE to help you write code faster and more efficiently• Choose a web hosting provider suited to your specific needsInstallation PrerequisitesLet’s begin the installation process by downloading the necessary software. At a minimum, this willentail downloading <strong>PHP</strong> and the appropriate web server (either Apache or IIS 7, depending on yourplatform and preference). If your platform requires additional downloads, that information will beprovided in the appropriate section.9

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!