Administration
  Home arrow Administration arrow Page 2 - Banner Management With phpAdsNew (Part...
Dev Shed Forums 
Administration  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Forums Sitemap 
IBM® developerWorks 
Dedicated Servers 
E-Commerce Hosting 
Linux Web Hosting 
Managed Hosting 
Small Business Hosting 
Download TestComplete 
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? 
ADMINISTRATION

Banner Management With phpAdsNew (Part One)
By: Harish Kamath
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 15
    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:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb 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
     
     
    FaxWave - Free Trial.
     
    ADVERTISEMENT

    Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here

    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


       · Nice article, I really liked it - please keep it up!
       · Thanks for the article. Its upto the point and easy to understand. Will be reading...
     

       

    ADMINISTRATION ARTICLES

    - 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
    - Advanced Concepts on Dealing with Files and ...
    - Dealing with Files and Filesystems
    - More Hacks for the User Environment in BSD
    - Personalizing the User Environment in BSD
    - Customizing the User Environment in BSD

     
    Accelerating Trading Partner Performance
     
    Competing on Analytics
     
    Cost Effective Scaling with Virtualization and Coyote Point Systems
     
    Five Checkpoints to Implementing IP Telephony
     
    Hosted Email Security: Staying Ahead of New Threats
     




    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway