FileZilla Server3: Batch Files: Difference between revisions
Upazixorys (talk | contribs) No edit summary |
m (Reverted edits by Upazixorys (Talk); changed back to last version by Ric) |
||
Line 1: | Line 1: | ||
{{Uc nav FileZilla Server3}} | {{Uc nav FileZilla Server3}} | ||
'''Batch Files''' | '''Batch Files''' | ||
Line 19: | Line 18: | ||
Add the last two lines as shown below: | Add the last two lines as shown below: | ||
<pre> | |||
..\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> | |||
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> | |||
..\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> | |||
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 43: | Line 42: | ||
Edit file '''Start_Server.bat''' | Edit file '''Start_Server.bat''' | ||
<pre> | |||
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> | |||
Edit file '''Stop_Server.bat''' | Edit file '''Stop_Server.bat''' | ||
<pre> | |||
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> | |||
Line 64: | Line 63: | ||
Add the last two lines as shown below: | Add the last two lines as shown below: | ||
<pre> | |||
..\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> | |||
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> | |||
..\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> | |||
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 88: | Line 87: | ||
Edit file '''Start_Server.bat''' | Edit file '''Start_Server.bat''' | ||
<pre> | |||
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> | |||
Edit file '''Stop_Server.bat''' | Edit file '''Stop_Server.bat''' | ||
<pre> | |||
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> | |||
'''''[[#top | Top]]''''' | '''''[[#top | Top]]''''' | ||
Line 108: | Line 107: | ||
Add the last two lines as shown below: | Add the last two lines as shown below: | ||
<pre> | |||
..\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> | |||
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> | |||
..\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> | |||
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 133: | Line 132: | ||
Edit file '''Service_Install_Run.bat''' | Edit file '''Service_Install_Run.bat''' | ||
<pre> | |||
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> | |||
Edit file '''Service_Stop_Uninstall.bat''' | Edit file '''Service_Stop_Uninstall.bat''' | ||
<pre> | |||
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> | |||
'''''[[#top | Top]]''''' | '''''[[#top | Top]]''''' |
Latest revision as of 08:16, 24 November 2010
FileZilla Server3: Introduction | Basic Config 1 | Basic Config 2 | Implicit SSL part 1 | Implicit SSL part 2 | Portable FileZilla FTPd | Install Options | Batch Files | UniTray
|
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.
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:
..\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
Edit file Stop_Server.bat
Add the last line as shown below:
..\usr\local\php\php.exe -n ..\unicon\main\stop_servers.php start ..\filezilla_server\filezilla_ftpd\zilla_stop.bat
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
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
Edit file Stop_Server.bat
usr\local\php\php.exe -n unicon\main\stop_servers.php start filezilla_server\filezilla_ftpd\zilla_stop.bat
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:
..\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
Edit file Stop_Server.bat
Add the last line as shown below:
..\usr\local\php\php.exe -n ..\unicon\main\stop_servers.php start ..\filezilla_server\filezilla_ftpd\zilla_stop.bat
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
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
Edit file Stop_Server.bat
usr\local\php\php.exe -n unicon\main\stop_servers.php start filezilla_server\filezilla_ftpd\zilla_stop.bat
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:
..\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
Edit file Service_Stop_Uninstall.bat
Add the last line as shown below:
..\usr\local\php\php.exe -n ..\unicon\main\service_stop_uninstall.php ..\filezilla_server\filezilla_ftpd\zilla_service_stop.bat
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
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
Edit file Service_Stop_Uninstall.bat
usr\local\php\php.exe -n unicon\main\service_stop_uninstall.php filezilla_server\filezilla_ftpd\zilla_service_stop.bat
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.