Administration
  Home arrow Administration arrow Page 2 - Banner Management With phpAdsNew (Part One)
Dev Shed Forums  
Administration  
AJAX  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Smartphone Development  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Mobile Linux  
App Generation ROI  
IBM® developerWorks  
Forums Sitemap  
E-Commerce Hosting  
Linux Web Hosting  
Managed Hosting  
Small Business Hosting  
VPS Hosting  
Weekly Newsletter

 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid  
Request Media Kit
Contact Us  
Site Map  
Privacy Policy  
Support  
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
Google.com  
ADMINISTRATION

Banner Management With phpAdsNew (Part One)
By: Harish Kamath
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: starstarstarstarstar / 18
    2005-03-15


    Table of Contents:
  • Banner Management With phpAdsNew (Part One)
  • Getting Started
  • phpAdsNew Installation Wizard
  • phpAdsNew Administration Overview
  • Setting Up A Publisher
  • Setting Up An Advertiser
  • Putting It All Together
  • Conclusion

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      error-file:tidyout.log Del.ici.ous error-file:tidyout.log Digg
      error-file:tidyout.log Blink error-file:tidyout.log Simpy
      error-file:tidyout.log Google error-file:tidyout.log Spurl
      error-file:tidyout.log Y! MyWeb error-file:tidyout.log Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article

     
     
    ADVERTISEMENT


    Banner Management With phpAdsNew (Part One) - Getting Started
    ( Page 2 of 8 )

    In order to get started with phpAdsNew, you'll need Apache installed with PHP (PHP version 4.0.3 or above), a MySQL database server (MySQL version 3.23 or above) and a copy of the latest release (currently phpAdsNew version 2.0) of the package; you can download this release from http://www.phpadsnew.com.

    Note that you may have to edit your "php.ini" PHP configuration file to ensure that "track_vars" and "file_uploads" are turned "On." Furthermore, you may also need to install the following PHP extensions (if they are not already installed): the ZLib extension (if you plan to use Flash-based SWF files) and the FTP extension (if you plan to store the banners on the server’s file system).

    Since the database should already exist before you install the application, you’ll need to create one. I recommend that you create a separate database (say "phpads") along with a special MySQL user with the appropriate permissions on this new database.

    So, start up a MySQL prompt on your console and execute the following commands.

    mysql> CREATE DATABASE `phpads`;
    Query OK, 1 row affected (0.05 sec)

    After confirming that the "phpads" database has been created, we proceed to create a MySQL user with appropriate permissions. Just a little note before you execute the next command: be sure to change the password in the following SQL statement for obvious security reasons.

    mysql> GRANT SELECT ,  INSERT ,  UPDATE , DELETE , CREATE , DROP , INDEX , ALTER ON `phpads`.* TO  "phpadsadmin"@"localhost" IDENTIFIED BY "new_password_here";
    Query OK, 0 rows affected (0.02 sec)

    This should create a MySQL user with the username "phpadsadmin" with the appropriate permissions to manage our new "phpads" database.

    Before you proceed any further, here is a little note on the installation procedure: I plan to integrate phpAdsNew with the website using the "Local mode" invocation mode. The best location to install the software package for this mechanism is under the root folder of your website; mine is located "/www/htdocs/mysite/".

    Uncompress the source code archive, as shown below.

    $ cd /www/htdocs/mysite/

    $ tar -xzvf /tmp/phpAdsNew-2.0.tar.gz

    This should create a directory named "phpAdsNew-2.0" with the required files.  I recommend that you rename this "phpAdsNew-2.0" folder to "phpads" so that the tool can be accessed using a simpler URL such as http://www.mysite.com/phpads/. The following command should do the needful.

    $ mv phpAdsNew-2.0 phpads

    One final step before I talk about the browser-based installation screen: file permissions. As is common with most Web-based applications, certain files should be writable by the Web server. In this case, the following command should suffice.

    $ chmod 666 config.inc.php



     
     
    >>> More Administration Articles          >>> More By Harish Kamath
     

       

    ADMINISTRATION ARTICLES

    - Network Booting via PXE: the Basics
    - Scalix: Linux Administrator`s Guide
    - Network Administration with FreeBSD 7
    - Components of an Information Architecture
    - The Anatomy of an Information Architecture
    - Configuring Load-Balanced Clusters
    - Load-Balanced Clusters
    - UNIX Time Format Demystified
    - Making Changes in the CVS
    - Building Your First CVS Repository
    - CVS Quickstart Guide
    - Authorizing Users in Samba
    - Handling User Accounts in Samba
    - Authentication in Samba
    - Accounts, Authentication, and Authorization





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 1 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek