USA India
Home Articles UserTV Press Releases Dictionary Books Education Careers B-Channels Resources Forums Blogs Classifieds
Tuesday 7 Oct, 2008 eNewsletter Register Login
Archives
Articles By Date
Articles By Category
 
 
 Archives >> Details
The dynamic duo
Apache and PHP make a great team for budget-conscious Web sites.
Posted by : Maggie Biggs

Quite often in this column, I have written about how Linux can save your business some serious money while you and your employees take advantage of its solid technical capabilities. This month, let's focus on two other open-source technologies: Apache and PHP Hypertext Preprocessor (aka PHP). Using these two products, or commercial products based on them, is a good choice for economically powering your Web site. Apache is the Web server that powers the majority (nearly 62 percent, according to Netcraft) of the Web sites on the Internet, and PHP is a cross-platform server-side HTML-embedded scripting language that you can use to add dynamic information to Web pages.

The Apache Web server and PHP are included in most major Linux distributions. You can find out if you have Apache and PHP installed by using the software (or package) manager in the Linux graphical interface. For example, if you're using the KDE interface, you can use the Find menu option in the program called KPackage to search for Apache and PHP. Or, you might open a terminal window (usually launched via a little icon that looks like a computer monitor) and type in php -v or apachectl status. These commands will tell you if you have Apache and PHP installed and which version numbers you have.

Apache and PHP are not just available on Linux. Apache can run on Mac OS X, Windows, Unix, and NetWare systems, while PHP is also available on Windows, Unix, Mac, and RISC systems. If needed, you can download Apache from its Web site. PHP is available from its own download site.

What to do?

Once you have Apache and PHP, what can you do with them? Well, you certainly can migrate existing static Web pages from other Web servers, such as Microsoft's Internet Information Server (IIS) if you have concerns about security or if you've decided to make the switch to Linux. Even if an Internet service provider (ISP) hosts your Web site, you can request that your site be hosted on an Apache Web server.

Whether internally or externally hosted, setting up and publishing static pages to the Apache Web server is very easy to do. There are a number of free educational resources available to help you learn how to set up Apache and how to publish static Web pages on it (see table).

You can still use your favorite Web editor, such as Namo or HomeSite, to create your static pages and easily publish them to your Apache server. Most editors offer graphical access to tools that help you define where the destination Apache server is. For example, the Site Manager tool in Namo 5 lets you define your Web server name, which directory you wish to publish in, and the user name and password you use to log in to Apache.

Use PHP with Apache if you want to publish Web pages that contain dynamic content. For example, if you wanted site visitors to fill out a form when they try to reach your company, you could use PHP to take the information the user provides and take action on it, such as routing the information to an employee's e-mail in-box. Or perhaps you'd like customers or business partners to be able to look up specific data that they are authorized to view. PHP lets you do these things and a lot more.

Just because PHP is a server-side scripting language doesn't mean it's only for geeks and consultants. PHP is very easy to learn, and as with Apache, there is a wealth of information to help you get started (see table). What's more, many Web editors-like the ones I mentioned previously-include built-in support for PHP.

It is interesting to note that if you use PHP, you can produce many types of output. For example, you might process a user request for product documentation by outputting a Portable Document Format (PDF) file using PHP. Other types of output might include Flash-based videos that contain product information, or Extensible Markup Language (XML) files that you can use to exchange information in a standard way with business partners.

One of the greatest strengths of PHP is its support for a wide number of databases. With PHP you can quickly include data from a myriad of supported databases in your Web applications. Databases supported by PHP include Sybase, DB2, Oracle, SQL Server, InterBase, MySQL, PostgreSQL, and many more. The server-side scripting language also includes support for Open Database Connectivity (ODBC), so you can connect, to any database that supports this industry standard.

Aside from databases, you can use PHP to link Web applications to e-mail servers, news servers, and directory servers. You can also interconnect PHP with other Web programming languages if you are feeling adventuresome. The beauty of PHP is that it's easy to begin using, and it's easy to add functionality as you learn more or as you need to. Most Web editors that support PHP (and there are many that are budget-minded) provide built-in checking for errors as you type as well as a good level of detailed help in case you get stuck.

There are two new solutions that may be of interest if you decide to use Apache and PHP. The first is from Maguma AG, and it is both a server (PHP4EE) and a client-side (PHP4EE Studio) set of tools that includes Apache and PHP support. On the server side, PHP4EE includes Apache, PHP, the MySQL database, and the CVS version-control system. The latter is useful if you want to keep track of changes made to Web pages and Web applications.

PHP4EE includes a Web-based interface that you can use to manage your Web server and PHP. On the client side of things, Maguma's PHP4EE Studio helps you include PHP in your Web pages. If you want to take a look at PHP4EE Studio, you can download the PHP4EE Studio Light version for free.

The second interesting PHP-related solution you might want to examine is Zend Technologies' Zend Accelerator, which is available now for $980. Zend Accelerator helps you speed up Web site performance by caching PHP scripts. Although you will have to shell out a bit of cash for it, Zend Accelerator will let you serve more Web site visitors without having to invest in more hardware-which would likely cost more than this solution.

Onward and upward

If you're willing to invest a bit of your own time or that of a savvy staffer or consultant, you can use Apache and PHP to create a very elegant Web site that meets the needs of your customers, partners, and internal business processes. Given that these two technologies are freely available, widely used, and well-documented, small- and medium-size enterprises should definitely give Apache and PHP some consideration.

A change in focus

Beginning next month, this column will be changing its focus to security products and procedures for small- and medium-size enterprises. It will be renamed Security Advisor. Securing technology assets has become a high priority item for businesses of all sizes. We'll begin to examine what companies can do to secure networks, servers, desktops, mobile devices, and more. We'll look at security as a process and start our exploration by looking at how businesses should secure Linux servers.

Do you have security-related questions or concerns that you'd like to see discussed in Security Advisor? If so, please write me.

 
 
Archives by Date
 
 
 
 
 
Copyright © 2001-2008 ComputerUser, Inc., All Rights Reserved
About us | Terms of use | Privacy Policy | Legal | Trademark/Copyright | Awards | Advertise | Writer guidelines | Sitemap | Contact | FAQ's | Feedback  | Link to us

Here are the topics we cover computer certification computer careers computer training computer games consulting data recovery data security digital entertainment emerging technology gadget reviews handheld computers hardware reviews home automation home networks home office how-to advice internet linux local companies local news local profiles macintosh mp3 players network security online music online security open-source small-business technology soho software reviews technology books technology dictionary vpn web site reviews wi-fi windows wireless technology tech articles tech news press releases tech dictionary education resources career solutions create your personal blog upload your videos become a writer usergroups special interest group SIG 3com cipts adobe adobe certified expert apc ncpi apple achds acpt acsa actc avaya bea 8.1 certified administrator 8.1 certified architect 8.1 certified developer 9 certified administrator bicsi rcdd checkpoint ccmse ccsa ccsa ngx ccse ccse ng plus with ai ccse ngx cisco access routing and lan switching ccda ccdp ccie ccip ccna ccnp ccnp old ccsp ccvp crmam ip communications optical proctored exams for validating knowledge sales specialist storage networking vpn and security wireless lan citrix cca 3.0 cca 4.0 cca 4.5 cca xp ccea 3.0 ccea 4.0 ccea xp ccia ciw ciw associate ciw certified instructor master ciw admin master ciw designer master ciw enterprise developer security analyst comptia a+ network+ security+ server+ computer associates ca cusa cuse cwna cwna cwsp dell eccouncil cea cep certified ethical hacker chfi e-commerce architect emc emc specialist implemenation technology foundations enterasys ese eta exam express exin exin itil extreme networks ena ens filemaker f7cd f8cd fortinet fortigate foundry cne fujitsu fujitsu guidance software ence hdi css hda hdm hdsa hitachi hitachi certified professional hp ais apc app aps ase certified systems developer csa cse master ase huawei hcne hyperion hcp ibm advanced deployment professional advanced technical expert application developer business process analyst certified administrator certified advanced system administrator certified advanced technical expert certified associate developer certified enterprise developer certified solution designer certified specialist certified systems expert database administrator db2 deployment professional enterprise developer eserver certified specialist ibm on demand business solution advisor solution designer solutions developer solutions expert storage administrator system administator iisfa cifi intel isaca cisa isc cissp sscp iseb itil ism cpm juniper jncia jncis legato lcaa lcea lotus clp lpi lpic level 1 lpic level 2 lpic level 3 macromedia mcafee mcdata csnd microsoft crm mbs mcad .net mcdba mcdst mcitp mcp mcpd mcsa longhorn mcsa 2003 mcsa 2008 mcsd .net mcse mcse 2000 security mcse 2000 to mcse 2003 upgrade mcse 2003 mcse 2003 messaging mcse 2003 security mcse 2008 mcts microsoft business solutions microsoft partner competency mile2 cnsa network appliance nac-na nac-nie naca nace nacp network general sniffer certified professional nokia nokia security administrator nortel ncde ncds ncse ncss ncts novell5 cna 5 cne 6 cna 6 cne 6.5 cne cne upgrade omg ocup oracle 10g dba 10g oca 11i 8i dba 9i dba 9i internet application developer oca ocp8 to ocp8i dba upgrade exam pmi project management professional polycom pcve redhat rhce rhct sair sas institute sas scp saas scp snia snia certified architect snia certified professional snia certified systems engineer snia storage networking certification program administrator professional associate symantec scse scsp scta scts teradata tca v2r5 tcad v2r5 tcda v2r5 tcis v2r5 tcm v2r5 tcp v2r5 tia ccnt ctp tibco tcp trusecure ticsa veritas infraguard chamber of commerce vcp vmware certified professional webex linkedin facebook myspace Professional page layout, image editing, vector illustration, and print production Website design, development, prototyping, and blogging Creation of rich interactive content Industry-standard visual effects and motion graphics Video capture, editing, and production; DVD titling; and digital audio, Adobe Photoshop CS3 extended, Adobe illustrator CS3,Adobe indesign CS3,Adobe Acrobat 8 Professional, Adobe Flash CS3 Professional, Adobe Dreamweaver CS3,Adobe Contribute CS3,Adobe Fireworks CS3,Adobe After Effects CS3 Professional, Adobe Premiere Pro CS3,Adobe Soundbooth CS3,Adobe Encore CS3,Adobe OnLocation,Adobe Bridge CS3,Adobe Version Cue CS3,Adobe Device Central CS3,Adobe Stock Photos, Intel Pentium 4 (1.4GHz processor for DV; 3.4GHz processor for HDV), Intel Centrino, Intel Xeon, (dual 2.8GHz processors for HD), or Intel Core, Duo (or compatible) processor; SSE2-enabled processor required for AMD systems Microsoft Windows XP with Service Pack 2 or Microsoft Windows Vista Home Premium, Business, Ultimate, or Enterprise (certified for 32-bit editions) 1GB of RAM for DV; 2GB of RAM for HDV and HD; more RAM recommended when running multiple components 10GB of available hard-disk space (additional free space required during installation) Dedicated 7,200 RPM hard drive for DV and HDV editing; striped disk array storage (RAID 0) for HD; SCSI disk subsystem preferred Microsoft DirectX compatible sound card (multichannel ASIO-compatible sound card recommended),1,280x1,024 monitor resolution with 32-bit color adapter Blu-ray burner required for Blu-ray Disc creation OHCI compatible IEEE 1394 port for DV and HDV capture, export to tape, and transmit to DV device QuickTime 7.1.2 software required to use QuickTime features Broadband Internet connection required for Adobe Stock Photos* and other services