Step 3: Make Your Changes
You can make changes either using your normal edit interface or through the shell access.
Using Normal Edit Interface
The easiest way to make changes is usually through whatever interface you normally use, for example by going through cPanel > File Manager and opening the file with your server's code editor, however using a editor like PhpStorm will save immeasurable amounts of time if moderate changes are made. You may also want to familiarize yourself with Tiki's DevTips and Secure Coding Practice Guidelines. After you've made and saved your changes, go to Step 4.
Expand the instructions below if you're making changes through the shell access instead.
Use Shell Access to Make Changes
[+]
- To edit a file, type "nano (filepath)", where (filepath) is the path of the file you want to change.
For instance, to change lib/wiki-plugins/wikiplugin_lastmod.php, you would type the following and hit enter:
Use nano command to edit file
Copy to clipboard
nano lib/wiki-plugins/wikiplugin_lastmod.php
Screenshot:
here was img
- Make sure you are in the nano edit screen.
It should look like the following screenshot, with the file path at the top, the code in the body, and a menu at the bottom:
here was img
REMWARNING/fmg
+
- Make changes and then exit (Ctrl+x)
This will bring up the following confirmation alert at the bottom of the screen:
here was img
- Press Y to save change
This will bring up the following prompt at the bottom of the screen to confirm or change the file name:
here was img
- Hit Enter to save to current file name
Unless you are creating a new file, confirm the file path shown and hit enter