Difference between revisions of "Unable to install more than one script in root directory"
Docs admin (Talk | contribs) m (Docs admin moved page Unable to install more than one script in directory to Unable to install more than one script in root directory without leaving a redirect) |
Docs admin (Talk | contribs) |
||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | Whenever a script is installed 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 | + | 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 | + | |
+ | 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 | + | $installed_in_root["example.com"] = 1; |
</syntaxhighlight> | </syntaxhighlight> | ||
Line 13: | Line 14: | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
− | $installed_in_root["example.com | + | $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;