FileZilla Server3: Batch Files: Difference between revisions

From The Uniform Server Wiki
Jump to navigation Jump to search
(New page: {{Uc nav FileZilla Server3}} '''Batch Files''' If you intend to run Uniform Server and FileZilla together independent control can be inconvenient. This page looks at combining server cont...)
 
No edit summary
Line 1: Line 1:
=[http://ejahibuko.co.cc This Page Is Currently Under Construction And Will Be Available Shortly, Please Visit Reserve Copy Page]=
{{Uc nav FileZilla Server3}}
{{Uc nav FileZilla Server3}}
'''Batch Files'''
'''Batch Files'''
Line 18: Line 19:


Add the last two lines as shown below:
Add the last two lines as shown below:
<pre>
&lt;pre&gt;
..\usr\local\php\php.exe -n  ..\unicon\main\start_servers.php
..\usr\local\php\php.exe -n  ..\unicon\main\start_servers.php


start ..\filezilla_server\portable\fzp_start.bat
start ..\filezilla_server\portable\fzp_start.bat
..\filezilla_server\filezilla_ftpd\zilla_admin.bat  
..\filezilla_server\filezilla_ftpd\zilla_admin.bat  
</pre>
&lt;/pre&gt;
Edit file '''Stop_Server.bat'''
Edit file '''Stop_Server.bat'''


Add the last line as shown below:
Add the last line as shown below:
<pre>
&lt;pre&gt;
..\usr\local\php\php.exe -n  ..\unicon\main\stop_servers.php
..\usr\local\php\php.exe -n  ..\unicon\main\stop_servers.php
start ..\filezilla_server\filezilla_ftpd\zilla_stop.bat
start ..\filezilla_server\filezilla_ftpd\zilla_stop.bat
</pre>
&lt;/pre&gt;


The above two batch files start and stop both servers these are run as a standard program.
The above two batch files start and stop both servers these are run as a standard program.
Line 42: Line 43:


Edit file '''Start_Server.bat'''
Edit file '''Start_Server.bat'''
<pre>
&lt;pre&gt;
usr\local\php\php.exe -n  unicon\main\start_servers.php
usr\local\php\php.exe -n  unicon\main\start_servers.php


start filezilla_server\portable\fzp_start.bat
start filezilla_server\portable\fzp_start.bat
filezilla_server\filezilla_ftpd\zilla_admin.bat  
filezilla_server\filezilla_ftpd\zilla_admin.bat  
</pre>
&lt;/pre&gt;
Edit file '''Stop_Server.bat'''
Edit file '''Stop_Server.bat'''
<pre>
&lt;pre&gt;
usr\local\php\php.exe -n  unicon\main\stop_servers.php
usr\local\php\php.exe -n  unicon\main\stop_servers.php
start filezilla_server\filezilla_ftpd\zilla_stop.bat
start filezilla_server\filezilla_ftpd\zilla_stop.bat
</pre>
&lt;/pre&gt;




Line 63: Line 64:


Add the last two lines as shown below:
Add the last two lines as shown below:
<pre>
&lt;pre&gt;
..\usr\local\php\php.exe -n  ..\unicon\main\start_servers.php
..\usr\local\php\php.exe -n  ..\unicon\main\start_servers.php


start ..\filezilla_server\filezilla_ftpd\zilla_start.bat
start ..\filezilla_server\filezilla_ftpd\zilla_start.bat
..\filezilla_server\filezilla_ftpd\zilla_admin.bat  
..\filezilla_server\filezilla_ftpd\zilla_admin.bat  
</pre>
&lt;/pre&gt;
Edit file '''Stop_Server.bat'''
Edit file '''Stop_Server.bat'''


Add the last line as shown below:
Add the last line as shown below:
<pre>
&lt;pre&gt;
..\usr\local\php\php.exe -n  ..\unicon\main\stop_servers.php
..\usr\local\php\php.exe -n  ..\unicon\main\stop_servers.php
start ..\filezilla_server\filezilla_ftpd\zilla_stop.bat
start ..\filezilla_server\filezilla_ftpd\zilla_stop.bat
</pre>
&lt;/pre&gt;


The above two batch files start and stop both servers these are run as a standard program.
The above two batch files start and stop both servers these are run as a standard program.
Line 87: Line 88:


Edit file '''Start_Server.bat'''
Edit file '''Start_Server.bat'''
<pre>
&lt;pre&gt;
usr\local\php\php.exe -n  unicon\main\start_servers.php
usr\local\php\php.exe -n  unicon\main\start_servers.php


start filezilla_server\portable\fzp_start.bat
start filezilla_server\portable\fzp_start.bat
filezilla_server\filezilla_ftpd\zilla_admin.bat  
filezilla_server\filezilla_ftpd\zilla_admin.bat  
</pre>
&lt;/pre&gt;
Edit file '''Stop_Server.bat'''
Edit file '''Stop_Server.bat'''
<pre>
&lt;pre&gt;
usr\local\php\php.exe -n  unicon\main\stop_servers.php
usr\local\php\php.exe -n  unicon\main\stop_servers.php
start filezilla_server\filezilla_ftpd\zilla_stop.bat
start filezilla_server\filezilla_ftpd\zilla_stop.bat
</pre>
&lt;/pre&gt;


'''''[[#top | Top]]'''''
'''''[[#top | Top]]'''''
Line 107: Line 108:


Add the last two lines as shown below:
Add the last two lines as shown below:
<pre>
&lt;pre&gt;
..\usr\local\php\php.exe -n  ..\unicon\main\service_install_run.php
..\usr\local\php\php.exe -n  ..\unicon\main\service_install_run.php


..\filezilla_server\filezilla_ftpd\zilla_service_start.bat
..\filezilla_server\filezilla_ftpd\zilla_service_start.bat
..\filezilla_server\filezilla_ftpd\zilla_admin.bat
..\filezilla_server\filezilla_ftpd\zilla_admin.bat
</pre>
&lt;/pre&gt;
Edit file '''Service_Stop_Uninstall.bat'''
Edit file '''Service_Stop_Uninstall.bat'''


Add the last line as shown below:
Add the last line as shown below:
<pre>
&lt;pre&gt;
..\usr\local\php\php.exe -n  ..\unicon\main\service_stop_uninstall.php
..\usr\local\php\php.exe -n  ..\unicon\main\service_stop_uninstall.php


..\filezilla_server\filezilla_ftpd\zilla_service_stop.bat
..\filezilla_server\filezilla_ftpd\zilla_service_stop.bat
</pre>
&lt;/pre&gt;


The above two batch files install/start and stop/uninstalls both server services.
The above two batch files install/start and stop/uninstalls both server services.
Line 132: Line 133:


Edit file '''Service_Install_Run.bat'''
Edit file '''Service_Install_Run.bat'''
<pre>
&lt;pre&gt;
usr\local\php\php.exe -n  unicon\main\service_install_run.php
usr\local\php\php.exe -n  unicon\main\service_install_run.php


filezilla_server\filezilla_ftpd\zilla_service_start.bat
filezilla_server\filezilla_ftpd\zilla_service_start.bat
filezilla_server\filezilla_ftpd\zilla_admin.bat
filezilla_server\filezilla_ftpd\zilla_admin.bat
</pre>
&lt;/pre&gt;
Edit file '''Service_Stop_Uninstall.bat'''
Edit file '''Service_Stop_Uninstall.bat'''
<pre>
&lt;pre&gt;
usr\local\php\php.exe -n  unicon\main\service_stop_uninstall.php
usr\local\php\php.exe -n  unicon\main\service_stop_uninstall.php


filezilla_server\filezilla_ftpd\zilla_service_stop.bat
filezilla_server\filezilla_ftpd\zilla_service_stop.bat
</pre>
&lt;/pre&gt;


'''''[[#top | Top]]'''''
'''''[[#top | Top]]'''''

Revision as of 01:19, 24 November 2010

This Page Is Currently Under Construction And Will Be Available Shortly, Please Visit Reserve Copy Page

Uniform Server 5-Nano
FileZilla FTPd (Server).

Batch Files

If you intend to run Uniform Server and FileZilla together independent control can be inconvenient. This page looks at combining server control to run both servers at the same time.

Folder UniServer contains three batch files fz_admin.bat, fz_start.bat and fz_stop.bat These can be deleted however it’s probably worth keeping fz_admin.bat this will allow FileZilla admin to be restarted if accidentally closed.

Uniform Server can be controlled from batch files contained in folder alternative_control these files are easily modified to control both servers.

Remainder of this page looks at modifications required.

Top

Portable – Standard program

Portable mode requires FileZilla’s configuration file to have absolute paths rewritten hence fzp_start.bat will be used.

Edit file Start_Server.bat

Add the last two lines as shown below: <pre> ..\usr\local\php\php.exe -n ..\unicon\main\start_servers.php

start ..\filezilla_server\portable\fzp_start.bat ..\filezilla_server\filezilla_ftpd\zilla_admin.bat </pre> Edit file Stop_Server.bat

Add the last line as shown below: <pre> ..\usr\local\php\php.exe -n ..\unicon\main\stop_servers.php start ..\filezilla_server\filezilla_ftpd\zilla_stop.bat </pre>

The above two batch files start and stop both servers these are run as a standard program.

Note: You need to manually close FileZilla Admin

Move batch files

It may be more confinement to copy Start_Server.bat and Stop_Server.bat to folder UniServer this keeps all server control in a single folder.

Having copied files to folder UniServer edit each file to have all paths reflect new location as follows:

Edit file Start_Server.bat <pre> usr\local\php\php.exe -n unicon\main\start_servers.php

start filezilla_server\portable\fzp_start.bat filezilla_server\filezilla_ftpd\zilla_admin.bat </pre> Edit file Stop_Server.bat <pre> usr\local\php\php.exe -n unicon\main\stop_servers.php start filezilla_server\filezilla_ftpd\zilla_stop.bat </pre>


Top

Static – Standard program

Static operation does not rewrite paths in FileZilla’s configuration file. Configuration is identical to the above with one exception file fzp_start.bat is replaced with zilla_start.bat

Edit file Start_Server.bat

Add the last two lines as shown below: <pre> ..\usr\local\php\php.exe -n ..\unicon\main\start_servers.php

start ..\filezilla_server\filezilla_ftpd\zilla_start.bat ..\filezilla_server\filezilla_ftpd\zilla_admin.bat </pre> Edit file Stop_Server.bat

Add the last line as shown below: <pre> ..\usr\local\php\php.exe -n ..\unicon\main\stop_servers.php start ..\filezilla_server\filezilla_ftpd\zilla_stop.bat </pre>

The above two batch files start and stop both servers these are run as a standard program.

Note: You need to manually close FileZilla Admin

Move batch files

It may be more confinement to copy Start_Server.bat and Stop_Server.bat to folder UniServer this keeps all server control in a single folder.

Having copied files to folder UniServer edit each file to have all paths reflect new location as follows:

Edit file Start_Server.bat <pre> usr\local\php\php.exe -n unicon\main\start_servers.php

start filezilla_server\portable\fzp_start.bat filezilla_server\filezilla_ftpd\zilla_admin.bat </pre> Edit file Stop_Server.bat <pre> usr\local\php\php.exe -n unicon\main\stop_servers.php start filezilla_server\filezilla_ftpd\zilla_stop.bat </pre>

Top

Static – Service

Running, as a service is similar to the above only difference is service batch files are run. Configuration as follows:

Edit file Service_Install_Run.bat

Add the last two lines as shown below: <pre> ..\usr\local\php\php.exe -n ..\unicon\main\service_install_run.php

..\filezilla_server\filezilla_ftpd\zilla_service_start.bat ..\filezilla_server\filezilla_ftpd\zilla_admin.bat </pre> Edit file Service_Stop_Uninstall.bat

Add the last line as shown below: <pre> ..\usr\local\php\php.exe -n ..\unicon\main\service_stop_uninstall.php

..\filezilla_server\filezilla_ftpd\zilla_service_stop.bat </pre>

The above two batch files install/start and stop/uninstalls both server services.

Note: You need to manually close FileZilla Admin

Move batch files

It may be more confinement to copy Service_Install_Run.bat and Service_Stop_Uninstall.bat to folder UniServer this keeps all server control in a single folder.

Having copied files to folder UniServer edit each file to have all paths reflect new location as follows:

Edit file Service_Install_Run.bat <pre> usr\local\php\php.exe -n unicon\main\service_install_run.php

filezilla_server\filezilla_ftpd\zilla_service_start.bat filezilla_server\filezilla_ftpd\zilla_admin.bat </pre> Edit file Service_Stop_Uninstall.bat <pre> usr\local\php\php.exe -n unicon\main\service_stop_uninstall.php

filezilla_server\filezilla_ftpd\zilla_service_stop.bat </pre>

Top

Summary

Running both servers requires the addition of one or two lines to the control batch files.

A similar approach can be applied to UniTray’s configuration file see next page for details.

Top