Difference between revisions of "Unable to install more than one script in root directory"

From Acenet Knowledgebase
Jump to: navigation, search
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
Whenever a script is installed into a domain's root directory using Fantastico, a flag is added to the /home/USERNAME/.fantasticodata/installed_in_root.php file.  This flag prevents Fantastico from accidentally overwriting the script within that root directory, corrupting your website.
 
Whenever a script is installed into a domain's root directory using Fantastico, a flag is added to the /home/USERNAME/.fantasticodata/installed_in_root.php file.  This flag prevents Fantastico from accidentally overwriting the script within that root directory, corrupting your website.
  
If the installation is manually deleted, this flag must be cleared manually.  Edit the /home/USERNAME/.fantasticodata/installed_in_root.php file, and locate the URL where the script was installed.  That should be set to equal '1', which means that something is installed in that location.  Change that value to zero, and save the file.
+
 
 +
If the installation is deleted (not uninstalled through Fantastico), this flag must be cleared manually in order to reinstall a script in that root directory.  Edit the /home/USERNAME/.fantasticodata/installed_in_root.php file, and locate the URL where the script was installed.  That should be set to equal '1', which means that something is installed in that location.  Change that value to zero, and save the file.
  
  
Line 7: Line 8:
  
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
$installed_in_root["example.com/wp"] = 1;
+
$installed_in_root["example.com"] = 1;
 
</syntaxhighlight>
 
</syntaxhighlight>
  
Line 13: Line 14:
  
 
<syntaxhighlight lang="bash">
 
<syntaxhighlight lang="bash">
$installed_in_root["example.com/wp"] = 0;
+
$installed_in_root["example.com"] = 0;
 
</syntaxhighlight>
 
</syntaxhighlight>

Latest revision as of 17:21, 13 January 2013

Whenever a script is installed into a domain's root directory using Fantastico, a flag is added to the /home/USERNAME/.fantasticodata/installed_in_root.php file. This flag prevents Fantastico from accidentally overwriting the script within that root directory, corrupting your website.


If the installation is deleted (not uninstalled through Fantastico), this flag must be cleared manually in order to reinstall a script in that root directory. Edit the /home/USERNAME/.fantasticodata/installed_in_root.php file, and locate the URL where the script was installed. That should be set to equal '1', which means that something is installed in that location. Change that value to zero, and save the file.


For an example, the installed_in_root.php would show:

$installed_in_root["example.com"] = 1;

Set it to zero, and save the file.

$installed_in_root["example.com"] = 0;