Upgrade Guide to 7.X
Premium URL Shortener is a PHP script that allows you to run your own URL shortening website.
Documentation on how to upgrade to version 7.X. If you stumble upon an issue or need help, please contact us.
Since we have migrated to another framework, you may experience some issues. Please don't hesitate to contact us so we can fix it as soon as possible. You can contact us via Codecanyon or our website. You can also open a ticket at our support portal. If you do so, please provide as much information as possible.
Updater File Download
Upgrading from a version lower than 5.9.X?
If you are upgrading from a version lower than 5.9.X, you need to upgrade to version 5.9.9 first before upgrading to version 7.X. Enter your Envato purchase code to download the updater.
How to upgrade (Video)
Backup Files
Version 6.0 is the biggest update yet for Premium URL Shortener. This upgrade requires a manual process, so follow this guide carefully. Be sure to back up your files and database before you begin. The process might seem tricky at first, but if you follow the steps, it will go smoothly.
cPanel
- Enable maintenance mode in the admin panel > settings.
- Go to file manager and browse to the directory where the script is located
- Select all files and click on compress
- Download the compressed ZIP file to your computer and keep it safe
- Go to phpMyAdmin > YOURDatabase > Export and export the database
- Keep these two in a secure location
Managed VPS without control panel
- Compress your files using
zipcommand and download the file - Export your database using
mysql -u USER -p YOURDATABASE > /root/backup.sqlcommand and download the file
Replace Files
- Go to your folder, navigate to the includes folder and open the file config.php and leave it open
- Delete all files related to the script without exception
- Upload the zip and extract it
- Compress the content directory from the old version and upload it to /public directory then extract to import your old assets
- For the following directories (and their subdirectories) and files, set the permission accordingly:
- /storage: 755
- /public/content/: 755
- config.php: 644
- Rename config.sample.php to config.php
Update Configuration File
Old Config File
The code has slightly changed for the config.php. Open your old includes/config.php and transfer the information to the new config.php as shown here. Copy and paste the information to the respective area. It is important to copy the SECURITY_KEY correctly!
$dbinfo = array("host" => 'DATABASE_HOST',);
"db" => 'DATABASE_NAME',
"user" => 'DATABASE_USER',
"password" => 'DATABASE_PASSWORD',
"prefix" => 'DATABASE_PREFIX'
$config = array("timezone" => 'TIMEZONE',);
"cache" => FALSE,
"cdn" => TRUE,
"gzip" => TRUE,
"security" => 'SECURITY_KEY',
"public_token" => 'PUBLIC_TOKEN',
"debug" => 0,
"demo" => 0
New Config File
Open your old includes/config.php and transfer the information to the new config.php as shown here. Copy and paste the information to the respective area. Leave the value for EncryptionToken as __ENC__
define('DBhost', 'DATABASE_HOST');
define('DBname', 'DATABASE_NAME');
define('DBuser', 'DATABASE_USER');
define('DBpassword', 'DATABASE_PASSWORD');
define('DBprefix', 'DATABASE_PREFIX');
define('BASEPATH', 'AUTO');
define('USECDN', false);
define('CDNASSETS', null);
define('CDNUPLOADS', null);
define('FORCEURL', true);
define('TIMEZONE', 'TIMEZONE');
define('CACHE', true);
define('DEBUG', 0);
define('AuthToken', 'SECURITY_KEY');
define('EncryptionToken', '__ENC__');
define('PublicToken', 'PUBLIC_TOKEN');
Change Domain Root
The new version separates the core files from the public files. This adds a layer of security and protects core files from visitors. The new directory root is /public. You will need to change this on your server.
cPanel
- Go to domains or addon domains
- Find your domain and edit the home directory and add /public at the end
- The final directory should be /public
Managed VPS without control panel
- Edit your conf file
- Update the DocumentRoot and add /public at the end
- Restart your server
Run Updater
Finally run the updater at http://yoursite.com/update and follow the instructions provided on screen. This process will update your database to the latest version of the script.
Issues
Since we have migrated to another framework, you may experience some issues. Please don't hesitate to contact us so we can fix it as soon as possible. You can contact us via Codecanyon or our website. You can also open a ticket at our support portal. If you do so, please provide as much information as possible.
© 2026 GemPixel. All rights reserved.