Info | ||
---|---|---|
| ||
phpFox Storage app is compatible with old phpFox versions (4.7.9 or earlier). Since phpFox 4.8.0 and later on, Storage Systems can be configured directly in AdminCP. If you are using phpFox 4.8.x, please refer instruction for this article here. |
This tutorial requires at least an intermediate level of knowledge. If you are not at that level or cannot get this to work, please seek assistance from experts.
Requires: phpfox 4.3+
You can set up your own storage servers with phpFox. It can be hosted on the same web server as your site, however, it's best to keep it separate.
In this documentation, we will guide you on how to set it up on the same web server.
All examples in this tutorial use below information:
- Root path of the phpFox site http://www.example.phpfox.com is /var/www/html/
Step 1: Setting up Storage servers
The source code for a storage server can be found in the folder /PF.Site/Apps/core-cdn/server/.
This folder can be moved to anywhere on your server but make sure that it has public HTTP access. For example, in this tutorial, we will move it to the root folder of the site and rename to storage:
/var/www/html/storage
Now, open it, you can see files and folders like this:
...
With this example, it will be:
The next is View URL. This is the URL to the view folder, which by default is /. The value for this example would then be:
http://www.example.phpfox.com/storage/
...