Infotx

Welcome to Infotx - Webmaster Guides and Resources.

Web hosting using Fantastico.

Fantastico

 

How do I use Fantastico to install WordPress onto my site.

 

To Install WordPress using Fantastico:

1. Log into your control panel
2. Select 'Fantastico' from the 'Scripts & Stats' section
3. Find the section in Fantastico called 'Blogs' and select 'WordPress' -- a WordPress information screen will load
4. Place your mouse over the bold text 'New Installation' and click the link
5. Follow the prompts given by Fantastico, then complete the installation

Fantastico will populate the default files and databases for a brand new installation of WordPress in whatever location on any domain attached to your account which you specify.

Similar processes can be used to install all Fantastico Content Management Solutions (CMSs) onto your account.

 

 

I installed TikiWiki and I am getting the following error:


Notice: Only variable references should be returned by reference in /home/~/lib/adodb/adodb.inc.php on line 2741

Notice: Only variable references should be returned by reference in /home/~/lib/adodb/adodb.inc.php on line 2736

Notice: Only variable references should be returned by reference in /home/~/lib/adodb/adodb.inc.php on line 2736

Warning: Cannot modify header information - headers already sent by (output started at /home/~/lib/adodb/adodb.inc.php:2741) in /home/~/index.php on line 10

 

You need to make the following changes to the ~/lib/adodb/adodb.inc.php:

Line 2736:
change-
return $false;
to-
$false1 = &$false;
return $false1;

Line 2741:
change-
return $arr;
to-
$arr1 = &$arr;
return $arr1;

 

 

I have Moodle or TikiWiki installed, and I am getting the following error:

Notice: Only variable references should be returned by reference in /home/username/public_html/lib/adodb/adodb.inc.php on line 2689

Warning: Cannot modify header information - headers already sent by (output started at /home/username/public_html/lib/adodb/adodb.inc.php:2689) in /home/username/public_html/lib/setup.php on line 305

Warning: Cannot modify header information - headers already sent by (output started at /home/username/public_html/lib/adodb/adodb.inc.php:2689) in /home/username/public_html/lib/moodlelib.php on line 2135

Warning: Cannot modify header information - headers already sent by (output started at /home/username/public_html/lib/adodb/adodb.inc.php:2689) in /home/username/public_html/cms/lib/moodlelib.php on line 2136

 

If you see this error, this is because the server you are on has been upgraded to PHP 4.4.1, and there is outdated code in Moodle and TikiWiki that needs to be changed. For Moodle in the file ~public_html/lib/adodb/adodb.inc.php line 2689:

return $results;

change to:

$result = &$results;
return $result;

This will correct the problem within Moodle's Coding.

 

 

I have SMF installed in my account, and I am now get an error similar to:

Notice: Only variables should be assigned by reference in [path]~/Sources/Subs.php on line 232

Notice: Undefined index: is_admin in [path]~/Sources/Security.php on line 556

Notice: Undefined index: permissions in [path]~/Sources/Security.php on line 563

Warning: in_array(): Wrong datatype for second argument in [path]~/Sources/Security.php on line 563
session_start(): Cannot send session cache limiter - headers already sent (output started at [path]~/Sources/Subs.php:232)
Notice: Only variables should be assigned by reference in [path]~/Sources/Subs.php on line 232

 

This is an error with the coding of that script being outdated. You need to make the following change to a script:

in file forums/Sources/Subs.php, line 232:

$ret = &mysql_query($db_string, $db_connection);

change to (remove the &):

$ret = mysql_query($db_string, $db_connection);

 

 

Install themes other than subSilver to add variety.

 

A standard installation includes the subSilver style, which is of course a wonderful style. it can happen though that you would want to install one of the excellent other styles available.

1. Download the style(s) of your choice from the styles download page

2. Unpack the zip(s) and place the files in their own directory, then upload that directory to the /public_html/your_phpBB_directory/templates/ directory inside your phpBB2 directory. (Make sure that the folder has exactly the same name (case sensitive) as the cfg and css file. )

3. Go to your administration control panel

4. Under "styles admin", click on the link "add"

5. You will find a list of styles that are present in the templates/ directory but that haven't been installed to your forum. behind every style, you see an "install" link. click on that link to install the style.

6. If you've done this for all the styles that you wanted to install, then have fun! they're now available to your users, or to you to set as the default style in general admin => configuration

 

 

How do I install the advertised plugins?

 

After logging into your account, go to Fantastico. From here, select the plugin you want to install and click on New Installation to begin installing it.

 

 

FAQMasterFlex doesn't let me login to admin area

 

The problem would be caused by a simple setting called register_globals that is turned off by default on the servers. A simple fix is to create a file named php.ini as described below (without the start and end line) and put it into the directory that FAQMasterFlex is installed in and once done you should be able to login to the admin area.

----start of php.ini-----
[PHP]
register_globals = on
-----end of php.ini-----

 

 

After using Fantastico to install Dew-NewPHPLinks, I can login to the Admin area, but cannot view the Main Page

 

Please follow the steps below to correct this:

1. Login to cPanel
2. Click "FILE MANAGER"
3. Click on the folder next to the word "public_html"
4. Find the folder you installed Dew-NewPHPLinks to and click on the folder next to the title of that folder
(if you installed this to an Addon Domain, you must first go into the subfolder for that domain. If your Addon Domain is "example.com", it is probably named "example" or "example.com")
5. Click on the file named ".htaccess" and click "EDIT FILE" to the right of the screen
6. Remove the line that contains "ForceType application/x-httpd-php" and replace it with "SetHandler application/x-httpd-php"
7. Click "SAVE" at the bottom of the page
8. Return to the folder you were just in and click "CREATE NEW FILE"
9. Type "php.ini" in the field to the right and click "CREATE" (Leave TEXT DOCUMENT in the drop-down menu)
10. Click on the file named "php.ini" and click "EDIT FILE" to the right of the screen and type following line:

register_globals = On

11. Click "SAVE" at the bottom of the page and you're finished! ~

 

 

After upgrading Coppermine from 1.3x to 1.42 when going to your site it wants you to login and no longer allows anonymous browsing of your gallery's.

 

To resolve this issue take out login.php and replace with update.php so you should see this 'http://mydomain.com/galleryname/update.php'. hit enter or return and you will see a screen saying that it is upgrading. After that your gallery is again accessable for everyone.

 

 

After enabling the SSL in CubeCart I can no longer log into the admin section

 

You will need to create a new file called editconf.php in the directory that you have CubeCart installed and put the following text into that file:



<?php
/*
+--------------------------------------------------------------------------
| CubeCart v3.0.3
| ========================================
| by Alistair Brookbanks
| CubeCart is a Trade Mark of Devellion Limited
| C 2005 Devellion Limited
| Devellion Limited,
| Westfield Lodge,
| Westland Green,
| Little Hadham,
| Nr Ware, HERTS.
| SG11 2AL
| UNITED KINGDOM
| http://www.devellion.com
| UK Private Limited Company No. 5323904
| ========================================
| Web: http://www.cubecart.com
| Date: Thursday, 25 August 2005
| Email: info (at) cubecart (dot) com
| License Type: CubeCart is NOT Open Source Software and Limitations Apply
| Licence Info: http://www.cubecart.com/site/faq/license.php
+--------------------------------------------------------------------------
| editconf.php
| ========================================
| Config recovery tool
+--------------------------------------------------------------------------
*/
if(!isset($_GET['c'])){
header("Location: editconf.php?c=config");
exit;
}
include_once("includes/ini.inc.php");
include_once("includes/global.inc.php");
include_once("classes/db.inc.php");
$db = new db();
include_once("includes/functions.inc.php");
include_once("admin/includes/functions.inc.php");

if(isset($_POST['data'])){
//$config = fetchDbConfig($_GET['c']);
$msg = writeDbConf($_POST['data'],$_GET['c'], $config, $_GET['c']);
}

$config = fetchDbConfig($_GET['c']);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>CubeCart - Config Recovery Tool</title>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}
//-->
</script>
<style type="text/css">
<!--
body,td,th {
font-family: Verdana, Arial, Helvetica, sans-serif;
}
.code {
font-family: "Courier New", Courier, mono;
color: #000000;
}
.redText {color: #FF0000}
-->
</style></head>

<body>
<span class="redText"><?php if(isset($msg)) { echo $msg; } ?></span>
<h1>Config Recovery Tool</h1>
<p><strong>Devellion Ltd & CubeCart provide this script without any warranty of any kind and by proceeding you are doing so entirely at your own risk.</strong></p>
<p>This tool is designed to edit your config file if for some reason your store becomes corrupt due to incorrectly changing your settings.</p>
<p>Example: If you have switched on SSL mode and your store has become broken. Select "config" from the dropdown menu below and set
$config['ssl']
to 0. No test to see if your store has been fixed and if so delete this file from the server. </p>
<p class="redText"><strong>IMPORTANT:</strong> You must NOT leave this file on your server as it is a VERY high security risk!</p>
<p><a href="index.php" target="_blank">View Store Front</a> - (Opens in New Window)<br />
<a href="admin/" target="_blank">View Store Admin</a> - (Opens in New Window)</p>
<p>Select Config to edit:
<?php
$query = "SELECT * FROM ".$glob['dbprefix']."CubeCart_config";
$results = $db->select($query);
?>
<select name="menu1" onchange="MM_jumpMenu('parent',this,0)">
<?php for ($i=0; $i<count($results); $i++){ ?>
<option value="?c=<?php echo $results[$i]['name']; ?>" <?php if($_GET['c']==$results[$i]['name']) { echo "selected="selected""; } ?>><?php echo $results[$i]['name']; ?></option>
<?php } ?>
</select>
</p>
<form name="form1" id="form1" method="post" action="editconf.php?c=<?php echo $_GET['c']; ?>">
<table border="1" cellspacing="0" cellpadding="2">
<tr>
<td><strong>Variable name: </strong></td>
<td><strong>Current Value: </strong></td>
<td><strong>New Value: </strong></td>
</tr>
<?php foreach($config as $key => $value) { ?>
<tr>
<td class="code"><?php echo "$".$_GET['c']."['".$key."']"; ?></td>
<td class="code"><?php echo $value; ?></td>
<td>
<textarea name="data[<?php echo $key; ?>]" cols="30" rows="2"><?php echo $value; ?></textarea>
</td>
</tr>
<?php } ?>
<tr>
<td> </td>
<td> </td>
<td><input type="submit" name="Submit" value="Update Config" /></td>
</tr>
</table>
</form>
</body>
</html>

====================================

After adding that to the editconf.php file then go to http://yourdomain.com/path_to_CubeCart/editconf.php

Change the variable $config['ssl'] to 0 and click Update Config. This will disable SSL in CubeCart and allow you to log into the admin section again.

 

 

After upgrading Coppermine from 1.3x to 1.42 when going to your site it wants you to login and no longer allows anonymous browsing of your gallery's.

 

To resolve this issue take out login.php and replace with update.php so you should see this 'http://mydomain.com/galleryname/update.php'. hit enter or return and you will see a screen saying that it is upgrading. After that your gallery is again accessable for everyone.

 

 

I get this sort of error when I try to send from my phpBB2 install from Fantastico.

Failed sending email :: PHP ::

DEBUG MODE

Line : 234
File : emailer.php

 

The most common cause is that you are either sending to or sending from an invalid email address. The main email account you are given is not a valid email address, and usually looks like this:
username@host##.<hostingcompany>.com
Where "username" is your FTP login.

You will want to create a new email address, and change your profile to use a different Email address. Log in, and click Profile at the top of the page.
You will also want to change the email address emails are coming from. To do this, log into the Administrator Index, and click on the link under "General Admin" called "Configuration". Scroll all the way down to the bottom, and change the email address there as well.

You should nolonger get the php error.

To further test that php mail is working for a specific email address, a script like this should send an email to example@example.com with the Subject line of "test" and body of "test".
<?
mail("example@ example.com","test","test");
?>

 

 

I cannot update phpBB when using phpNuke.

 

1. Upload a fresh copy of PHPBB2 to the new directory, use the most up to date version please.

2. Use PHPMyAdmin to drop the following tables in the fresh copy: Auth-access, Topics, Categories, Forums, Posts, Posts_text.

3. Then use PHPMyAdmin to export the above tables from the PHPNuke copy (nuke_bb*) then change the nuke_bb values to phpbb_ or whatever your prefix is and import them into the fresh copy. Be sure to choose 'data' AND 'structure' when exporting the original tables.

4. Then export data AND structure of the nuke_users table. Again change all the nuke_ values to phpbb_ and import it. Now some tricky modding, you'll have to convert the regdate to unixtime, so in phpmyadmin edit all the user_regdate fields. See http://www.onlineconversion.com/unix_time.htm for a online unixtime converter.

5. When that is done, alter the user table by deleting all fields that NOT start with user_ (except username).

6. Then export DATA only of the following nuke fields: nuke_bbgroups and nuke_bbuser_groups. Again change the nuke_bb values to phpbb_ and then import them.

7. Now set the user_level of your admin in your phpbb_users table to 1.

8. Set some of your configuration options, and your done. PHPNuke can be deleted safely, but first make sure the forum works fine!

 

 

After installing PHPAuction and attempt to sign in admin, you get php script errors.

 

The easiest way to resolve this issue is to copy your php.ini file into the phpauction folder and the admin folder within phpauction folder. You can now log into admin access.