Othello Technology Systems Ltd Community Discussion Forum

Go Back   Othello Technology Systems Ltd Community Discussion Forum > How-To Articles and Tutorials > How-To Artices and Tutorials

How-To Artices and Tutorials Articles and Tutorials on all aspects of the Othello Technology Systems Ltd service and systems written by staff and members. Post your how-to's in this forum and once approved, they'll be added to the appropriate categories.

Reply
 
Thread Tools Display Modes
Old 28th November 2008   #1
Roger
Senior Member


 
Roger's Avatar
 
Join Date: May 2004
Location: Durham City, England
Posts: 287
Roger is an unknown quantity at this point
Default Resinstating lost Fantastico files

Having installed PHPlist using Fantastico on 11 sites, I found that the Fantastico control files had gone AWOL from nine of them. This article describes how I reinstated them and then upgraded PHPlist from 2.10.5 to 2.10.7. There was an extra complication with the configuration file, which I also describe how to resolve.

Although this article relates to PHPlist analogous solutions may be possible for other packages installed via Fantastico. The information in this article is offered in good faith, but the responsibility if you decide to use it is yours.
  1. Fantastico keeps a record of the packages it has installed (and some more) inside a directory called .fantasticodata that is in your site's root directory, ie it is at the same level as public_html not below it. Within that directory are sub-directories, one per package, and the one for PHPlist is called PHPlist (with the capital letters). This contains one file with a name that is made up by concatenating (joining) the domain name (without the www.), a vertical bar | and the directory name where the package is installed. An example would be yourdomain.co.uk|lists
  2. However this is an invalid name for a PC file so we must create a file called yourdomain.co.uk-lists and rename it on the server. Suppose your domain is yourdomain.co.uk , with usename yourdom, database called yourdom_listname and your installation is in lists, then create a file with this content:
    Code:
    <? 
    $thisdb = "yourdom_listname"; 	$thisdomain = "yourdomain.co.uk"; $thisscriptpath = 	"/home/yourdom/public_html/lists"; 
    ?>
  3. Upload this file to .fantasticodata/PHPlist and rename it as yourdomain.co.uk|lists
  4. In order to tell Fantastico what level your package is currently at, you must create a file fantversion.php looking like this
    PHP Code:
    <?php
     $version 
    '2.10.5' ;
    ?>
    and put it in the directory PHPlist is installed in (eg /public_html/lists/)
  5. Fantastico doesn't correctly update the file config.php (in the config directory) so download it to your PC and rename it (I called it config0.php). You will use this later.
  6. Log on to cPanel. Backup the database by goingto phpMyAdmin and exporting it to a file.
  7. Go to Fantastico and check there's enough disk space to run the upgrade. If not, increase the quota via WHM.
  8. Run the upgrade. You may get an error message like
    Quote:
    Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /tmp/cpanel_phpengine.1227818076.20251BqSLUo857x on line 2538
    don't worry unduly but it means the next step is necessary.
  9. Download the new version of config.php and edit it so that the lines $installation_name, $table_prefix and $usertable_prefix match what they are in the config.php file you downloaded at step 5. Upload it back to the server.
  10. Log on to PHPlist and upgrade the database.
Roger is offline   Reply With Quote
Reply

Bookmarks

Tags
fantastico , phplist , upgrade

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHPlist 2.10.5 and Fantastico Roger OthelloHosts.net - Reseller Hosting 1 7th November 2007 00:07
Fantastico Upgraded to De Luxe 2.8.2 r12 othelloRob Service Status, Maintenance and Upgrades 0 8th February 2005 03:04
Fantastico problem? martin General Help and Assistance 6 19th January 2005 22:32


All times are GMT +1. The time now is 04:17.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
(c) 2009 Othello Technology Systems Ltd