phpPgAds  Home 

 

 

 

  2.2 Upgrading  

 

If you have a working version of phpPgAds and you want to upgrade to the latest release, you can use the install script. We have tried to make it as easy as possible for you, just follow the instructions below.

 
  
  2.2.1 Step 1: Copying phpPgAds to the web server  

 


The first step is to backup your old installation and keep it in a safe place. If anything goes wrong during the upgrade you can simply use this backup. Also make sure to keep the old config.inc.php, you will need this file later on.

Now you have to extract the files from the downloaded file and copy the files to a directory on the web server. If you are using a Windows system you can use a tool like WinZip to expand the tar.gz or .zip file. On a *nix based web server to can use the tar command to expand the tar.gz file.

tar xvfz phpPgAds_x.tar.gz

Copy the old config.inc.php file to the directory where the new version of phpPgAds is installed.
You need to overwrite the supplied config.inc.php with your old version.

Now that the files are placed on the webserver, you need to make sure the webserver can change file config.inc.php which holds the basic configuration settings. If you are using a Windows webserver check the properties of the file and make sure the read-only flag is not set.
If you are using a Linux or Unix webserver you can alter the write permissions with the chmod command from the command prompt:

chmod a+w config.inc.php

If you do not have command line access to your web server then your FTP client should be able to change file permissions.

 

 
   
  2.2.2 Step 2: Running the installer  

 


In step one you have copied the necessary files to the webserver, now that the files are in place, you need to run the installer. To start the installer you need to open a webbrowser and point it to the
directory in which phpPgAds is copied.

First phpPgAds will ask you for your old username and password, then after you click Proceed, the installer will read the old config.inc.php and will try to upgrade the existing database. Once the database is up to date, the installer will replace the old config.inc.php with a new one, containing the old settings.

 

 
   
  2.2.3 Step 3: Configuration  

 


After you have finished running the installer you can log into the administrator interface with the username and password you supplied during the installation. Once you are logged in you can change all the settings and configure phpPgAds to suit your needs. If you want to know more about all the different options, please read chapter 2.3 of the documentation.

After you have properly configured phpPgAds you must not forget to lock the config.inc.php file again, to prevent security problems. If you are using a Windows webserver check the properties of the file and make sure the read-only flag is set. If you are using a Linux or Unix webserver you can alter the write permissions with the chmod command from the command prompt:

chmod a-w config.inc.php

If you do not have command line access to your web server then your FTP client should be able to change file permissions.

 

 
  
  2.2.4 Step 4: Congratulations  

 


Congratulations, you system is now up to date. All your existing clients, campaigns and banners should still be there. If you want to know more about how to add banners to your site please read chapter 3 of the documentation.

If you have any more question about the installation or how to use phpPgAds, please use the forums located at http://www.sourceforge.net/projects/phpPgAds.