Server setup and installation
From PowerFolder Wiki
Contents |
Preface
This guide explains how to install and run PowerFolder Server.
Server installation and setup
Requirements
- PowerFolder Server zip distribution-file. Contact us for download information.
- Server license key.
- Linux or Windows server with Java Runtime Edition 6.0 (Update 11 or higher) and at least 512MB memory (1GB recommended).
- Firewall that allows inbound TCP connections on port 1337 and 8080.
- SMTP Mail gateway service. Linux usually provides this service by default, but might need some configuration before it can be used. It is also possible to use an external mail provider for this.
- (Required) Fix DNS hostname, fix IP or at least a DynDNS.
- (Recommended) A encrypted drive or partition to store all user data. We recommend LUKS.
- (Optional) a HTTP server to add SSL encryption to the webinterface. We recommend Apache HTTP Server.
Linux
Preparation
- It is recommend to create a special user account, which runs PowerFolder Server. Running as root is highly discouraged.
- Create a installation directory, that hosts the PowerFolder jar file, debug logs and the configuration file. Recommendation "~/powerfolder". PowerFolder Server gets executed in this installation directory.
- Check and configure the system according to our configuration notes for Linux.
- Copy the server license key file into the installation directory.
Installation
- Extract the server tar-gz-distribution file into the installation directory.
- Edit "PowerFolder.sh" and change the line 37 (POWERFOLDER_INSTALL) if installation directory is not "~/powerfolder".
- Rename file "PowerFolder.config.sample" to "PowerFolder.config".
- Start the server by executing "./PowerFolder.sh start".
- Open a browser and point it to http://localhost:8080 to open the admin console.
- Login with the default admin user account (Username: king, Password: $qu33n!).
- Click "Admin", then "Preferences". Fill out all required fields and click "Save".
- Restart PowerFolder server by executing "./PowerFolder.sh restart".
- PowerFolder Server is now configured. You may now add new user accounts via the admin console.
Starting/Stopping/Restarting
- The script "PowerFolder.sh" offers various command line options like "start", "stop", "restart", "kill" and "status".
Rotate logs
To rotate the debug log files you can add the following commands to your crontab (crontab -e), to have log files from the day before gzipped and older logs than 14 days deleted automatically (just adjust the path to your PowerFolder debug directory):
15 0 * * * find /home/username/powerfolder/debug/ -mmin +10 -type f -name "*log.txt" -exec gzip {} \; >/dev/null 2>&1
30 0 * * * find /home/username/powerfolder/debug/ -mtime +14 -type f -name "*log.txt.gz" -exec rm {} \; >/dev/null 2>&1
Windows
Notes:
- It is recommended to run PowerFolder Server as system service. Batch scripts are included to install, uninstall, start and stop the service.
- If not running as service PowerFolder Server runs in console mode only.
Preparation
- It is recommend to create a special user account, which runs PowerFolder Server. Running PowerFolder as Administrator is highly discouraged.
- Create a installation directory, that hosts the PowerFolder jar file, log files and the configuration file. The PowerFolder Server gets executed in this installation directory.
- Copy the server license key file into the installation directory.
Installation and setup
- Extract the server zip-distribution file into the installation directory.
- Rename file "PowerFolder.config.sample" to "PowerFolder.config".
- Execute the batch file "InstallService.bat" to install PowerFolder as service.
- Start the server by executing "StartService.bat" or via Windows services control panel. Alternatively execute "PowerFolder.bat" to start in console mode.
- Open a browser and point it to http://localhost:8080 to open the admin console.
- Login with the default admin user account (Username: king, Password: $qu33n!).
- Click "Admin", then "Preferences". Fill out all required fields and click "Save".
- Restart PowerFolder server by executing "StopService.bat" followed by "StartService.bat".
- PowerFolder Server is now configured. You may now add new user accounts via the admin console.
Stopping/Restarting
To stop the server use the Windows services control panel or execute "StopService.bat" in the installation path.
Adding user accounts
You may now start to create new user accounts. Open the admin console in your web browser and click "Admin", then "Add account".
Admin user account reset
Stop PowerFolder Server. Edit the Server configuration file and add these lines to reset the admin username and password.
Troubleshooting
By default PowerFolder Server creates log files after startup in the subdirectory "logs".
If the server seems not to start, try to start it by hand with the following command line in the installation directory:
java -Xmx256m –jar PowerFolder-server.jar –s
Copy the console output and file a ticket with it's contents attached.
Example console output of a successful server start:
Check java
Check the installed java version with command line: java -version
You require a official Java Runtime Environment (Java2SE) at least version 1.6.0 from Sun Microsystems.

