tkr - Shared hosting installation
Warning
It has been a very long time since I've used shared hosting.
I've tried to confirm that these instructions are correct, but if you have any problems, or if you have suggestions for improving them, please send me an email.
Assumptions
- Your server's web root is
public_html - You are able to upload files to
public_html - The application will be served as a subdirectory (e.g. https://example.com/tkr)
Prerequisites
Confirm that your hosting provider supports the PHP requirements
- PHP 8.2+
- The PDO and PDO_SQLITE PHP extensions
Installation
- Download the current release of tkr.
- Extract the contents of the file.
Info
The file contents will be extracted to a directory called
tkr.- zip
unzip tkr.v1.0.6.zip - tgz
tar -xvzf tkr.v1.0.6.tgz
- zip
- Upload the
tkrdirectory to your server'spublic_htmldirectory using the tools provided by your hosting provider. After upload, thepublic_htmldirectory should look like the diagram below.InfoIf you're hosting other content, then you'll have more files and directories under
public_html. That's fine, as long as thetkrdirectory looks like this.public_html └── tkr ├── config ├── examples ├── LICENSE ├── public ├── README.md ├── src ├── storage ├── templates └── tkr-setup.php - Make the
tkr/storagedirectory writable by all users using the tools provided by your hosting provider.- You need to grant the "read", "write", and "execute" permissions to the user, group, and world.
- If you have shell access, you can do this with the
chmodcommand from thepublic_htmldirectory.chmod 0777 tkr/storage - Many shared hosting providers offer a UI like cPanel for site management. See this article for an overview of using cPanel to set directory permissions.