2020-10-08 16:38:30 +00:00
|
|
|
|
# How to install Castopod
|
|
|
|
|
|
2020-10-12 14:47:21 +00:00
|
|
|
|
Castopod was thought to be easy to install. Whether using dedicated or shared
|
|
|
|
|
hosting, you can install it on most PHP-MySQL compatible web servers.
|
2020-10-08 16:38:30 +00:00
|
|
|
|
|
|
|
|
|
- [Install instructions](#install-instructions)
|
|
|
|
|
- [(optional) Manual configuration](#optional-manual-configuration)
|
|
|
|
|
- [Web Server Requirements](#web-server-requirements)
|
|
|
|
|
- [PHP v7.2 or higher](#php-v72-or-higher)
|
|
|
|
|
- [MySQL compatible database](#mysql-compatible-database)
|
|
|
|
|
- [(Optional) Other recommendations](#optional-other-recommendations)
|
|
|
|
|
- [Security concerns](#security-concerns)
|
|
|
|
|
|
|
|
|
|
## Install instructions
|
|
|
|
|
|
2020-10-12 14:47:21 +00:00
|
|
|
|
0. Create a MySQL database for Castopod with a user having access and
|
|
|
|
|
modification privileges (for more info, see
|
|
|
|
|
[Web Server Requirements](#web-server-requirements)).
|
|
|
|
|
1. Download and unzip the Castopod package onto the web server if you haven’t
|
|
|
|
|
already.
|
2020-10-08 16:38:30 +00:00
|
|
|
|
- ⚠️ Set the web server document root to the `public/` sub-folder.
|
2020-10-12 14:47:21 +00:00
|
|
|
|
2. Run the Castopod install script by going to the install wizard page
|
|
|
|
|
(`https://your_domain_name.com/cp-install`) in your favorite web browser.
|
2020-10-08 16:38:30 +00:00
|
|
|
|
3. Follow the instructions on your screen.
|
|
|
|
|
|
|
|
|
|
All done, start podcasting!
|
|
|
|
|
|
|
|
|
|
### (optional) Manual configuration
|
|
|
|
|
|
|
|
|
|
Before uploading Castopod files to your web server:
|
|
|
|
|
|
2020-10-12 14:47:21 +00:00
|
|
|
|
1. Rename the `.env.example` file to `.env` and update the default values with
|
|
|
|
|
your own.
|
2020-10-08 16:38:30 +00:00
|
|
|
|
2. Upload the Castopod files with `.env`
|
|
|
|
|
3. Go to `/cp-install` to finish the install process.
|
|
|
|
|
|
|
|
|
|
## Web Server Requirements
|
|
|
|
|
|
|
|
|
|
### PHP v7.2 or higher
|
|
|
|
|
|
|
|
|
|
PHP version 7.2 or higher is required, with the following extensions installed:
|
|
|
|
|
|
|
|
|
|
- [intl](http://php.net/manual/en/intl.requirements.php)
|
2020-10-12 14:47:21 +00:00
|
|
|
|
- [libcurl](http://php.net/manual/en/curl.requirements.php) if you plan to use
|
|
|
|
|
the HTTP\CURLRequest library
|
2020-10-08 16:38:30 +00:00
|
|
|
|
- [mbstring](http://php.net/manual/en/mbstring.installation.php)
|
|
|
|
|
|
|
|
|
|
Additionally, make sure that the following extensions are enabled in your PHP:
|
|
|
|
|
|
|
|
|
|
- json (enabled by default - don't turn it off)
|
|
|
|
|
- xml (enabled by default - don't turn it off)
|
|
|
|
|
- [mysqlnd](http://php.net/manual/en/mysqlnd.install.php)
|
|
|
|
|
|
|
|
|
|
### MySQL compatible database
|
|
|
|
|
|
|
|
|
|
> We recommend using [MariaDB](https://mariadb.org)
|
|
|
|
|
|
2020-10-12 14:47:21 +00:00
|
|
|
|
You will need the server hostname, database name, username and password to
|
|
|
|
|
complete the installation process. If you do not have these, please contact your
|
|
|
|
|
server administrator.
|
2020-10-08 16:38:30 +00:00
|
|
|
|
|
|
|
|
|
#### Privileges
|
|
|
|
|
|
2020-10-12 14:47:21 +00:00
|
|
|
|
User must have at least these privileges on the database for Castopod to work:
|
|
|
|
|
`ALTER`, `DELETE`, `EXECUTE`, `INDEX`, `INSERT`, `SELECT`, `UPDATE`.
|
2020-10-08 16:38:30 +00:00
|
|
|
|
|
|
|
|
|
### (Optional) Other recommendations
|
|
|
|
|
|
|
|
|
|
- Redis for better cache performances.
|
|
|
|
|
- CDN for better performances.
|
|
|
|
|
- e-mail gateway for lost passwords.
|
|
|
|
|
|
|
|
|
|
## Security concerns
|
|
|
|
|
|
2020-10-12 14:47:21 +00:00
|
|
|
|
Castopod is built on top of Codeigniter, a PHP framework that encourages
|
|
|
|
|
[good security practices](https://codeigniter.com/user_guide/concepts/security.html).
|
2020-10-08 16:38:30 +00:00
|
|
|
|
|
2020-10-12 14:47:21 +00:00
|
|
|
|
To maximize your instance safety and prevent any malicious attack, we recommend
|
2020-10-15 20:22:33 +00:00
|
|
|
|
you update all your Castopod files permissions (after installation to avoid any
|
|
|
|
|
permission error):
|
2020-10-08 16:38:30 +00:00
|
|
|
|
|
|
|
|
|
- `writable/` folder must be **readable** and **writable**.
|
|
|
|
|
- `public/media/` folder must be **readable** and **writable**.
|
|
|
|
|
- any other file must be set to **readonly**.
|
|
|
|
|
|
2020-10-15 20:22:33 +00:00
|
|
|
|
For instance, if you are using Apache or NGINX with Ubuntu you may do the
|
|
|
|
|
following:
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
sudo chown -R root:root /path/to/castopod
|
|
|
|
|
sudo chown -R www-data:www-data /path/to/castopod/writable
|
|
|
|
|
sudo chown -R www-data:www-data /path/to/castopod/public/media
|
|
|
|
|
```
|