urX: Taking the L out of URL

Installation

Not much time is going to be spent on the installation of this application. The assumption is being made that you know how to unzip and upload the application and place it where you want it to be.

It is assumed that the application is in place on your server. From here we will use the location as an example only. In our example, you have installed the application in the absolute server path of "/home/user/public_html/urx" and the web url is "http://www.yourdomain.com/urx"

Using your telnet or ftp application ensure you change the access level of the /urx/data (remember, the path is an example) directory by typing

chmod 777 /urx/data

This allows for the application to create user directories for the log files.

Edit the /urx/settings.inc.php file to match your needs. When editing the variables, always make sure that what you edit has a beginning and ending quote. After the ending quote, the line should end with a semicolon. Failure to end with a semicolon or ending quote will prevent the application from working.

The first variable is the full url of the directory where urX is installed. Make sure you end the url with a trailing slash /
$installurl = "http://www.yourdomain.com/urx/";

Next, eEnter your domain here. It should not start with http or end with a slash.
$mdomain = "yourdomain.com";

Enter the absolute path of where urX is installed and make sure it ends with a trailing slash /. If you do not know the absolute path, then ask your administrator.
$abpath = "/home/user/public_html/urx/";

Cron can be used to manage users and links. This will decide how the log files are deleted, anonymous and registered non permanent links are handled. If you select to use the cron then log files and non permanent links deletion routine will occur according to set time, otherwise out of date links and logs will be deleted every time the index page is accessed.
$usecron = 0; // 0 = Off, 1 = Use Cron

This is the length of time in days to keep anonymous links by users that are not registered. Anonymous links build up fast, and many times they are what are called onefers; they are only used in things like twitter and facebook for one day.
$anonlnks = "30";

This is the length of time in days to keep non permanent links of registered users. This is helpful to remove clutter. Some registered users may link to a blog or something but after the set time the blog could move. It's jsut another form of house keeping.
$reglnks = "365";

Enter database connection information. If you do not know this information then ask your administrator.
$dbhost = "localhost";
$database = "urx";
$dbusername = "username";
$dbpasswd = "password";

Once all the variables have been edited, you are ready to edit your .htaccess file.

home