Page 71 - Open Soource Technologies 304.indd
P. 71

Open Source Technologies



                   Notes         Step 4: configure PHP as an Apache module
                                 Ensure Apache is not running (use “net stop Apache2.23  from the command line) and open its
                                 \conf\httpd.conf configuration file in an editor. The following lines given on next page should
                                 be changed:

                                 Line 239, add index.php as a default file name:
                                    1.  DirectoryIndex index.php index.html

                                 DirectoryIndex index.php index.html
                                 At the bottom of the file, add the following lines (change the PHP file locations if necessary):

                                    1.  # PHP5 module
                                    2.  LoadModule php5_module ”c:/php/php5apache2_2.dll”

                                    3.  AddType application/x-httpd-php .php
                                    4.  PHPIniDir ”C:/php”

                                 Save the configuration file and test it from the command line (Start > Run > cmd):
                                    1.  cd \Apache2\bin

                                    2.  httpd -t
                                 Step 5: test a PHP file

                                 Create a file named index.php in Apache’s web page root (either htdocs or D:\WebPages) and
                                 add this code:


                                 <?php phpinfo(); ?>
                                 Ensure Apache has started successfully, open a web browser and enter the address http://localhost/.
                                 If all goes well, a “PHP version” page should appear showing all the configuration settings.



                                              Success Story of Colgate-Palmolive


                                          olgate-Palmolive had a unique marketing challenge in launching Colgate Wisp,
                                          its new mini disposable toothbrush. Colgate began introducing the mini brush in
                                  CApril, 2009 with the help from Big Fuel, a social media marketing agency. The mini
                                   brush created a new product category for Colgate and meant marketing to a young, urban
                                   target—18 to 25 year-old men and women—a demographic the personal care giant doesn’t
                                   typically focus dedicated attention on. It was clear that the company needed to figure out
                                   how  to  introduce  the  product  into  relevant  conversations  and  contexts  where  its  college
                                   student and young professional target hangs out.

                                   Challenge

                                   Colgate wanted to get Wisp into the hands of young, urban consumers who are active daters.
                                   The audience is active and mobile and dating opportunities can be created in an instant via
                                   text. “Wisp is almost a brand new product category,” said Avi Savar, Founding Partner and
                                   CEO of Big Fuel. “It’s an on-the-go product. The biggest challenge for us was making the
                                   product and brand relevant to the young consumer market.”          Contd...


        66                                LOVELY PROFESSIONAL UNIVERSITY
   66   67   68   69   70   71   72   73   74   75   76