https://wiki.uniformserver.com/index.php?title=FileZilla_Server2:_Install_Options&feed=atom&action=historyFileZilla Server2: Install Options - Revision history2024-03-28T18:54:28ZRevision history for this page on the wikiMediaWiki 1.41.0https://wiki.uniformserver.com/index.php?title=FileZilla_Server2:_Install_Options&diff=4771&oldid=prevOlajideolaolorun: Reverted edits by Upazixorys (Talk); changed back to last version by Ric2010-11-24T08:18:46Z<p>Reverted edits by <a href="/Special:Contributions/Upazixorys" title="Special:Contributions/Upazixorys">Upazixorys</a> (<a href="/index.php?title=User_talk:Upazixorys&action=edit&redlink=1" class="new" title="User talk:Upazixorys (page does not exist)">Talk</a>); changed back to last version by <a href="/User:Ric" title="User:Ric">Ric</a></p>
<a href="https://wiki.uniformserver.com/index.php?title=FileZilla_Server2:_Install_Options&diff=4771&oldid=4660">Show changes</a>Olajideolaolorunhttps://wiki.uniformserver.com/index.php?title=FileZilla_Server2:_Install_Options&diff=4660&oldid=prevUpazixorys at 01:17, 24 November 20102010-11-24T01:17:16Z<p></p>
<a href="https://wiki.uniformserver.com/index.php?title=FileZilla_Server2:_Install_Options&diff=4660&oldid=3701">Show changes</a>Upazixoryshttps://wiki.uniformserver.com/index.php?title=FileZilla_Server2:_Install_Options&diff=3701&oldid=prevRic: New page: {{Uc nav FileZilla Server2}} '''Install options and design''' FileZilla plugin has three-installation options these correspond to Uniform Server's [[4.0-Mona: Install#Install options | in...2009-04-13T18:08:22Z<p>New page: {{Uc nav FileZilla Server2}} '''Install options and design''' FileZilla plugin has three-installation options these correspond to Uniform Server's [[4.0-Mona: Install#Install options | in...</p>
<p><b>New page</b></p><div>{{Uc nav FileZilla Server2}}<br />
'''Install options and design'''<br />
<br />
FileZilla plugin has three-installation options these correspond to Uniform Server's [[4.0-Mona: Install#Install options | install options]].<br />
<br />
This page details each option and explains restrictions imposed on FileZilla in basic and disk-root mode.<br />
<br />
The architecture is flexible allowing it to be tailored to your own requirements user modifications are explained in each section.<br />
<br />
== Basic (Portable) ==<br />
A default installation adds the following batch files to folder '''UniServer''' providing independent control of FileZilla Server.<br />
{|cellspacing="4" cellpadding="4"<br />
|-valign="top" style="background:#f5f5f5;"<br />
|'''fz_start.bat'''||- Start FileZilla server||- Runs file UniServer\udrive\filezilla_server\basic\fz_basic_start.bat<br />
|-valign="top" style="background:#f5f5f5;"<br />
|'''fz_stop.bat'''||- Stop FileZilla server||– Runs file udrive\filezilla_server\filezilla_server_portable\zilla_stop.bat<br />
|-valign="top" style="background:#f5f5f5;"<br />
|'''fz_admin.bat'''||– Start FileZilla admin||– Runs file udrive\filezilla_server\filezilla_server_portable\zilla_admin.bat<br />
|}<br />
Each of the above files runs a single line of code.<br />
<br />
'''''[[#top | Top]]'''''<br />
=== basic - Folder ===<br />
Contents of folder UniServer\udrive\filezilla_server\'''basic''' provides support files for FileZilla FTPd “basic-mode” (portable) operation.<br />
<br />
{|cellspacing="4" cellpadding="4"<br />
|-valign="top" style="background:#f5f5f5;"<br />
|'''fz_basic_start.bat'''<br />
||Run by “fz_start.bat”<br />
<br />
For portability a virtual drive is created this file checks its existence.<br />
<br />
If the drive does not exist user is informed to start Uniform server and to run the script again.<br />
<br />
On detecting a virtual drives existence the drive letter is passed as a parameter to change_drive.pl on returning FileZilla is started. <br />
|-valign="top" style="background:#f5f5f5;"<br />
|'''change_drive.pl'''<br />
||This script receives a drive letter as parameter and replaces all drive letters in file<br />
<br />
UniServer\udrive\filezilla_server\filezilla_server_portable\'''FileZilla Server.xml'''<br />
|-valign="top" style="background:#f5f5f5;"<br />
|'''Server_Start.bat'''<br />
||Runs both Uniform Server and FileZilla Server - Replacement file <br />
|-valign="top" style="background:#f5f5f5;"<br />
|'''Stop.bat'''<br />
||Stops both Uniform Server and FileZilla Server - Replacement file <br />
|}<br />
'''''[[#top | Top]]'''''<br />
<br />
=== Start and stop both servers - Combined batch files ===<br />
The two replacement files (Server_Start.bat and Stop.bat) provide single file control for starting and stopping both servers.<br />
# Copy Server_'''Start.bat''' to folder UniServer overwrites original<br />
# Copy '''Stop.bat''' to folder UniServer overwrites original<br />
# Delete UniServer\'''fz_start.bat'''<br />
# Delete UniServer\'''fz_stop.bat'''<br />
Note: UniController is independent and does not use the batch files hence becomes redundant (cannot start or stop both servers). If you wish to use UniController you cannot use the replacement files.<br />
<br />
'''''[[#top | Top]]'''''<br />
=== FileZilla restrictions ===<br />
FileZilla allows you to assign any folder on any disk to a user. In addition when generating a FileZilla server certificate it can be saved to any location. This freedom is in conflict with portability hence the need to restrict paths to the virtual drive created.<br />
<br />
The above explains why Uniform Server must be running before FileZilla. The drive letter assigned by UniServer is the first free drive available this can vary, file change_drive.pl updates FileZilla’s configuration file before starting the server.<br />
<br />
Hence to maintain portability:<br />
# All folders must be assigned from the virtual drive<br />
# FileZilla server certificate must be saved to a folder on the virtual drive.<br />
'''''Note'':''' This is the only option where you must run Uniform Server before using FileZilla <br />
'''''[[#top | Top]]'''''<br />
<br />
== Disk Root ==<br />
A default installation adds the following batch files to folder '''UniServer\udrive''' providing independent control of FileZilla Server.<br />
{|cellspacing="4" cellpadding="4"<br />
|-valign="top" style="background:#f5f5f5;"<br />
|'''fz_start_usb.bat'''||- Start FileZilla server||- Runs file \filezilla_server\disk_root\fz_disk_root_start.bat<br />
|-valign="top" style="background:#f5f5f5;"<br />
|'''fz_stop_usb.bat'''||- Stop FileZilla server||– Runs file \filezilla_server\filezilla_server_portable\zilla_stop.bat<br />
|-valign="top" style="background:#f5f5f5;"<br />
|'''fz_admin_usb.bat'''||– Start FileZilla admin||– Runs file \filezilla_server\filezilla_server_portable\zilla_admin.bat<br />
|}<br />
Each of the above files runs a single line of code.<br />
<br />
'''''[[#top | Top]]'''''<br />
=== disk_root - Folder ===<br />
Contents of folder UniServer\udrive\filezilla_server\'''disk_root''' provides support files for FileZilla FTPd “disk-root mode” (portable/fixed) operation.<br />
<br />
{|cellspacing="4" cellpadding="4"<br />
|-valign="top" style="background:#f5f5f5;"<br />
|'''fz_disk_root_start.bat'''<br />
||Run by “fz_start_usb.bat”<br />
<br />
Picks-up the current drive letter. Reminds user of FileZilla restrictions.<br />
<br />
Drive letter is passed as a parameter to change_drive.pl on returning FileZilla is started. <br />
|-valign="top" style="background:#f5f5f5;"<br />
|'''change_drive.pl'''<br />
||This script receives a drive letter as parameter and replaces all drive letters in file<br />
<br />
\filezilla_server\filezilla_server_portable\'''FileZilla Server.xml'''<br />
|-valign="top" style="background:#f5f5f5;"<br />
|'''usb_server_start.bat'''<br />
||Runs both Uniform Server and FileZilla Server - Replacement file <br />
|-valign="top" style="background:#f5f5f5;"<br />
|'''usb_server_stop.bat'''<br />
||Stops both Uniform Server and FileZilla Server - Replacement file <br />
|}<br />
'''''[[#top | Top]]'''''<br />
<br />
=== Start and stop both servers - Combined batch files ===<br />
The two replacement files (usb_server_start.bat and usb_server_stop.bat) provide single file control for starting and stopping both servers.<br />
# Copy Server_'''usb_server_start.bat''' to folder UniServer\udrive overwrites original<br />
# Copy '''usb_server_stop.bat''' to folder UniServer\udrive overwrites original<br />
# Delete UniServer\'''fz_start_usb.bat'''<br />
# Delete UniServer\'''fz_stop_usb.bat'''<br />
Note: UniController is independent and does not use the batch files hence becomes redundant (cannot start or stop both servers). If you wish to use UniController you cannot use the replacement files.<br />
<br />
'''''[[#top | Top]]'''''<br />
<br />
=== FileZilla restrictions ===<br />
FileZilla allows you to assign any folder on any disk to a user. In addition when generating a FileZilla server certificate it can be saved to any location. This freedom is in conflict with portability hence the need to restrict paths to the current drive (where the servers are installed).<br />
<br />
The drive letter detected can vary (moving the servers to a different hard drive or letter assigned to USB memory stick), file change_drive.pl updates FileZilla’s configuration file before starting the server.<br />
<br />
Hence to maintain portability:<br />
# All folders must be assigned from the current drive<br />
# FileZilla server certificate must be saved to a folder on the current drive.<br />
<br />
'''''[[#top | Top]]'''''<br />
==== Remove restrictions - Hard drive ====<br />
If you intend to permanently install servers on a disk-root the above restrictions are draconian and limit the functionality of FileZilla.<br />
<br />
To remove these restrictions edit the following file:<br />
UniServer\udrive\filezilla_server\disk_root\fz_disk_root_start.bat<br />
Locate this line:<br />
<pre>rem goto :END</pre><br />
Remove the “rem” as shown below<br />
<pre>goto :END</pre><br />
This bypasses FileZilla’s configuration file update and removes the nag screen.<br />
You can now assign any file on any drive to a user in addition save the certificate file to any folder of your choice.<br />
<br />
'''''[[#top | Top]]'''''<br />
== Run as a service ==<br />
This process could have been automated however it is possible that Uniform Server has already been installed as a service and the default location changed. These unknowns make it difficult to automate hence a semi-automated and manual method are described. Use the one that best fits your current installation of Uniform Server.<br />
<br />
'''''[[#top | Top]]'''''<br />
=== Clean install of UniServer ===<br />
This method assumes a clean install of Uniform server (extracted to any folder) and FileZilla has been saved to folder UniServer and extracted ([[FileZilla Server2: Introduction#Download and install | see intro page]]). <br />
<br />
# Navigate to folder UniServer\udrive\plugins\'''Services'''<br />
# Double click on '''Run.bat''' – Installs Uniform Server as a service. All files are copied to folder c:\UniServer<br />
# Navigate to folder '''c:\UniServer''' and delete these files:<br />
## '''fz_start_usb.bat'''<br />
## '''fz_stop_usb.bat'''<br />
## '''fz_admin_usb.bat'''<br />
# Navigate to folder C:\UniServer\'''filezilla_server''' and copy the three files to folder c:\'''UniServer'''<br />
## '''fz_service_install.bat''' - Installs and runs FileZilla service<br />
## '''fz_service_uninstall.bat''' – Stops and unintalls FileZilla service<br />
## '''fz_service_admin.bat''' – Runs FileZilla admin.<br />
# Note: Install.bat and Uninstall.bat installs/runs stops/unistalls UniServer respectively<br />
The above along with Install.bat and Uninstall.bat provides separate control of UniServer and FileZilla.<br />
<br />
'''''[[#top | Top]]'''''<br />
==== Combined services ====<br />
Separate control of UniServer and FileZilla may be undesirable the two control files can be combined as follows:<br />
<br />
* Stop servers (run fz_service_uninstall.bat and Uninstall.bat)<br />
* Edit '''Install.bat''' Add the three lines just above "rem === Get ..." as shown below.<br />
<pre><br />
echo Installing FileZilla Service ...<br />
start filezilla_server\filezilla_server_portable\zilla_service_start.bat<br />
echo.<br />
<br />
rem === Get Apache executable file name<br />
</pre><br />
<br />
* Edit '''Uninstall.bat''' Add the three lines just below "pushd %~dp0" as shown below.<br />
<pre><br />
pushd %~dp0<br />
<br />
echo.<br />
echo Uninstalling FileZilla server<br />
start filezilla_server\filezilla_server_portable\zilla_service_stop.bat<br />
</pre><br />
Delete files '''fz_service_install.bat''' and '''fz_service_uninstall.bat'''<br />
<br />
'''Test:'''<br />
# Run '''Install.bat''' - Installs/starts FileZilla and Installs/starts UniServer - Apanel displayed<br />
# Run '''fz_service_admin.bat''' - Click '''OK''' - Logged on indicates correct operation <br />
# Run '''Uninstall.bat''' Stops/Unistalls FileZilla server and Stops/Uninstalls Uniserver<br />
# Note: FileZilla icon changes to a question mark. Error could not connect displayed. Close Admin <br />
'''''[[#top | Top]]'''''<br />
=== UniServer already installed as service ===<br />
If you wish to run FileZilla alongside an already installed Uniform Server service use the following method to install FileZilla service. (Assumes Uniform Server service was installed to default folder c:\UniServer) <br />
# Save '''uniserver_filezilla_ftpd.exe''' to '''anyfolder'''<br />
# Double click '''uniserver_filezilla_ftpd.exe''' – Extracts all folders and files<br />
# Copy folder anyfolder\udrive\'''filezilla_server''' and its content to folder c:\'''UniServer''' <br />
# Navigate to folder anyfolder\udrive\'''filezilla_server''' and copy the three files to folder c:\'''UniServer'''<br />
## '''fz_service_install.bat''' - Installs and runs FileZilla service<br />
## '''fz_service_uninstall.bat''' – Stops and unintalls FileZilla service<br />
## '''fz_service_admin.bat''' – Runs FileZilla admin.<br />
# If you wish to save space delete '''anyfolder'''<br />
'''''[[#top | Top]]'''''<br />
==== Combined services - same as above ====<br />
The two control files can be combined as explained [[#Combined services | above]] allowing both servers to be either installed or unistalled at the same time.<br />
<br />
'''''[[#top | Top]]'''''<br />
<br />
== Core – alternative ==<br />
FileZilla FTPd is a server in its own right; the core contents of folder '''filezilla_server_portable''' were designed to be independent of Uniform Server.<br />
<br />
Eextract the files as [[#UniServer already installed as service | explained above]] and copy folder '''filezilla_server_portable''' to your preferred location and either run server as a standard program or service using the integral batch files.<br />
<br />
'''''Note'':''' There are no restrictions you can assign any folder on any drive to a user. Server certificate can be as to any folder.<br />
<br />
'''''[[#top | Top]]'''''<br />
<br />
== Summary ==<br />
I have shown in reality there are four installation options three associated with Uniform Server and an independent option. FileZillacan be run either as a service or standard program matching the flexibility of Uniform Server.<br />
<br />
Remainder of this series shows how to set-up and run FileZilla the next page covers a basic configuration with no SSL.<br />
<br />
'''''[[#top | Top]]'''''<br />
<br />
----<br />
<br />
[[Category: Uniform Server 4.0-Mona]]<br />
[[Category: Setup]]<br />
[[Category: How To]]<br />
[[Category: Plugins]]</div>Ric